Allow injecting more than one type of header data into video
This commit is contained in:
+10
-2
@@ -7,8 +7,16 @@ struct AVPacket;
|
||||
struct AVCodecContext;
|
||||
namespace cbs {
|
||||
|
||||
util::buffer_t<std::uint8_t> read_sps(const AVPacket *packet, int codec_id);
|
||||
util::buffer_t<std::uint8_t> make_sps(const AVCodecContext *ctx, int video_format);
|
||||
struct sps_hevc_t {
|
||||
util::buffer_t<std::uint8_t> vps;
|
||||
util::buffer_t<std::uint8_t> sps;
|
||||
};
|
||||
|
||||
util::buffer_t<std::uint8_t> read_sps_h264(const AVPacket *packet);
|
||||
sps_hevc_t read_sps_hevc(const AVPacket *packet);
|
||||
|
||||
util::buffer_t<std::uint8_t> make_sps_h264(const AVCodecContext *ctx);
|
||||
sps_hevc_t make_sps_hevc(const AVCodecContext *ctx);
|
||||
|
||||
/**
|
||||
* Check if SPS->VUI is present
|
||||
|
||||
Reference in New Issue
Block a user