MCPcopy Create free account
hub / github.com/HandBrake/HandBrake / hb_blend_work

Function hb_blend_work

libhb/blend.c:848–873  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

846}
847
848static hb_buffer_t * hb_blend_work(hb_blend_object_t *object,
849 hb_buffer_t *in,
850 hb_buffer_list_t *overlays,
851 int changed)
852{
853 hb_blend_private_t *pv = object->private_data;
854 hb_buffer_t *out = in;
855
856 if (hb_buffer_list_count(overlays) == 0)
857 {
858 return out;
859 }
860
861 if (hb_buffer_is_writable(in) == 0)
862 {
863 out = hb_buffer_dup(in);
864 hb_buffer_close(&in);
865 }
866
867 for (hb_buffer_t *overlay = hb_buffer_list_head(overlays); overlay; overlay = overlay->next)
868 {
869 pv->blend(pv, out, overlay, pv->depth - 8);
870 }
871
872 return out;
873}
874
875static void hb_blend_close(hb_blend_object_t *object)
876{

Callers

nothing calls this directly

Calls 5

hb_buffer_list_countFunction · 0.85
hb_buffer_is_writableFunction · 0.85
hb_buffer_dupFunction · 0.85
hb_buffer_closeFunction · 0.85
hb_buffer_list_headFunction · 0.85

Tested by

no test coverage detected