29 cv->
col[0] = cv->
col[1] = cv->
col[2] = 0.5;
66 if (out->byte_buffer.data) {
69 rgb_float_to_uchar(color, cv->col);
72 uchar *dst = out->byte_buffer.data + y_range.first() * out->x * 4;
73 uchar *dst_end = dst + y_range.size() * out->x * 4;
74 while (dst < dst_end) {
75 memcpy(dst, color, sizeof(color));
82 color[0] = cv->col[0];
83 color[1] = cv->col[1];
84 color[2] = cv->col[2];
87 float *dst = out->float_buffer.data + y_range.first() * out->x * 4;
88 float *dst_end = dst + y_range.size() * out->x * 4;
89 while (dst < dst_end) {
90 memcpy(dst, color, sizeof(color));
void * MEM_callocN(size_t len, const char *str)
void * MEM_dupallocN(const void *vmemh)
void MEM_freeN(void *vmemh)
static ImBuf * do_solid_color(const RenderData *context, SeqRenderState *, Strip *strip, float, float, ImBuf *ibuf1, ImBuf *ibuf2)
static void copy_solid_color(Strip *dst, const Strip *src, const int)
static int num_inputs_color()
void solid_color_effect_get_handle(EffectHandle &rval)
static StripEarlyOut early_out_color(const Strip *, float)
ImBuf * prepare_effect_imbufs(const RenderData *context, ImBuf *ibuf1, ImBuf *ibuf2, bool uninitialized_pixels)
static void init_solid_color(Strip *strip)
static void free_solid_color(Strip *strip, const bool)
void parallel_for(const IndexRange range, const int64_t grain_size, const Function &function, const TaskSizeHints &size_hints=detail::TaskSizeHints_Static(1))
void(* copy)(Strip *dst, const Strip *src, int flag)
ImBuf *(* execute)(const RenderData *context, SeqRenderState *state, Strip *strip, float timeline_frame, float fac, ImBuf *ibuf1, ImBuf *ibuf2)
void(* free)(Strip *strip, bool do_id_user)
StripEarlyOut(* early_out)(const Strip *strip, float fac)
void(* init)(Strip *strip)