Mercurial > libavcodec.hg
diff dnxhddata.h @ 6041:bb4b486c6775 libavcodec
add bitrate helper to choose all dnxhd variants
| author | bcoudurier |
|---|---|
| date | Tue, 18 Dec 2007 13:52:07 +0000 |
| parents | 1d83e9c34641 |
| children | c4a4495715dd |
line wrap: on
line diff
--- a/dnxhddata.h Tue Dec 18 13:49:58 2007 +0000 +++ b/dnxhddata.h Tue Dec 18 13:52:07 2007 +0000 @@ -23,6 +23,7 @@ #define FFMPEG_DNXHDDATA_H #include <stdint.h> +#include "avcodec.h" typedef struct { int cid; @@ -39,10 +40,12 @@ 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 */
