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
3b9dd906
Commit
3b9dd906
authored
Jul 04, 2012
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sanm: replace conditions in for loops with more common version
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
fa36f334
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
sanm.c
libavcodec/sanm.c
+5
-5
No files found.
libavcodec/sanm.c
View file @
3b9dd906
...
...
@@ -772,7 +772,7 @@ static void copy_block(uint16_t *pdest, uint16_t *psrc, int block_size, int pitc
{
int
y
;
for
(
y
=
0
;
y
!=
block_size
;
y
++
,
pdest
+=
pitch
,
psrc
+=
pitch
)
for
(
y
=
0
;
y
<
block_size
;
y
++
,
pdest
+=
pitch
,
psrc
+=
pitch
)
memcpy
(
pdest
,
psrc
,
block_size
*
sizeof
(
pdest
[
0
]));
}
...
...
@@ -781,8 +781,8 @@ static void fill_block(uint16_t *pdest, uint16_t color, int block_size, int pitc
int
x
,
y
;
pitch
-=
block_size
;
for
(
y
=
0
;
y
!=
block_size
;
y
++
,
pdest
+=
pitch
)
for
(
x
=
0
;
x
!=
block_size
;
x
++
)
for
(
y
=
0
;
y
<
block_size
;
y
++
,
pdest
+=
pitch
)
for
(
x
=
0
;
x
<
block_size
;
x
++
)
*
pdest
++
=
color
;
}
...
...
@@ -972,8 +972,8 @@ static int decode_2(SANMVideoContext *ctx)
{
int
cx
,
cy
,
ret
;
for
(
cy
=
0
;
cy
!=
ctx
->
aligned_height
;
cy
+=
8
)
{
for
(
cx
=
0
;
cx
!=
ctx
->
aligned_width
;
cx
+=
8
)
{
for
(
cy
=
0
;
cy
<
ctx
->
aligned_height
;
cy
+=
8
)
{
for
(
cx
=
0
;
cx
<
ctx
->
aligned_width
;
cx
+=
8
)
{
if
(
ret
=
codec2subblock
(
ctx
,
cx
,
cy
,
8
))
return
ret
;
}
...
...
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