diff options
author | Mark Reid <mindmark@gmail.com> | 2016-02-13 21:44:32 -0800 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2016-02-14 19:17:36 +0100 |
commit | 8395b6eeaa279cff5c1c5d2b2ddfd5be087ca3ee (patch) | |
tree | 1b5834e1adcacc81f73f312ed413bcb72076a3e6 /libavcodec/dnxhddata.c | |
parent | b8bc6b14a556e11e3f6cb49ead9d21d9a769b7c8 (diff) | |
download | ffmpeg-8395b6eeaa279cff5c1c5d2b2ddfd5be087ca3ee.tar.gz |
libavcodec/dnxhd_parser: add parser and probe support raw 444 and dnxhr formats
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/dnxhddata.c')
-rw-r--r-- | libavcodec/dnxhddata.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libavcodec/dnxhddata.c b/libavcodec/dnxhddata.c index 82fbfdfa70..7d935a3f31 100644 --- a/libavcodec/dnxhddata.c +++ b/libavcodec/dnxhddata.c @@ -22,6 +22,7 @@ #include "avcodec.h" #include "dnxhddata.h" #include "libavutil/common.h" +#include "libavutil/intreadwrite.h" /* The quantization tables below are in zigzag order! */ @@ -1102,6 +1103,13 @@ int avpriv_dnxhd_get_interlaced(int cid) return ff_dnxhd_cid_table[i].flags & DNXHD_INTERLACED ? 1 : 0; } +uint64_t avpriv_dnxhd_parse_header_prefix(const uint8_t *buf) +{ + uint64_t prefix = AV_RB32(buf); + prefix = (prefix << 16) | buf[4] << 8; + return ff_dnxhd_check_header_prefix(prefix); +} + int ff_dnxhd_find_cid(AVCodecContext *avctx, int bit_depth) { int i, j; |