]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/dnxhddata.h
fix compilation with --disable-everything --enable-decoder=mpeg2video
[ffmpeg] / libavcodec / dnxhddata.h
index 501ac8fa356aae1e7ea4ed5e8a6bf03fd7752648..32c77db0efc4fe4a88e447ba99ea31e46ecf202c 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * VC3/DNxHD decoder.
- * Copyright (c) 2007 SmartJog S.A., Baptiste Coudurier <baptiste dot coudurier at smartjog dot com>.
+ * Copyright (c) 2007 SmartJog S.A., Baptiste Coudurier <baptiste dot coudurier at smartjog dot com>
  *
  * This file is part of FFmpeg.
  *
@@ -23,6 +23,7 @@
 #define AVCODEC_DNXHDDATA_H
 
 #include <stdint.h>
+#include "avcodec.h"
 
 typedef struct {
     int cid;
@@ -32,17 +33,19 @@ typedef struct {
     unsigned int coding_unit_size;
     int index_bits;
     int bit_depth;
-    const uint8_t *luma_weigth, *chroma_weigth;
+    const uint8_t *luma_weight, *chroma_weight;
     const uint8_t *dc_codes, *dc_bits;
     const uint16_t *ac_codes;
     const uint8_t *ac_bits, *ac_level;
     const uint8_t *ac_run_flag, *ac_index_flag;
     const uint16_t *run_codes;
     const uint8_t *run_bits, *run;
+    int bit_rates[5]; ///< Helpher to choose variants, rounded to nearest 5Mb/s
 } CIDEntry;
 
 extern const CIDEntry ff_dnxhd_cid_table[];
 
 int ff_dnxhd_get_cid_table(int cid);
+int ff_dnxhd_find_cid(AVCodecContext *avctx);
 
-#endif  // AVCODEC_DNXHDDATA_H
+#endif /* AVCODEC_DNXHDDATA_H */