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
91fe7769
Commit
91fe7769
authored
Jun 29, 2011
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
flashsv: improve some variable names
parent
8886d752
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
flashsv.c
libavcodec/flashsv.c
+7
-7
No files found.
libavcodec/flashsv.c
View file @
91fe7769
...
@@ -152,14 +152,13 @@ static int flashsv_decode_frame(AVCodecContext *avctx, void *data,
...
@@ -152,14 +152,13 @@ static int flashsv_decode_frame(AVCodecContext *avctx, void *data,
/* loop over all block columns */
/* loop over all block columns */
for
(
j
=
0
;
j
<
v_blocks
+
(
v_part
?
1
:
0
);
j
++
)
{
for
(
j
=
0
;
j
<
v_blocks
+
(
v_part
?
1
:
0
);
j
++
)
{
int
hp
=
j
*
s
->
block_height
;
// vertical position in frame
int
y_pos
=
j
*
s
->
block_height
;
// vertical position in frame
int
hs
=
(
j
<
v_blocks
)
?
s
->
block_height
:
v_part
;
// block size
int
cur_blk_height
=
(
j
<
v_blocks
)
?
s
->
block_height
:
v_part
;
/* loop over all block rows */
/* loop over all block rows */
for
(
i
=
0
;
i
<
h_blocks
+
(
h_part
?
1
:
0
);
i
++
)
{
for
(
i
=
0
;
i
<
h_blocks
+
(
h_part
?
1
:
0
);
i
++
)
{
int
wp
=
i
*
s
->
block_width
;
// horizontal position in frame
int
x_pos
=
i
*
s
->
block_width
;
// horizontal position in frame
int
ws
=
(
i
<
h_blocks
)
?
s
->
block_width
:
h_part
;
// block size
int
cur_blk_width
=
(
i
<
h_blocks
)
?
s
->
block_width
:
h_part
;
/* get the size of the compressed zlib chunk */
/* get the size of the compressed zlib chunk */
int
size
=
get_bits
(
&
gb
,
16
);
int
size
=
get_bits
(
&
gb
,
16
);
...
@@ -195,8 +194,9 @@ static int flashsv_decode_frame(AVCodecContext *avctx, void *data,
...
@@ -195,8 +194,9 @@ static int flashsv_decode_frame(AVCodecContext *avctx, void *data,
/* return -1; */
/* return -1; */
}
}
copy_region
(
s
->
tmpblock
,
s
->
frame
.
data
[
0
],
copy_region
(
s
->
tmpblock
,
s
->
frame
.
data
[
0
],
s
->
image_height
-
(
hp
+
hs
+
1
),
s
->
image_height
-
(
y_pos
+
cur_blk_height
+
1
),
wp
,
hs
,
ws
,
s
->
frame
.
linesize
[
0
]);
x_pos
,
cur_blk_height
,
cur_blk_width
,
s
->
frame
.
linesize
[
0
]);
skip_bits_long
(
&
gb
,
8
*
size
);
/* skip the consumed bits */
skip_bits_long
(
&
gb
,
8
*
size
);
/* skip the consumed bits */
}
}
}
}
...
...
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