summaryrefslogtreecommitdiffstats
path: root/src/video_core/command_classes/codecs/codec.h
diff options
context:
space:
mode:
authorameerj <52414509+ameerj@users.noreply.github.com>2021-08-07 21:12:15 +0200
committerameerj <52414509+ameerj@users.noreply.github.com>2021-08-12 07:28:01 +0200
commit659039ca6df543f101c80858fe55a880645b773e (patch)
treea0aa47635ec2f119ff2d0d5cc6c1cecdf1b9cf6f /src/video_core/command_classes/codecs/codec.h
parentMerge pull request #6860 from lat9nq/ranged-settings-2 (diff)
downloadyuzu-659039ca6df543f101c80858fe55a880645b773e.tar
yuzu-659039ca6df543f101c80858fe55a880645b773e.tar.gz
yuzu-659039ca6df543f101c80858fe55a880645b773e.tar.bz2
yuzu-659039ca6df543f101c80858fe55a880645b773e.tar.lz
yuzu-659039ca6df543f101c80858fe55a880645b773e.tar.xz
yuzu-659039ca6df543f101c80858fe55a880645b773e.tar.zst
yuzu-659039ca6df543f101c80858fe55a880645b773e.zip
Diffstat (limited to '')
-rw-r--r--src/video_core/command_classes/codecs/codec.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/video_core/command_classes/codecs/codec.h b/src/video_core/command_classes/codecs/codec.h
index 71936203f..abfe59221 100644
--- a/src/video_core/command_classes/codecs/codec.h
+++ b/src/video_core/command_classes/codecs/codec.h
@@ -50,18 +50,22 @@ public:
/// Returns the value of current_codec
[[nodiscard]] NvdecCommon::VideoCodec GetCurrentCodec() const;
+
/// Return name of the current codec
[[nodiscard]] std::string_view GetCurrentCodecName() const;
private:
- void InitializeHwdec();
+ void InitializeGpuDecoder();
+
+ bool CreateGpuAvDevice();
bool initialized{};
+ bool using_gpu_decode{};
NvdecCommon::VideoCodec current_codec{NvdecCommon::VideoCodec::None};
AVCodec* av_codec{nullptr};
- AVBufferRef* av_hw_device{nullptr};
AVCodecContext* av_codec_ctx{nullptr};
+ AVBufferRef* av_gpu_decoder{nullptr};
GPU& gpu;
const NvdecCommon::NvdecRegisters& state;