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
c76cf303
Commit
c76cf303
authored
Dec 09, 2017
by
Martin Vignali
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/magicyuv : use gradient_pred dsp func for 8 bits gradient mode
parent
f2e9156e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
magicyuv.c
libavcodec/magicyuv.c
+5
-2
No files found.
libavcodec/magicyuv.c
View file @
c76cf303
...
...
@@ -345,7 +345,7 @@ static int magy_decode_slice(AVCodecContext *avctx, void *tdata,
MagicYUVContext
*
s
=
avctx
->
priv_data
;
int
interlaced
=
s
->
interlaced
;
AVFrame
*
p
=
s
->
p
;
int
i
,
k
,
x
;
int
i
,
k
,
x
,
min_width
;
GetBitContext
gb
;
uint8_t
*
dst
;
...
...
@@ -413,16 +413,19 @@ static int magy_decode_slice(AVCodecContext *avctx, void *tdata,
s
->
llviddsp
.
add_left_pred
(
dst
,
dst
,
width
,
0
);
dst
+=
stride
;
}
min_width
=
FFMIN
(
width
,
32
);
for
(
k
=
1
+
interlaced
;
k
<
height
;
k
++
)
{
top
=
dst
[
-
fake_stride
];
left
=
top
+
dst
[
0
];
dst
[
0
]
=
left
;
for
(
x
=
1
;
x
<
width
;
x
++
)
{
for
(
x
=
1
;
x
<
min_width
;
x
++
)
{
/* dsp need aligned 32 */
top
=
dst
[
x
-
fake_stride
];
lefttop
=
dst
[
x
-
(
fake_stride
+
1
)];
left
+=
top
-
lefttop
+
dst
[
x
];
dst
[
x
]
=
left
;
}
if
(
width
>
32
)
s
->
llviddsp
.
add_gradient_pred
(
dst
+
32
,
fake_stride
,
width
-
32
);
dst
+=
stride
;
}
break
;
...
...
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