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
9aaacc24
Commit
9aaacc24
authored
Mar 31, 2009
by
Reimar Döffinger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reindent
Originally committed as revision 18270 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
1548839e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
33 deletions
+33
-33
interplayvideo.c
libavcodec/interplayvideo.c
+33
-33
No files found.
libavcodec/interplayvideo.c
View file @
9aaacc24
...
...
@@ -389,35 +389,35 @@ static int ipvideo_decode_block_opcode_0x9(IpvideoContext *s)
if
(
P
[
0
]
<=
P
[
1
])
{
if
(
P
[
2
]
<=
P
[
3
])
{
/* 1 of 4 colors for each pixel, need 16 more bytes */
CHECK_STREAM_PTR
(
16
);
/* 1 of 4 colors for each pixel, need 16 more bytes */
CHECK_STREAM_PTR
(
16
);
for
(
y
=
0
;
y
<
8
;
y
++
)
{
/* get the next set of 8 2-bit flags */
int
flags
=
bytestream_get_le16
(
&
s
->
stream_ptr
);
for
(
x
=
0
;
x
<
8
;
x
++
,
flags
>>=
2
)
{
*
s
->
pixel_ptr
++
=
P
[
flags
&
0x03
];
for
(
y
=
0
;
y
<
8
;
y
++
)
{
/* get the next set of 8 2-bit flags */
int
flags
=
bytestream_get_le16
(
&
s
->
stream_ptr
);
for
(
x
=
0
;
x
<
8
;
x
++
,
flags
>>=
2
)
{
*
s
->
pixel_ptr
++
=
P
[
flags
&
0x03
];
}
s
->
pixel_ptr
+=
s
->
line_inc
;
}
s
->
pixel_ptr
+=
s
->
line_inc
;
}
}
else
{
uint32_t
flags
;
uint32_t
flags
;
/* 1 of 4 colors for each 2x2 block, need 4 more bytes */
CHECK_STREAM_PTR
(
4
);
/* 1 of 4 colors for each 2x2 block, need 4 more bytes */
CHECK_STREAM_PTR
(
4
);
flags
=
bytestream_get_le32
(
&
s
->
stream_ptr
);
flags
=
bytestream_get_le32
(
&
s
->
stream_ptr
);
for
(
y
=
0
;
y
<
8
;
y
+=
2
)
{
for
(
x
=
0
;
x
<
8
;
x
+=
2
,
flags
>>=
2
)
{
s
->
pixel_ptr
[
x
]
=
s
->
pixel_ptr
[
x
+
1
]
=
s
->
pixel_ptr
[
x
+
s
->
stride
]
=
s
->
pixel_ptr
[
x
+
1
+
s
->
stride
]
=
P
[
flags
&
0x03
];
for
(
y
=
0
;
y
<
8
;
y
+=
2
)
{
for
(
x
=
0
;
x
<
8
;
x
+=
2
,
flags
>>=
2
)
{
s
->
pixel_ptr
[
x
]
=
s
->
pixel_ptr
[
x
+
1
]
=
s
->
pixel_ptr
[
x
+
s
->
stride
]
=
s
->
pixel_ptr
[
x
+
1
+
s
->
stride
]
=
P
[
flags
&
0x03
];
}
s
->
pixel_ptr
+=
s
->
stride
*
2
;
}
s
->
pixel_ptr
+=
s
->
stride
*
2
;
}
}
}
else
{
...
...
@@ -428,21 +428,21 @@ static int ipvideo_decode_block_opcode_0x9(IpvideoContext *s)
flags
=
bytestream_get_le64
(
&
s
->
stream_ptr
);
if
(
P
[
2
]
<=
P
[
3
])
{
for
(
y
=
0
;
y
<
8
;
y
++
)
{
for
(
x
=
0
;
x
<
8
;
x
+=
2
,
flags
>>=
2
)
{
s
->
pixel_ptr
[
x
]
=
s
->
pixel_ptr
[
x
+
1
]
=
P
[
flags
&
0x03
];
for
(
y
=
0
;
y
<
8
;
y
++
)
{
for
(
x
=
0
;
x
<
8
;
x
+=
2
,
flags
>>=
2
)
{
s
->
pixel_ptr
[
x
]
=
s
->
pixel_ptr
[
x
+
1
]
=
P
[
flags
&
0x03
];
}
s
->
pixel_ptr
+=
s
->
stride
;
}
s
->
pixel_ptr
+=
s
->
stride
;
}
}
else
{
for
(
y
=
0
;
y
<
8
;
y
+=
2
)
{
for
(
x
=
0
;
x
<
8
;
x
++
,
flags
>>=
2
)
{
s
->
pixel_ptr
[
x
]
=
s
->
pixel_ptr
[
x
+
s
->
stride
]
=
P
[
flags
&
0x03
];
for
(
y
=
0
;
y
<
8
;
y
+=
2
)
{
for
(
x
=
0
;
x
<
8
;
x
++
,
flags
>>=
2
)
{
s
->
pixel_ptr
[
x
]
=
s
->
pixel_ptr
[
x
+
s
->
stride
]
=
P
[
flags
&
0x03
];
}
s
->
pixel_ptr
+=
s
->
stride
*
2
;
}
s
->
pixel_ptr
+=
s
->
stride
*
2
;
}
}
}
...
...
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