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
341d4903
Commit
341d4903
authored
Nov 12, 2011
by
Peter Ross
Committed by
Michael Niedermayer
Nov 12, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
set ff_cga_palette and ff_ega_palette alpha component
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
ef97d59f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
cga_data.c
libavcodec/cga_data.c
+10
-10
No files found.
libavcodec/cga_data.c
View file @
341d4903
...
@@ -417,19 +417,19 @@ const uint8_t ff_vga16_font[4096] = {
...
@@ -417,19 +417,19 @@ const uint8_t ff_vga16_font[4096] = {
};
};
const
uint32_t
ff_cga_palette
[
16
]
=
{
const
uint32_t
ff_cga_palette
[
16
]
=
{
0x
000000
,
0x0000AA
,
0x00AA00
,
0x00AAAA
,
0xAA0000
,
0xAA00AA
,
0xAA5500
,
0x
AAAAAA
,
0x
FF000000
,
0xFF0000AA
,
0xFF00AA00
,
0xFF00AAAA
,
0xFFAA0000
,
0xFFAA00AA
,
0xFFAA5500
,
0xFF
AAAAAA
,
0x
555555
,
0x5555FF
,
0x55FF55
,
0x55FFFF
,
0xFF5555
,
0xFF55FF
,
0xFFFF55
,
0x
FFFFFF
,
0x
FF555555
,
0xFF5555FF
,
0xFF55FF55
,
0xFF55FFFF
,
0xFFFF5555
,
0xFFFF55FF
,
0xFFFFFF55
,
0xFF
FFFFFF
,
};
};
const
uint32_t
ff_ega_palette
[
64
]
=
{
const
uint32_t
ff_ega_palette
[
64
]
=
{
0x
000000
,
0x0000AA
,
0x00AA00
,
0x00AAAA
,
0xAA0000
,
0xAA00AA
,
0xAAAA00
,
0x
AAAAAA
,
0x
FF000000
,
0xFF0000AA
,
0xFF00AA00
,
0xFF00AAAA
,
0xFFAA0000
,
0xFFAA00AA
,
0xFFAAAA00
,
0xFF
AAAAAA
,
0x
000055
,
0x0000FF
,
0x00AA55
,
0x00AAFF
,
0xAA0055
,
0xAA00FF
,
0xAAAA55
,
0x
AAAAFF
,
0x
FF000055
,
0xFF0000FF
,
0xFF00AA55
,
0xFF00AAFF
,
0xFFAA0055
,
0xFFAA00FF
,
0xFFAAAA55
,
0xFF
AAAAFF
,
0x
005500
,
0x0055AA
,
0x00FF00
,
0x00FFAA
,
0xAA5500
,
0xAA55AA
,
0xAAFF00
,
0x
AAFFAA
,
0x
FF005500
,
0xFF0055AA
,
0xFF00FF00
,
0xFF00FFAA
,
0xFFAA5500
,
0xFFAA55AA
,
0xFFAAFF00
,
0xFF
AAFFAA
,
0x
005555
,
0x0055FF
,
0x00FF55
,
0x00FFFF
,
0xAA5555
,
0xAA55FF
,
0xAAFF55
,
0x
AAFFFF
,
0x
FF005555
,
0xFF0055FF
,
0xFF00FF55
,
0xFF00FFFF
,
0xFFAA5555
,
0xFFAA55FF
,
0xFFAAFF55
,
0xFF
AAFFFF
,
0x
550000
,
0x5500AA
,
0x55AA00
,
0x55AAAA
,
0xFF0000
,
0xFF00AA
,
0xFFAA00
,
0x
FFAAAA
,
0x
FF550000
,
0xFF5500AA
,
0xFF55AA00
,
0xFF55AAAA
,
0xFFFF0000
,
0xFFFF00AA
,
0xFFFFAA00
,
0xFF
FFAAAA
,
0x
550055
,
0x5500FF
,
0x55AA55
,
0x55AAFF
,
0xFF0055
,
0xFF00FF
,
0xFFAA55
,
0x
FFAAFF
,
0x
FF550055
,
0xFF5500FF
,
0xFF55AA55
,
0xFF55AAFF
,
0xFFFF0055
,
0xFFFF00FF
,
0xFFFFAA55
,
0xFF
FFAAFF
,
0x
555500
,
0x5555AA
,
0x55FF00
,
0x55FFAA
,
0xFF5500
,
0xFF55AA
,
0xFFFF00
,
0x
FFFFAA
,
0x
FF555500
,
0xFF5555AA
,
0xFF55FF00
,
0xFF55FFAA
,
0xFFFF5500
,
0xFFFF55AA
,
0xFFFFFF00
,
0xFF
FFFFAA
,
0x
555555
,
0x5555FF
,
0x55FF55
,
0x55FFFF
,
0xFF5555
,
0xFF55FF
,
0xFFFF55
,
0x
FFFFFF
0x
FF555555
,
0xFF5555FF
,
0xFF55FF55
,
0xFF55FFFF
,
0xFFFF5555
,
0xFFFF55FF
,
0xFFFFFF55
,
0xFF
FFFFFF
};
};
void
ff_draw_pc_font
(
uint8_t
*
dst
,
int
linesize
,
const
uint8_t
*
font
,
int
font_height
,
int
ch
,
int
fg
,
int
bg
)
void
ff_draw_pc_font
(
uint8_t
*
dst
,
int
linesize
,
const
uint8_t
*
font
,
int
font_height
,
int
ch
,
int
fg
,
int
bg
)
...
...
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