aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/vt_internal.h
diff options
context:
space:
mode:
authorrcombs <rcombs@rcombs.me>2021-11-13 02:31:52 -0600
committerrcombs <rcombs@rcombs.me>2021-11-28 16:40:44 -0600
commit530c4a7ea95102a806db0ba3d6fcd773fe02806b (patch)
tree6eb87700a23fa9ec21eb9ae528616032ba10c938 /libavcodec/vt_internal.h
parent2c89443e84dc957a606e382d5b0ca118e1f68ce6 (diff)
downloadffmpeg-530c4a7ea95102a806db0ba3d6fcd773fe02806b.tar.gz
lavc/videotoolbox: expose some functions as lavc-internal
Diffstat (limited to 'libavcodec/vt_internal.h')
-rw-r--r--libavcodec/vt_internal.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/libavcodec/vt_internal.h b/libavcodec/vt_internal.h
index fb64735b8c..e2f279d0fc 100644
--- a/libavcodec/vt_internal.h
+++ b/libavcodec/vt_internal.h
@@ -19,6 +19,9 @@
#ifndef AVCODEC_VT_INTERNAL_H
#define AVCODEC_VT_INTERNAL_H
+#include "avcodec.h"
+#include "videotoolbox.h"
+
typedef struct VTContext {
// The current bitstream buffer.
uint8_t *bitstream;
@@ -45,6 +48,12 @@ typedef struct VTContext {
} VTContext;
int ff_videotoolbox_alloc_frame(AVCodecContext *avctx, AVFrame *frame);
+int ff_videotoolbox_common_init(AVCodecContext *avctx);
+int ff_videotoolbox_frame_params(AVCodecContext *avctx,
+ AVBufferRef *hw_frames_ctx);
+int ff_videotoolbox_buffer_copy(VTContext *vtctx,
+ const uint8_t *buffer,
+ uint32_t size);
int ff_videotoolbox_uninit(AVCodecContext *avctx);
int ff_videotoolbox_h264_start_frame(AVCodecContext *avctx,
const uint8_t *buffer,
@@ -52,6 +61,7 @@ int ff_videotoolbox_h264_start_frame(AVCodecContext *avctx,
int ff_videotoolbox_h264_decode_slice(AVCodecContext *avctx,
const uint8_t *buffer,
uint32_t size);
+int ff_videotoolbox_common_end_frame(AVCodecContext *avctx, AVFrame *frame);
CFDataRef ff_videotoolbox_avcc_extradata_create(AVCodecContext *avctx);
CFDataRef ff_videotoolbox_hvcc_extradata_create(AVCodecContext *avctx);