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
4b2e6939
Commit
4b2e6939
authored
Apr 22, 2016
by
Vittorio Giovara
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dds: Add support for monochrome images
parent
6eb25058
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
0 deletions
+7
-0
dds.c
libavcodec/dds.c
+4
-0
image.mak
tests/fate/image.mak
+1
-0
dds-monob
tests/ref/fate/dds-monob
+2
-0
No files found.
libavcodec/dds.c
View file @
4b2e6939
...
@@ -240,6 +240,10 @@ static int parse_pixel_format(AVCodecContext *avctx)
...
@@ -240,6 +240,10 @@ static int parse_pixel_format(AVCodecContext *avctx)
ctx
->
paletted
=
1
;
ctx
->
paletted
=
1
;
avctx
->
pix_fmt
=
AV_PIX_FMT_PAL8
;
avctx
->
pix_fmt
=
AV_PIX_FMT_PAL8
;
break
;
break
;
case
MKTAG
(
'G'
,
'1'
,
' '
,
' '
):
ctx
->
compressed
=
0
;
avctx
->
pix_fmt
=
AV_PIX_FMT_MONOBLACK
;
break
;
case
MKTAG
(
'D'
,
'X'
,
'1'
,
'0'
):
case
MKTAG
(
'D'
,
'X'
,
'1'
,
'0'
):
/* DirectX 10 extra header */
/* DirectX 10 extra header */
dxgi
=
bytestream2_get_le32
(
gbc
);
dxgi
=
bytestream2_get_le32
(
gbc
);
...
...
tests/fate/image.mak
View file @
4b2e6939
...
@@ -65,6 +65,7 @@ DDS_FMT = alpha8 \
...
@@ -65,6 +65,7 @@ DDS_FMT = alpha8 \
dxt5-xrbg \
dxt5-xrbg \
dxt5-ycocg \
dxt5-ycocg \
dxt5-ycocg-scaled \
dxt5-ycocg-scaled \
monob \
pal \
pal \
pal-ati \
pal-ati \
rgb1555 \
rgb1555 \
...
...
tests/ref/fate/dds-monob
0 → 100644
View file @
4b2e6939
#tb 0: 1/25
0, 0, 0, 1, 1952, 0x716498a1
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