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

Function cc_fill_buffer

libhb/decavcodec.c:1140–1146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1138}
1139
1140static hb_buffer_t * cc_fill_buffer(hb_work_private_t *pv, uint8_t *cc, int size)
1141{
1142 hb_buffer_t * buf = hb_buffer_init(size);
1143
1144 memcpy(buf->data, cc, size);
1145 return buf;
1146}
1147
1148// copy one video frame into an HB buf. If the frame isn't in our color space
1149// or at least one of its dimensions is odd, use sws_scale to convert/rescale it.

Callers 1

copy_frameFunction · 0.85

Calls 1

hb_buffer_initFunction · 0.85

Tested by

no test coverage detected