summaryrefslogtreecommitdiffstats
path: root/src/video_core/host1x/codecs/codec.h
diff options
context:
space:
mode:
authorDanila Malyutin <d.maljutin@yandex.ru>2023-05-13 23:35:01 +0200
committerDanila Malyutin <d.maljutin@yandex.ru>2023-05-21 23:43:44 +0200
commit7701a00a0277ad59c1b743b9aa14c6861624b847 (patch)
tree9214202ee896671be1301d0993931a74686955e5 /src/video_core/host1x/codecs/codec.h
parentMerge pull request #10392 from danilaml/update-cubeb-again (diff)
downloadyuzu-7701a00a0277ad59c1b743b9aa14c6861624b847.tar
yuzu-7701a00a0277ad59c1b743b9aa14c6861624b847.tar.gz
yuzu-7701a00a0277ad59c1b743b9aa14c6861624b847.tar.bz2
yuzu-7701a00a0277ad59c1b743b9aa14c6861624b847.tar.lz
yuzu-7701a00a0277ad59c1b743b9aa14c6861624b847.tar.xz
yuzu-7701a00a0277ad59c1b743b9aa14c6861624b847.tar.zst
yuzu-7701a00a0277ad59c1b743b9aa14c6861624b847.zip
Diffstat (limited to 'src/video_core/host1x/codecs/codec.h')
-rw-r--r--src/video_core/host1x/codecs/codec.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/video_core/host1x/codecs/codec.h b/src/video_core/host1x/codecs/codec.h
index 0d45fb7fe..06fe00a4b 100644
--- a/src/video_core/host1x/codecs/codec.h
+++ b/src/video_core/host1x/codecs/codec.h
@@ -15,6 +15,7 @@ extern "C" {
#pragma GCC diagnostic ignored "-Wconversion"
#endif
#include <libavcodec/avcodec.h>
+#include <libavfilter/avfilter.h>
#if defined(__GNUC__) || defined(__clang__)
#pragma GCC diagnostic pop
#endif
@@ -61,17 +62,24 @@ public:
private:
void InitializeAvCodecContext();
+ void InitializeAvFilters(AVFrame* frame);
+
void InitializeGpuDecoder();
bool CreateGpuAvDevice();
bool initialized{};
+ bool filters_initialized{};
Host1x::NvdecCommon::VideoCodec current_codec{Host1x::NvdecCommon::VideoCodec::None};
const AVCodec* av_codec{nullptr};
AVCodecContext* av_codec_ctx{nullptr};
AVBufferRef* av_gpu_decoder{nullptr};
+ AVFilterContext* av_filter_src_ctx{nullptr};
+ AVFilterContext* av_filter_sink_ctx{nullptr};
+ AVFilterGraph* av_filter_graph{nullptr};
+
Host1x::Host1x& host1x;
const Host1x::NvdecCommon::NvdecRegisters& state;
std::unique_ptr<Decoder::H264> h264_decoder;