9 changed files with 90 additions and 20 deletions
-
2src/video_core/CMakeLists.txt
-
30src/video_core/command_classes/codecs/codec.cpp
-
2src/video_core/command_classes/codecs/codec.h
-
20src/video_core/command_classes/codecs/vp8.cpp
-
31src/video_core/command_classes/codecs/vp8.h
-
3src/video_core/command_classes/codecs/vp9.cpp
-
11src/video_core/command_classes/codecs/vp9.h
-
3src/video_core/command_classes/nvdec.cpp
-
4src/video_core/command_classes/nvdec_common.h
@ -0,0 +1,20 @@ |
|||
// Copyright 2021 yuzu Emulator Project
|
|||
// Licensed under GPLv2 or any later version
|
|||
// Refer to the license.txt file included.
|
|||
|
|||
#include <array>
|
|||
#include <vector>
|
|||
|
|||
#include "video_core/command_classes/codecs/vp8.h"
|
|||
|
|||
namespace Tegra::Decoder { |
|||
VP8::VP8(GPU& gpu_) : gpu(gpu_) {} |
|||
|
|||
VP8::~VP8() = default; |
|||
|
|||
const std::vector<u8>& VP8::ComposeFrameHeader(const NvdecCommon::NvdecRegisters& state, |
|||
bool is_first_frame) { |
|||
return {}; |
|||
} |
|||
|
|||
} // namespace Tegra::Decoder
|
|||
@ -0,0 +1,31 @@ |
|||
// Copyright 2021 yuzu Emulator Project |
|||
// Licensed under GPLv2 or any later version |
|||
// Refer to the license.txt file included. |
|||
|
|||
#pragma once |
|||
|
|||
#include <vector> |
|||
|
|||
#include "common/common_types.h" |
|||
#include "video_core/command_classes/nvdec_common.h" |
|||
|
|||
namespace Tegra { |
|||
class GPU; |
|||
namespace Decoder { |
|||
|
|||
class VP8 { |
|||
public: |
|||
explicit VP8(GPU& gpu); |
|||
~VP8(); |
|||
|
|||
/// Compose the VP8 header of the frame for FFmpeg decoding |
|||
[[nodiscard]] const std::vector<u8>& ComposeFrameHeader( |
|||
const NvdecCommon::NvdecRegisters& state, bool is_first_frame = false); |
|||
|
|||
private: |
|||
std::vector<u8> frame; |
|||
GPU& gpu; |
|||
}; |
|||
|
|||
} // namespace Decoder |
|||
} // namespace Tegra |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue