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

Function hb_video_decoder

libhb/work.c:221–237  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

219}
220
221hb_work_object_t* hb_video_decoder(hb_handle_t *h, int vcodec, int param,
222 void *hw_device_ctx, hb_hwaccel_t *hw_accel)
223{
224 hb_work_object_t * w;
225
226 w = hb_get_work(h, vcodec);
227 if (w == NULL)
228 {
229 hb_error("Invalid video decoder: codec %d, param %d", vcodec, param);
230 return NULL;
231 }
232 w->codec_param = param;
233 w->hw_device_ctx = hw_device_ctx;
234 w->hw_accel = hw_accel;
235
236 return w;
237}
238
239hb_work_object_t* hb_video_encoder(hb_handle_t *h, int vcodec)
240{

Callers 1

do_jobFunction · 0.85

Calls 2

hb_get_workFunction · 0.85
hb_errorFunction · 0.85

Tested by

no test coverage detected