| 219 | } |
| 220 | |
| 221 | hb_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 | |
| 239 | hb_work_object_t* hb_video_encoder(hb_handle_t *h, int vcodec) |
| 240 | { |
no test coverage detected