Lines Matching refs:hwaccel
881 const AVHWAccel *hwaccel = avctx->hwaccel;
904 if (hwaccel && hwaccel->alloc_frame) {
905 ret = hwaccel->alloc_frame(avctx, frame);
1158 AVHWAccel *hwaccel = NULL;
1160 while ((hwaccel = av_hwaccel_next(hwaccel)))
1161 if (hwaccel->id == codec_id
1162 && hwaccel->pix_fmt == pix_fmt)
1163 return hwaccel;
1177 if (avctx->hwaccel && avctx->hwaccel->uninit)
1178 avctx->hwaccel->uninit(avctx);
1180 avctx->hwaccel = NULL;
1184 AVHWAccel *hwaccel;
1187 hwaccel = find_hwaccel(avctx->codec_id, ret);
1188 if (!hwaccel) {
1195 if (hwaccel->priv_data_size) {
1196 avctx->internal->hwaccel_priv_data = av_mallocz(hwaccel->priv_data_size);
1201 if (hwaccel->init) {
1202 err = hwaccel->init(avctx);
1208 avctx->hwaccel = hwaccel;
2746 if (avctx->hwaccel && avctx->hwaccel->uninit)
2747 avctx->hwaccel->uninit(avctx);
3399 void av_register_hwaccel(AVHWAccel *hwaccel)
3402 hwaccel->next = NULL;
3403 while(*p || avpriv_atomic_ptr_cas((void * volatile *)p, NULL, hwaccel))
3405 last_hwaccel = &hwaccel->next;
3408 AVHWAccel *av_hwaccel_next(AVHWAccel *hwaccel)
3410 return hwaccel ? hwaccel->next : first_hwaccel;