X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fqsvdec.h;h=f3b7344cbaa2e2e52bfb56c85a18ddc3bb4f6070;hb=195d8ce85eb73ff283f85dcee63383ec4081e3e7;hp=111536caba33515b24034a97e8b74233f5c6f434;hpb=b8eb0827f053230dd919bc73e25381b47b4fe1a7;p=ffmpeg diff --git a/libavcodec/qsvdec.h b/libavcodec/qsvdec.h index 111536caba3..f3b7344cbaa 100644 --- a/libavcodec/qsvdec.h +++ b/libavcodec/qsvdec.h @@ -33,7 +33,7 @@ #include "libavutil/pixfmt.h" #include "avcodec.h" -#include "hwaccel.h" +#include "hwconfig.h" #include "qsv_internal.h" typedef struct QSVContext { @@ -42,7 +42,7 @@ typedef struct QSVContext { // the session we allocated internally, in case the caller did not provide // one - mfxSession internal_session; + QSVSession internal_qs; QSVFramesContext frames_ctx; @@ -56,16 +56,17 @@ typedef struct QSVContext { int buffered_count; int reinit_flag; - // the internal parser and codec context for parsing the data - AVCodecParserContext *parser; - AVCodecContext *avctx_internal; enum AVPixelFormat orig_pix_fmt; uint32_t fourcc; mfxFrameInfo frame_info; + AVBufferPool *pool; + + int initialized; // options set by the caller int async_depth; int iopattern; + int gpu_copy; char *load_plugins; @@ -73,7 +74,7 @@ typedef struct QSVContext { int nb_ext_buffers; } QSVContext; -extern const AVCodecHWConfigInternal *ff_qsv_hw_configs[]; +extern const AVCodecHWConfigInternal *const ff_qsv_hw_configs[]; int ff_qsv_process_data(AVCodecContext *avctx, QSVContext *q, AVFrame *frame, int *got_frame, AVPacket *pkt);