Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
2e85b344
Commit
2e85b344
authored
Oct 08, 2007
by
Baptiste Coudurier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dnxhd 36mbit support
Originally committed as revision 10689 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
68bc33fa
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
dnxhddata.c
libavcodec/dnxhddata.c
+6
-0
dnxhdenc.c
libavcodec/dnxhdenc.c
+2
-0
No files found.
libavcodec/dnxhddata.c
View file @
2e85b344
...
...
@@ -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_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
)
...
...
libavcodec/dnxhdenc.c
View file @
2e85b344
...
...
@@ -181,6 +181,8 @@ static int dnxhd_encode_init(AVCodecContext *avctx)
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
"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment