summaryrefslogtreecommitdiff
path: root/libavformat/vpcc.h
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2018-01-13 16:04:55 -0300
committerJames Almer <jamrial@gmail.com>2018-04-22 16:24:48 -0300
commit153e92089207b1a634f6b5b7b1daf24386c2be23 (patch)
tree52ed605a6f3c1dcad7c7215c3c0167ca25b2c96e /libavformat/vpcc.h
parent07a566e7d6fc4dbb4250da55d925b5591b3d03f9 (diff)
avformat/vpcc: add ff_isom_get_vpcc_features()
Should be useful for muxers that require values as defined in the vpcc atom but don't need to write the atom itself. Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavformat/vpcc.h')
-rw-r--r--libavformat/vpcc.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/libavformat/vpcc.h b/libavformat/vpcc.h
index 184e8579f1..d71ba05105 100644
--- a/libavformat/vpcc.h
+++ b/libavformat/vpcc.h
@@ -32,6 +32,14 @@
#include "avformat.h"
#include "libavcodec/avcodec.h"
+typedef struct VPCC {
+ int profile;
+ int level;
+ int bitdepth;
+ int chroma_subsampling;
+ int full_range_flag;
+} VPCC;
+
/**
* Writes VP codec configuration to the provided AVIOContext.
*
@@ -44,4 +52,7 @@
int ff_isom_write_vpcc(AVFormatContext *s, AVIOContext *pb,
AVCodecParameters *par);
+int ff_isom_get_vpcc_features(AVFormatContext *s, AVCodecParameters *par,
+ VPCC *vpcc);
+
#endif /* AVFORMAT_VPCC_H */