mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-08 06:09:50 +00:00
avcodec/hw_base_encode: avoid getting FFHWBaseEncodeContext from avctx
This patch is to make FFHWBaseEncodeContext a standalone component and avoid getting FFHWBaseEncodeContext from avctx->priv_data. This patch also removes some unnecessary AVCodecContext arguments. For receive_packet call, a small wrapper is introduced. Signed-off-by: Tong Wu <tong1.wu@intel.com>
This commit is contained in:
parent
0ba10f2d75
commit
e783e45e29
14 changed files with 76 additions and 65 deletions
|
|
@ -313,6 +313,8 @@ typedef struct D3D12VAEncodeType {
|
|||
char *data, size_t *data_len);
|
||||
} D3D12VAEncodeType;
|
||||
|
||||
int ff_d3d12va_encode_receive_packet(AVCodecContext *avctx, AVPacket *pkt);
|
||||
|
||||
int ff_d3d12va_encode_init(AVCodecContext *avctx);
|
||||
int ff_d3d12va_encode_close(AVCodecContext *avctx);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue