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
c2e36e07
Commit
c2e36e07
authored
Jan 22, 2015
by
Carl Eugen Hoyos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavc/tiffenc: Support encoding ya16le.
parent
c6a36f69
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
tiffenc.c
libavcodec/tiffenc.c
+3
-2
No files found.
libavcodec/tiffenc.c
View file @
c2e36e07
...
...
@@ -277,7 +277,8 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *pkt,
case
AV_PIX_FMT_GRAY8
:
avctx
->
bits_per_coded_sample
=
0x28
;
case
AV_PIX_FMT_GRAY8A
:
alpha
=
avctx
->
pix_fmt
==
AV_PIX_FMT_GRAY8A
;
case
AV_PIX_FMT_YA16LE
:
alpha
=
avctx
->
pix_fmt
==
AV_PIX_FMT_GRAY8A
||
avctx
->
pix_fmt
==
AV_PIX_FMT_YA16LE
;
case
AV_PIX_FMT_GRAY16LE
:
case
AV_PIX_FMT_MONOBLACK
:
s
->
photometric_interpretation
=
TIFF_PHOTOMETRIC_BLACK_IS_ZERO
;
...
...
@@ -575,7 +576,7 @@ AVCodec ff_tiff_encoder = {
.
pix_fmts
=
(
const
enum
AVPixelFormat
[])
{
AV_PIX_FMT_RGB24
,
AV_PIX_FMT_RGB48LE
,
AV_PIX_FMT_PAL8
,
AV_PIX_FMT_RGBA
,
AV_PIX_FMT_RGBA64LE
,
AV_PIX_FMT_GRAY8
,
AV_PIX_FMT_GRAY8A
,
AV_PIX_FMT_GRAY16LE
,
AV_PIX_FMT_GRAY8
,
AV_PIX_FMT_GRAY8A
,
AV_PIX_FMT_GRAY16LE
,
AV_PIX_FMT_YA16LE
,
AV_PIX_FMT_MONOBLACK
,
AV_PIX_FMT_MONOWHITE
,
AV_PIX_FMT_YUV420P
,
AV_PIX_FMT_YUV422P
,
AV_PIX_FMT_YUV440P
,
AV_PIX_FMT_YUV444P
,
AV_PIX_FMT_YUV410P
,
AV_PIX_FMT_YUV411P
,
...
...
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