Commit 6acf5c66 authored by bcoudurier's avatar bcoudurier

dnxhd 36mbit support

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@10689 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent f019cd22
...@@ -281,6 +281,12 @@ const CIDEntry ff_dnxhd_cid_table[] = { ...@@ -281,6 +281,12 @@ const CIDEntry ff_dnxhd_cid_table[] = {
dnxhd_1238_ac_codes, dnxhd_1238_ac_bits, dnxhd_1238_ac_level, dnxhd_1238_ac_codes, dnxhd_1238_ac_bits, dnxhd_1238_ac_level,
dnxhd_1238_ac_run_flag, dnxhd_1238_ac_index_flag, dnxhd_1238_ac_run_flag, dnxhd_1238_ac_index_flag,
dnxhd_1238_run_codes, dnxhd_1238_run_bits, dnxhd_1238_run }, dnxhd_1238_run_codes, dnxhd_1238_run_bits, dnxhd_1238_run },
{ 1253, 1920, 1080, 0, 188416, 188416, 4, 8,
dnxhd_1237_luma_weight, dnxhd_1237_chroma_weight,
dnxhd_1237_dc_codes, dnxhd_1237_dc_bits,
dnxhd_1237_ac_codes, dnxhd_1237_ac_bits, dnxhd_1237_ac_level,
dnxhd_1237_ac_run_flag, dnxhd_1237_ac_index_flag,
dnxhd_1237_run_codes, dnxhd_1237_run_bits, dnxhd_1237_run },
}; };
int ff_dnxhd_get_cid_table(int cid) int ff_dnxhd_get_cid_table(int cid)
......
...@@ -181,6 +181,8 @@ static int dnxhd_encode_init(AVCodecContext *avctx) ...@@ -181,6 +181,8 @@ static int dnxhd_encode_init(AVCodecContext *avctx)
ctx->cid = 1237; ctx->cid = 1237;
else if (avctx->bit_rate == 185000000) else if (avctx->bit_rate == 185000000)
ctx->cid = 1238; ctx->cid = 1238;
else if (avctx->bit_rate == 36000000)
ctx->cid = 1253;
} }
if (!ctx->cid || avctx->width != 1920 || avctx->height != 1080 || avctx->pix_fmt != PIX_FMT_YUV422P) { if (!ctx->cid || avctx->width != 1920 || avctx->height != 1080 || avctx->pix_fmt != PIX_FMT_YUV422P) {
av_log(avctx, AV_LOG_ERROR, "video parameters incompatible with DNxHD\n"); av_log(avctx, AV_LOG_ERROR, "video parameters incompatible with DNxHD\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment