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
d9699ea8
Commit
d9699ea8
authored
Mar 30, 2011
by
Baptiste Coudurier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix dnxhd custom options, add AVClass in private context
parent
efdad9fb
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
dnxhdenc.c
libavcodec/dnxhdenc.c
+2
-2
dnxhdenc.h
libavcodec/dnxhdenc.h
+1
-0
No files found.
libavcodec/dnxhdenc.c
View file @
d9699ea8
...
...
@@ -433,7 +433,7 @@ static int dnxhd_calc_bits_thread(AVCodecContext *avctx, void *arg, int jobnr, i
int
n
=
dnxhd_switch_matrix
(
ctx
,
i
);
memcpy
(
block
,
src_block
,
64
*
sizeof
(
*
block
));
last_index
=
ctx
->
m
.
dct_quantize
(
(
MpegEncContext
*
)
ctx
,
block
,
i
,
qscale
,
&
overflow
);
last_index
=
ctx
->
m
.
dct_quantize
(
&
ctx
->
m
,
block
,
i
,
qscale
,
&
overflow
);
ac_bits
+=
dnxhd_calc_ac_bits
(
ctx
,
block
,
last_index
);
diff
=
block
[
0
]
-
ctx
->
m
.
last_dc
[
n
];
...
...
@@ -478,7 +478,7 @@ static int dnxhd_encode_thread(AVCodecContext *avctx, void *arg, int jobnr, int
DCTELEM
*
block
=
ctx
->
blocks
[
i
];
int
last_index
,
overflow
;
int
n
=
dnxhd_switch_matrix
(
ctx
,
i
);
last_index
=
ctx
->
m
.
dct_quantize
(
(
MpegEncContext
*
)
ctx
,
block
,
i
,
qscale
,
&
overflow
);
last_index
=
ctx
->
m
.
dct_quantize
(
&
ctx
->
m
,
block
,
i
,
qscale
,
&
overflow
);
//START_TIMER;
dnxhd_encode_block
(
ctx
,
block
,
last_index
,
n
);
//STOP_TIMER("encode_block");
...
...
libavcodec/dnxhdenc.h
View file @
d9699ea8
...
...
@@ -39,6 +39,7 @@ typedef struct {
}
RCEntry
;
typedef
struct
DNXHDEncContext
{
AVClass
*
class
;
MpegEncContext
m
;
///< Used for quantization dsp functions
AVFrame
frame
;
...
...
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