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
9a9fb710
Commit
9a9fb710
authored
Mar 29, 2016
by
Vittorio Giovara
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dds: Add support for rgb555 files
Signed-off-by:
Vittorio Giovara
<
vittorio.giovara@gmail.com
>
parent
8dde92b9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
dds.c
libavcodec/dds.c
+4
-0
No files found.
libavcodec/dds.c
View file @
9a9fb710
...
...
@@ -357,6 +357,10 @@ static int parse_pixel_format(AVCodecContext *avctx)
avctx
->
pix_fmt
=
AV_PIX_FMT_YA8
;
else
if
(
bpp
==
16
&&
r
==
0xffff
&&
g
==
0
&&
b
==
0
&&
a
==
0
)
avctx
->
pix_fmt
=
AV_PIX_FMT_GRAY16LE
;
else
if
(
bpp
==
16
&&
r
==
0x7c00
&&
g
==
0x3e0
&&
b
==
0x1f
&&
a
==
0
)
avctx
->
pix_fmt
=
AV_PIX_FMT_RGB555LE
;
else
if
(
bpp
==
16
&&
r
==
0x7c00
&&
g
==
0x3e0
&&
b
==
0x1f
&&
a
==
0x8000
)
avctx
->
pix_fmt
=
AV_PIX_FMT_RGB555LE
;
// alpha ignored
else
if
(
bpp
==
16
&&
r
==
0xf800
&&
g
==
0x7e0
&&
b
==
0x1f
&&
a
==
0
)
avctx
->
pix_fmt
=
AV_PIX_FMT_RGB565LE
;
/* 24 bpp */
...
...
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