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
ee0a0358
Commit
ee0a0358
authored
Nov 13, 2006
by
Kostya Shishkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support for 16-bit grayscale
Originally committed as revision 7012 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
2878cecd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
tiff.c
libavcodec/tiff.c
+8
-0
No files found.
libavcodec/tiff.c
View file @
ee0a0358
...
...
@@ -255,6 +255,14 @@ static int tiff_decode_tag(TiffContext *s, uint8_t *start, uint8_t *buf, uint8_t
case
24
:
s
->
avctx
->
pix_fmt
=
PIX_FMT_RGB24
;
break
;
case
16
:
if
(
count
==
1
){
s
->
avctx
->
pix_fmt
=
PIX_FMT_GRAY16BE
;
}
else
{
av_log
(
s
->
avctx
,
AV_LOG_ERROR
,
"This format is not supported (bpp=%i)
\n
"
,
s
->
bpp
);
return
-
1
;
}
break
;
default
:
av_log
(
s
->
avctx
,
AV_LOG_ERROR
,
"This format is not supported (bpp=%i)
\n
"
,
s
->
bpp
);
return
-
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