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
b8ff951c
Commit
b8ff951c
authored
Jan 11, 2014
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/mpegvideo_enc: init chroma matrix for mjpeg
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
859d7404
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
mpegvideo_enc.c
libavcodec/mpegvideo_enc.c
+4
-0
No files found.
libavcodec/mpegvideo_enc.c
View file @
b8ff951c
...
@@ -3504,13 +3504,17 @@ static int encode_picture(MpegEncContext *s, int picture_number)
...
@@ -3504,13 +3504,17 @@ static int encode_picture(MpegEncContext *s, int picture_number)
for
(
i
=
1
;
i
<
64
;
i
++
){
for
(
i
=
1
;
i
<
64
;
i
++
){
int
j
=
s
->
dsp
.
idct_permutation
[
i
];
int
j
=
s
->
dsp
.
idct_permutation
[
i
];
s
->
chroma_intra_matrix
[
j
]
=
s
->
intra_matrix
[
j
]
=
av_clip_uint8
((
ff_mpeg1_default_intra_matrix
[
i
]
*
s
->
qscale
)
>>
3
);
s
->
intra_matrix
[
j
]
=
av_clip_uint8
((
ff_mpeg1_default_intra_matrix
[
i
]
*
s
->
qscale
)
>>
3
);
}
}
s
->
y_dc_scale_table
=
s
->
y_dc_scale_table
=
s
->
c_dc_scale_table
=
ff_mpeg2_dc_scale_table
[
s
->
intra_dc_precision
];
s
->
c_dc_scale_table
=
ff_mpeg2_dc_scale_table
[
s
->
intra_dc_precision
];
s
->
chroma_intra_matrix
[
0
]
=
s
->
intra_matrix
[
0
]
=
ff_mpeg2_dc_scale_table
[
s
->
intra_dc_precision
][
8
];
s
->
intra_matrix
[
0
]
=
ff_mpeg2_dc_scale_table
[
s
->
intra_dc_precision
][
8
];
ff_convert_matrix
(
&
s
->
dsp
,
s
->
q_intra_matrix
,
s
->
q_intra_matrix16
,
ff_convert_matrix
(
&
s
->
dsp
,
s
->
q_intra_matrix
,
s
->
q_intra_matrix16
,
s
->
intra_matrix
,
s
->
intra_quant_bias
,
8
,
8
,
1
);
s
->
intra_matrix
,
s
->
intra_quant_bias
,
8
,
8
,
1
);
ff_convert_matrix
(
&
s
->
dsp
,
s
->
q_chroma_intra_matrix
,
s
->
q_chroma_intra_matrix16
,
s
->
chroma_intra_matrix
,
s
->
intra_quant_bias
,
8
,
8
,
1
);
s
->
qscale
=
8
;
s
->
qscale
=
8
;
}
}
if
(
s
->
codec_id
==
AV_CODEC_ID_AMV
){
if
(
s
->
codec_id
==
AV_CODEC_ID_AMV
){
...
...
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