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
dc900310
Commit
dc900310
authored
Jun 30, 2011
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
flashsv: improve some comments and fix some wrong ones
parent
a082e680
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
flashsv.c
libavcodec/flashsv.c
+6
-6
No files found.
libavcodec/flashsv.c
View file @
dc900310
...
...
@@ -104,7 +104,7 @@ static int flashsv_decode_frame(AVCodecContext *avctx, void *data,
s
->
block_height
=
16
*
(
get_bits
(
&
gb
,
4
)
+
1
);
s
->
image_height
=
get_bits
(
&
gb
,
12
);
/* calculate
amount of blocks and the size of the border
blocks */
/* calculate
number of blocks and size of border (partial)
blocks */
h_blocks
=
s
->
image_width
/
s
->
block_width
;
h_part
=
s
->
image_width
%
s
->
block_width
;
v_blocks
=
s
->
image_height
/
s
->
block_height
;
...
...
@@ -121,7 +121,7 @@ static int flashsv_decode_frame(AVCodecContext *avctx, void *data,
}
s
->
block_size
=
s
->
block_width
*
s
->
block_height
;
/* init the image size once */
/* init
ialize
the image size once */
if
(
avctx
->
width
==
0
&&
avctx
->
height
==
0
)
{
avctx
->
width
=
s
->
image_width
;
avctx
->
height
=
s
->
image_height
;
...
...
@@ -152,14 +152,14 @@ static int flashsv_decode_frame(AVCodecContext *avctx, void *data,
/* loop over all block columns */
for
(
j
=
0
;
j
<
v_blocks
+
(
v_part
?
1
:
0
);
j
++
)
{
int
hp
=
j
*
s
->
block_height
;
//
horiz
position in frame
int
hs
=
(
j
<
v_blocks
)
?
s
->
block_height
:
v_part
;
//
size of block
int
hp
=
j
*
s
->
block_height
;
//
vertical
position in frame
int
hs
=
(
j
<
v_blocks
)
?
s
->
block_height
:
v_part
;
//
block size
/* loop over all block rows */
for
(
i
=
0
;
i
<
h_blocks
+
(
h_part
?
1
:
0
);
i
++
)
{
int
wp
=
i
*
s
->
block_width
;
//
vert
position in frame
int
ws
=
(
i
<
h_blocks
)
?
s
->
block_width
:
h_part
;
//
size of block
int
wp
=
i
*
s
->
block_width
;
//
horizontal
position in frame
int
ws
=
(
i
<
h_blocks
)
?
s
->
block_width
:
h_part
;
//
block size
/* get the size of the compressed zlib chunk */
int
size
=
get_bits
(
&
gb
,
16
);
...
...
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