codecs/hevc: Add HEVC NAL parsing capabilities

While this doesn't help with thumbnails, it helps some players get the playback started quicker. Also was a fun exercise too.
This commit is contained in:
Michael Fabian 'Xaymar' Dirks
2019-08-11 03:22:55 +02:00
parent e3263c2372
commit 617229ce84
3 changed files with 223 additions and 1 deletions
+5 -1
View File
@@ -20,7 +20,7 @@
// SOFTWARE.
#pragma once
#include <map>
#include <vector>
// Codec: HEVC
#define P_HEVC "Codec.HEVC"
@@ -60,6 +60,10 @@ namespace obsffmpeg {
L6_2 = 186,
UNKNOWN = -1,
};
void extract_header_sei(uint8_t* data, size_t sz_data,
std::vector<uint8_t>& header, std::vector<uint8_t>& sei);
} // namespace hevc
} // namespace codecs
} // namespace obsffmpeg