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
ed62e6e3
Commit
ed62e6e3
authored
Dec 10, 2012
by
Mans Rullgard
Committed by
Diego Biurrun
Feb 07, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mjpegdec: use put_pixels instead of copy_block8
Signed-off-by:
Mans Rullgard
<
mans@mansr.com
>
parent
b5b7b75e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
mjpegdec.c
libavcodec/mjpegdec.c
+6
-4
No files found.
libavcodec/mjpegdec.c
View file @
ed62e6e3
...
...
@@ -864,8 +864,9 @@ static int mjpeg_decode_scan(MJpegDecodeContext *s, int nb_components, int Ah,
ptr
=
data
[
c
]
+
block_offset
;
if
(
!
s
->
progressive
)
{
if
(
copy_mb
)
copy_block8
(
ptr
,
reference_data
[
c
]
+
block_offset
,
linesize
[
c
],
linesize
[
c
],
8
);
s
->
dsp
.
put_pixels_tab
[
1
][
0
](
ptr
,
reference_data
[
c
]
+
block_offset
,
linesize
[
c
],
8
);
else
{
s
->
dsp
.
clear_block
(
s
->
block
);
if
(
decode_block
(
s
,
s
->
block
,
i
,
...
...
@@ -979,8 +980,9 @@ static int mjpeg_decode_scan_progressive_ac(MJpegDecodeContext *s, int ss,
if
(
last_scan
)
{
if
(
copy_mb
)
{
copy_block8
(
ptr
,
reference_data
+
block_offset
,
linesize
,
linesize
,
8
);
s
->
dsp
.
put_pixels_tab
[
1
][
0
](
ptr
,
reference_data
+
block_offset
,
linesize
,
8
);
}
else
{
s
->
dsp
.
idct_put
(
ptr
,
linesize
,
*
block
);
ptr
+=
8
;
...
...
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