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
7ebe28c2
Commit
7ebe28c2
authored
Jun 24, 2012
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xwdenc: support 8bpp grayscale
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
b9c94e82
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
xwdenc.c
libavcodec/xwdenc.c
+6
-0
No files found.
libavcodec/xwdenc.c
View file @
7ebe28c2
...
...
@@ -132,6 +132,11 @@ static int xwd_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
bpad
=
8
;
ncolors
=
256
;
break
;
case
PIX_FMT_GRAY8
:
bpp
=
8
;
bpad
=
8
;
vclass
=
XWD_STATIC_GRAY
;
break
;
case
PIX_FMT_MONOWHITE
:
be
=
1
;
bitorder
=
1
;
...
...
@@ -243,6 +248,7 @@ AVCodec ff_xwd_encoder = {
PIX_FMT_RGB4_BYTE
,
PIX_FMT_BGR4_BYTE
,
PIX_FMT_PAL8
,
PIX_FMT_GRAY8
,
PIX_FMT_MONOWHITE
,
PIX_FMT_NONE
},
.
long_name
=
NULL_IF_CONFIG_SMALL
(
"XWD (X Window Dump) image"
),
...
...
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