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
ac8d6f12
Commit
ac8d6f12
authored
May 13, 2011
by
Stefano Sabatini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tiffenc: factorize code for monow/monob case in encode_frame() switch
Reduce code duplication, increase robustness.
parent
995013eb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
tiffenc.c
libavcodec/tiffenc.c
+1
-4
No files found.
libavcodec/tiffenc.c
View file @
ac8d6f12
...
...
@@ -255,12 +255,9 @@ static int encode_frame(AVCodecContext * avctx, unsigned char *buf,
s
->
photometric_interpretation
=
3
;
break
;
case
PIX_FMT_MONOBLACK
:
s
->
bpp
=
1
;
s
->
photometric_interpretation
=
1
;
break
;
case
PIX_FMT_MONOWHITE
:
s
->
bpp
=
1
;
s
->
photometric_interpretation
=
0
;
s
->
photometric_interpretation
=
avctx
->
pix_fmt
==
PIX_FMT_MONOBLACK
;
break
;
case
PIX_FMT_YUV420P
:
case
PIX_FMT_YUV422P
:
...
...
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