diff options
author | Lynne <dev@lynne.ee> | 2025-03-13 16:26:40 +0000 |
---|---|---|
committer | Lynne <dev@lynne.ee> | 2025-03-17 08:51:23 +0100 |
commit | caff29dbb18feeb87cb00fc4c33d20cf01667be0 (patch) | |
tree | e99f15bb25ccf6961daf31ca082ed17320085c2f /libavcodec/vaapi_vc1.c | |
parent | 23eb499b282ab1952461872ddea008adc7f95413 (diff) | |
download | ffmpeg-caff29dbb18feeb87cb00fc4c33d20cf01667be0.tar.gz |
FFHWAccel: add buffer_ref argument to start_frame
This commit adds a reference to the buffer as an argument to
start_frame, and adapts all existing code.
This allows for asynchronous hardware accelerators to skip
copying packet data by referencing it.
Diffstat (limited to 'libavcodec/vaapi_vc1.c')
-rw-r--r-- | libavcodec/vaapi_vc1.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libavcodec/vaapi_vc1.c b/libavcodec/vaapi_vc1.c index 7d001882fd..6c25fdb5fa 100644 --- a/libavcodec/vaapi_vc1.c +++ b/libavcodec/vaapi_vc1.c @@ -249,7 +249,10 @@ static inline void vc1_pack_bitplanes(uint8_t *bitplane, int n, const uint8_t *f bitplane[bitplane_index] = (bitplane[bitplane_index] << 4) | v; } -static int vaapi_vc1_start_frame(AVCodecContext *avctx, av_unused const uint8_t *buffer, av_unused uint32_t size) +static int vaapi_vc1_start_frame(AVCodecContext *avctx, + av_unused const AVBufferRef *buffer_ref, + av_unused const uint8_t *buffer, + av_unused uint32_t size) { const VC1Context *v = avctx->priv_data; const MpegEncContext *s = &v->s; |