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
7ea77a61
Commit
7ea77a61
authored
Nov 13, 2011
by
Carl Eugen Hoyos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set some Pictor/PC Paint palettes opaque.
parent
0d49dd37
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
pictordec.c
libavcodec/pictordec.c
+5
-3
No files found.
libavcodec/pictordec.c
View file @
7ea77a61
...
...
@@ -175,13 +175,15 @@ static int decode_frame(AVCodecContext *avctx,
palette
[
i
]
=
ff_ega_palette
[
FFMIN
(
buf
[
i
],
63
)];
}
else
if
(
etype
==
4
||
etype
==
5
)
{
npal
=
FFMIN
(
esize
/
3
,
256
);
for
(
i
=
0
;
i
<
npal
;
i
++
)
for
(
i
=
0
;
i
<
npal
;
i
++
)
{
palette
[
i
]
=
AV_RB24
(
buf
+
i
*
3
)
<<
2
;
palette
[
i
]
|=
0xFF
<<
24
;
}
}
else
{
if
(
bpp
==
1
)
{
npal
=
2
;
palette
[
0
]
=
0x000000
;
palette
[
1
]
=
0xFFFFFF
;
palette
[
0
]
=
0x
FF
000000
;
palette
[
1
]
=
0xFFFFFF
FF
;
}
else
if
(
bpp
==
2
)
{
npal
=
4
;
for
(
i
=
0
;
i
<
npal
;
i
++
)
...
...
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