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
c6a36f69
Commit
c6a36f69
authored
Jan 22, 2015
by
Carl Eugen Hoyos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavc/pngenc: Support encoding ya16be.
parent
f845ae0c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
pngenc.c
libavcodec/pngenc.c
+5
-1
No files found.
libavcodec/pngenc.c
View file @
c6a36f69
...
@@ -275,6 +275,10 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *pkt,
...
@@ -275,6 +275,10 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *pkt,
bit_depth
=
8
;
bit_depth
=
8
;
color_type
=
PNG_COLOR_TYPE_GRAY_ALPHA
;
color_type
=
PNG_COLOR_TYPE_GRAY_ALPHA
;
break
;
break
;
case
AV_PIX_FMT_YA16BE
:
bit_depth
=
16
;
color_type
=
PNG_COLOR_TYPE_GRAY_ALPHA
;
break
;
case
AV_PIX_FMT_MONOBLACK
:
case
AV_PIX_FMT_MONOBLACK
:
bit_depth
=
1
;
bit_depth
=
1
;
color_type
=
PNG_COLOR_TYPE_GRAY
;
color_type
=
PNG_COLOR_TYPE_GRAY
;
...
@@ -533,7 +537,7 @@ AVCodec ff_png_encoder = {
...
@@ -533,7 +537,7 @@ AVCodec ff_png_encoder = {
AV_PIX_FMT_RGB48BE
,
AV_PIX_FMT_RGBA64BE
,
AV_PIX_FMT_RGB48BE
,
AV_PIX_FMT_RGBA64BE
,
AV_PIX_FMT_PAL8
,
AV_PIX_FMT_PAL8
,
AV_PIX_FMT_GRAY8
,
AV_PIX_FMT_GRAY8A
,
AV_PIX_FMT_GRAY8
,
AV_PIX_FMT_GRAY8A
,
AV_PIX_FMT_GRAY16BE
,
AV_PIX_FMT_GRAY16BE
,
AV_PIX_FMT_YA16BE
,
AV_PIX_FMT_MONOBLACK
,
AV_PIX_FMT_NONE
AV_PIX_FMT_MONOBLACK
,
AV_PIX_FMT_NONE
},
},
.
priv_class
=
&
pngenc_class
,
.
priv_class
=
&
pngenc_class
,
...
...
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