Cleanup: pass const view_area in sequencer functions

This commit is contained in:
Campbell Barton 2022-11-04 18:49:06 +11:00
parent 7a7055c186
commit d4f0ccb6b4
4 changed files with 12 additions and 9 deletions

View File

@ -66,7 +66,7 @@ void SEQ_render_thumbnails(const struct SeqRenderData *context,
struct Sequence *seq,
struct Sequence *seq_orig,
float frame_step,
rctf *view_area,
const struct rctf *view_area,
const short *stop);
/**
* Get cached thumbnails.
@ -82,7 +82,7 @@ struct ImBuf *SEQ_get_thumbnail(const struct SeqRenderData *context,
float SEQ_render_thumbnail_first_frame_get(const struct Scene *scene,
struct Sequence *seq,
float frame_step,
struct rctf *view_area);
const struct rctf *view_area);
/**
* Get frame for first thumbnail.
*/
@ -102,7 +102,7 @@ int SEQ_render_thumbnails_guaranteed_set_frame_step_get(const struct Scene *scen
void SEQ_render_thumbnails_base_set(const struct SeqRenderData *context,
struct Sequence *seq,
struct Sequence *seq_orig,
rctf *view_area,
const struct rctf *view_area,
const short *stop);
void SEQ_render_init_colorspace(struct Sequence *seq);

View File

@ -811,8 +811,11 @@ bool seq_cache_put_if_possible(
return false;
}
void seq_cache_thumbnail_put(
const SeqRenderData *context, Sequence *seq, float timeline_frame, ImBuf *i, rctf *view_area)
void seq_cache_thumbnail_put(const SeqRenderData *context,
Sequence *seq,
float timeline_frame,
ImBuf *i,
const rctf *view_area)
{
Scene *scene = context->scene;

View File

@ -48,7 +48,7 @@ void seq_cache_thumbnail_put(const struct SeqRenderData *context,
struct Sequence *seq,
float timeline_frame,
struct ImBuf *i,
rctf *view_area);
const struct rctf *view_area);
bool seq_cache_put_if_possible(const struct SeqRenderData *context,
struct Sequence *seq,
float timeline_frame,

View File

@ -2010,7 +2010,7 @@ ImBuf *SEQ_render_give_ibuf_direct(const SeqRenderData *context,
float SEQ_render_thumbnail_first_frame_get(const Scene *scene,
Sequence *seq,
float frame_step,
rctf *view_area)
const rctf *view_area)
{
int first_drawable_frame = max_iii(
SEQ_time_left_handle_frame_get(scene, seq), seq->start, view_area->xmin);
@ -2102,7 +2102,7 @@ void SEQ_render_thumbnails(const SeqRenderData *context,
Sequence *seq,
Sequence *seq_orig,
float frame_step,
rctf *view_area,
const rctf *view_area,
const short *stop)
{
SeqRenderState state;
@ -2163,7 +2163,7 @@ int SEQ_render_thumbnails_guaranteed_set_frame_step_get(const Scene *scene, cons
void SEQ_render_thumbnails_base_set(const SeqRenderData *context,
Sequence *seq,
Sequence *seq_orig,
rctf *view_area,
const rctf *view_area,
const short *stop)
{
SeqRenderState state;