changeset 5796:5691b843e72a libavcodec

dnxhd 36mbit support
author bcoudurier
date Mon, 08 Oct 2007 15:36:57 +0000
parents 8b6fe123be88
children cd21fd29cf7c
files dnxhddata.c dnxhdenc.c
diffstat 2 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/dnxhddata.c	Mon Oct 08 12:28:36 2007 +0000
+++ b/dnxhddata.c	Mon Oct 08 15:36:57 2007 +0000
@@ -281,6 +281,12 @@
       dnxhd_1238_ac_codes, dnxhd_1238_ac_bits, dnxhd_1238_ac_level,
       dnxhd_1238_ac_run_flag, dnxhd_1238_ac_index_flag,
       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)
--- a/dnxhdenc.c	Mon Oct 08 12:28:36 2007 +0000
+++ b/dnxhdenc.c	Mon Oct 08 15:36:57 2007 +0000
@@ -181,6 +181,8 @@
             ctx->cid = 1237;
         else if (avctx->bit_rate == 185000000)
             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) {
         av_log(avctx, AV_LOG_ERROR, "video parameters incompatible with DNxHD\n");