aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/vt_internal.h
diff options
context:
space:
mode:
authorLynne <dev@lynne.ee>2025-03-13 16:26:40 +0000
committerLynne <dev@lynne.ee>2025-03-17 08:51:23 +0100
commitcaff29dbb18feeb87cb00fc4c33d20cf01667be0 (patch)
treee99f15bb25ccf6961daf31ca082ed17320085c2f /libavcodec/vt_internal.h
parent23eb499b282ab1952461872ddea008adc7f95413 (diff)
downloadffmpeg-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/vt_internal.h')
-rw-r--r--libavcodec/vt_internal.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/vt_internal.h b/libavcodec/vt_internal.h
index effa96fc15..b1eb07310a 100644
--- a/libavcodec/vt_internal.h
+++ b/libavcodec/vt_internal.h
@@ -61,6 +61,7 @@ int ff_videotoolbox_buffer_append(VTContext *vtctx,
uint32_t size);
int ff_videotoolbox_uninit(AVCodecContext *avctx);
int ff_videotoolbox_h264_start_frame(AVCodecContext *avctx,
+ const AVBufferRef *buffer_ref,
const uint8_t *buffer,
uint32_t size);
int ff_videotoolbox_h264_decode_slice(AVCodecContext *avctx,