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
ff9adf57
Commit
ff9adf57
authored
Mar 14, 2013
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mjpegdec: export qp table
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
a0813e7f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
6 deletions
+13
-6
mjpegdec.c
libavcodec/mjpegdec.c
+13
-6
No files found.
libavcodec/mjpegdec.c
View file @
ff9adf57
...
...
@@ -1743,12 +1743,19 @@ eoi_parser:
*
got_frame
=
1
;
s
->
got_picture
=
0
;
if
(
!
s
->
lossless
&&
avctx
->
debug
&
FF_DEBUG_QP
)
{
av_log
(
avctx
,
AV_LOG_DEBUG
,
"QP: %d
\n
"
,
FFMAX3
(
s
->
qscale
[
0
],
s
->
qscale
[
1
],
s
->
qscale
[
2
]));
if
(
!
s
->
lossless
)
{
int
qp
=
FFMAX3
(
s
->
qscale
[
0
],
s
->
qscale
[
1
],
s
->
qscale
[
2
]);
int
qpw
=
(
s
->
width
+
15
)
/
16
;
AVBufferRef
*
qp_table_buf
=
av_buffer_alloc
(
qpw
);
if
(
qp_table_buf
)
{
memset
(
qp_table_buf
->
data
,
qp
,
qpw
);
av_frame_set_qp_table
(
data
,
qp_table_buf
,
0
,
FF_QSCALE_TYPE_MPEG1
);
}
if
(
avctx
->
debug
&
FF_DEBUG_QP
)
av_log
(
avctx
,
AV_LOG_DEBUG
,
"QP: %d
\n
"
,
qp
);
}
goto
the_end
;
...
...
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