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
25c40355
Commit
25c40355
authored
Dec 24, 2016
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/pixlet: simplify lowpass_prediction() function
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
c4152fc4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
10 deletions
+7
-10
pixlet.c
libavcodec/pixlet.c
+7
-10
No files found.
libavcodec/pixlet.c
View file @
25c40355
...
...
@@ -343,21 +343,18 @@ static int read_highpass(AVCodecContext *avctx, uint8_t *ptr, int plane, AVFrame
static
void
lowpass_prediction
(
int16_t
*
dst
,
int16_t
*
pred
,
int
width
,
int
height
,
ptrdiff_t
stride
)
{
int16_t
*
next
,
val
;
int16_t
val
;
int
i
,
j
;
memset
(
pred
,
0
,
width
*
sizeof
(
*
pred
));
for
(
i
=
0
;
i
<
height
;
i
++
)
{
val
=
pred
[
0
]
+
dst
[
0
];
dst
[
0
]
=
val
;
pred
[
0
]
=
val
;
next
=
dst
+
2
;
for
(
j
=
1
;
j
<
width
;
j
++
,
next
++
)
{
val
=
pred
[
j
]
+
next
[
-
1
];
next
[
-
1
]
=
val
;
pred
[
j
]
=
val
;
next
[
-
1
]
+=
next
[
-
2
];
val
=
pred
[
0
]
+
dst
[
0
];
dst
[
0
]
=
pred
[
0
]
=
val
;
for
(
j
=
1
;
j
<
width
;
j
++
)
{
val
=
pred
[
j
]
+
dst
[
j
];
dst
[
j
]
=
pred
[
j
]
=
val
;
dst
[
j
]
+=
dst
[
j
-
1
];
}
dst
+=
stride
;
}
...
...
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