summaryrefslogtreecommitdiff
path: root/libavformat/vpcc.h
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2022-11-11 12:44:41 -0300
committerJames Almer <jamrial@gmail.com>2022-11-17 10:05:49 -0300
commitcb925c0bc059ce54cb6f8d858d43378ec516f548 (patch)
tree83b26f54c6270c4dbb478add051cbe333d7b41e1 /libavformat/vpcc.h
parente9a67ababacb0c66481a17f5648b3594789e8914 (diff)
downloadffmpeg-cb925c0bc059ce54cb6f8d858d43378ec516f548.tar.gz
avformat/vpcc: parse bitstream data to get profile and bitdepth
Profile can be derived from values codecpar pixel format only with software formats. For hardware formats, we're forced to parse a frame header to get the required information. Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavformat/vpcc.h')
-rw-r--r--libavformat/vpcc.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/libavformat/vpcc.h b/libavformat/vpcc.h
index f05b2f58b3..bad38c5615 100644
--- a/libavformat/vpcc.h
+++ b/libavformat/vpcc.h
@@ -45,14 +45,19 @@ typedef struct VPCC {
*
* @param s address of the AVFormatContext for the logging context.
* @param pb address of the AVIOContext where the vpcC shall be written.
+ * @param data address of a data array which contains coded bitstream data from
+ * which codec information can be extracted. May be NULL.
+ * @param len length of the data array.
* @param par address of the AVCodecParameters which contains codec information.
* @return >=0 in case of success, a negative value corresponding to an AVERROR
* code in case of failure
*/
int ff_isom_write_vpcc(AVFormatContext *s, AVIOContext *pb,
+ const uint8_t *data, int len,
AVCodecParameters *par);
int ff_isom_get_vpcc_features(AVFormatContext *s, AVCodecParameters *par,
+ const uint8_t *data, int len,
AVRational *frame_rate, VPCC *vpcc);
#endif /* AVFORMAT_VPCC_H */