aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/dnxhddata.h
diff options
context:
space:
mode:
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>2007-12-18 13:52:07 +0000
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>2007-12-18 13:52:07 +0000
commit0c39c38b1456d4a59c4982db74facaa1722edc18 (patch)
tree2a8c45b49bc75b25a1971bf01772e6e0b9a5d850 /libavcodec/dnxhddata.h
parent86404ffba2d8795d44cffbbeee3b3c7c2cc6afcc (diff)
downloadffmpeg-0c39c38b1456d4a59c4982db74facaa1722edc18.tar.gz
add bitrate helper to choose all dnxhd variants
Originally committed as revision 11260 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/dnxhddata.h')
-rw-r--r--libavcodec/dnxhddata.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/dnxhddata.h b/libavcodec/dnxhddata.h
index c402390224..1bd028e085 100644
--- a/libavcodec/dnxhddata.h
+++ b/libavcodec/dnxhddata.h
@@ -23,6 +23,7 @@
#define FFMPEG_DNXHDDATA_H
#include <stdint.h>
+#include "avcodec.h"
typedef struct {
int cid;
@@ -39,10 +40,12 @@ typedef struct {
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 /* FFMPEG_DNXHDDATA_H */