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
dddd06d5
Commit
dddd06d5
authored
Apr 18, 2012
by
Carl Eugen Hoyos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make tiff-in-mov QuickTime-compatible for more colour-spaces.
Fixes ticket #1228.
parent
e366e6bf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
tiffenc.c
libavcodec/tiffenc.c
+5
-0
No files found.
libavcodec/tiffenc.c
View file @
dddd06d5
...
...
@@ -252,23 +252,28 @@ static int encode_frame(AVCodecContext * avctx, AVPacket *pkt,
bpp_tab
[
3
]
=
16
;
break
;
case
PIX_FMT_RGBA
:
avctx
->
bits_per_coded_sample
=
s
->
bpp
=
32
;
s
->
photometric_interpretation
=
2
;
break
;
case
PIX_FMT_RGB24
:
avctx
->
bits_per_coded_sample
=
s
->
bpp
=
24
;
s
->
photometric_interpretation
=
2
;
break
;
case
PIX_FMT_GRAY8
:
avctx
->
bits_per_coded_sample
=
0x28
;
s
->
bpp
=
8
;
s
->
photometric_interpretation
=
1
;
break
;
case
PIX_FMT_PAL8
:
avctx
->
bits_per_coded_sample
=
s
->
bpp
=
8
;
s
->
photometric_interpretation
=
3
;
break
;
case
PIX_FMT_MONOBLACK
:
case
PIX_FMT_MONOWHITE
:
avctx
->
bits_per_coded_sample
=
s
->
bpp
=
1
;
s
->
photometric_interpretation
=
avctx
->
pix_fmt
==
PIX_FMT_MONOBLACK
;
bpp_tab
[
0
]
=
1
;
...
...
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