#include "avcodec.h"
#include "dnxhddata.h"
#include "libavutil/common.h"
+#include "libavutil/intreadwrite.h"
/* The quantization tables below are in zigzag order! */
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;