diff options
author | bunnei <bunneidev@gmail.com> | 2020-10-29 20:28:07 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-29 20:28:07 +0100 |
commit | ef29bf45159955963da45bc8838950a0fd39ae90 (patch) | |
tree | 2fed8fd3831487763bc823b580ee9c021ef77077 /src/video_core/command_classes/codecs/h264.h | |
parent | Merge pull request #4781 from german77/GChotplug (diff) | |
parent | h264: Make WriteUe take a u32 (diff) | |
download | yuzu-ef29bf45159955963da45bc8838950a0fd39ae90.tar yuzu-ef29bf45159955963da45bc8838950a0fd39ae90.tar.gz yuzu-ef29bf45159955963da45bc8838950a0fd39ae90.tar.bz2 yuzu-ef29bf45159955963da45bc8838950a0fd39ae90.tar.lz yuzu-ef29bf45159955963da45bc8838950a0fd39ae90.tar.xz yuzu-ef29bf45159955963da45bc8838950a0fd39ae90.tar.zst yuzu-ef29bf45159955963da45bc8838950a0fd39ae90.zip |
Diffstat (limited to 'src/video_core/command_classes/codecs/h264.h')
-rw-r--r-- | src/video_core/command_classes/codecs/h264.h | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/src/video_core/command_classes/codecs/h264.h b/src/video_core/command_classes/codecs/h264.h index 21752dd90..f2292fd2f 100644 --- a/src/video_core/command_classes/codecs/h264.h +++ b/src/video_core/command_classes/codecs/h264.h @@ -38,7 +38,7 @@ public: /// WriteSe and WriteUe write in the Exp-Golomb-coded syntax void WriteU(s32 value, s32 value_sz); void WriteSe(s32 value); - void WriteUe(s32 value); + void WriteUe(u32 value); /// Finalize the bitstream void End(); @@ -55,18 +55,6 @@ public: const std::vector<u8>& GetByteArray() const; private: - // ZigZag LUTs from libavcodec. - static constexpr std::array<u8, 64> zig_zag_direct{ - 0, 1, 8, 16, 9, 2, 3, 10, 17, 24, 32, 25, 18, 11, 4, 5, 12, 19, 26, 33, 40, 48, - 41, 34, 27, 20, 13, 6, 7, 14, 21, 28, 35, 42, 49, 56, 57, 50, 43, 36, 29, 22, 15, 23, - 30, 37, 44, 51, 58, 59, 52, 45, 38, 31, 39, 46, 53, 60, 61, 54, 47, 55, 62, 63, - }; - - static constexpr std::array<u8, 16> zig_zag_scan{ - 0 + 0 * 4, 1 + 0 * 4, 0 + 1 * 4, 0 + 2 * 4, 1 + 1 * 4, 2 + 0 * 4, 3 + 0 * 4, 2 + 1 * 4, - 1 + 2 * 4, 0 + 3 * 4, 1 + 3 * 4, 2 + 2 * 4, 3 + 1 * 4, 3 + 2 * 4, 2 + 3 * 4, 3 + 3 * 4, - }; - void WriteBits(s32 value, s32 bit_count); void WriteExpGolombCodedInt(s32 value); void WriteExpGolombCodedUInt(u32 value); |