add bitrate helper to choose all dnxhd variants

Originally committed as revision 11260 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Baptiste Coudurier
2007-12-18 13:52:07 +00:00
parent 86404ffba2
commit 0c39c38b14
3 changed files with 40 additions and 29 deletions

View File

@ -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 */