History

av1dec: update hwaccel decode_params on AV1_OBU_SEQUENCE_HEADER

Previously, the callback was only called on init. This makes it get called on every frame. We should switch to VK_KHR_video_maintenance2 and provide all params upfront, but almost nothing supports it yet.

Lynne committed 1 year ago

Commit d3d2e251 parent 82864c21 file · +9 −0Browse files

Unified · Split

libavcodec/av1dec.c+9−0
@@ -1329,6 +1329,15 @@ static int av1_receive_frame_internal(AVCodecContext *avctx, AVFrame *frame) · 1328 unmodified lines
1329 1329
1330 s->pix_fmt = AV_PIX_FMT_NONE;1330 s->pix_fmt = AV_PIX_FMT_NONE;
1331 1331
1332 if (FF_HW_HAS_CB(avctx, decode_params)) {
1333 ret = FF_HW_CALL(avctx, decode_params, AV1_OBU_SEQUENCE_HEADER,
1334 s->seq_data_ref->data, s->seq_data_ref->size);
1335 if (ret < 0) {
1336 av_log(avctx, AV_LOG_ERROR, "HW accel decode params fail.\n");
1337 return ret;
1338 }
1339 }
1340
1332 break;1341 break;
1333 case AV1_OBU_REDUNDANT_FRAME_HEADER:1342 case AV1_OBU_REDUNDANT_FRAME_HEADER:
1334 if (s->raw_frame_header)1343 if (s->raw_frame_header)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t