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

Showing the changes to libavcodec (1 of 1 file). Show all

Unified · Split

libavcodec/av1dec.c+9−0
@@ -1329,6 +1329,15 @@ static int av1_receive_frame_internal(AVCodecContext *avctx, AVFrame *frame) · 1328 unmodified lines
13291329
13301330 s->pix_fmt = AV_PIX_FMT_NONE;
13311331
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+
13321341 break;
13331342 case AV1_OBU_REDUNDANT_FRAME_HEADER:
13341343 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