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
4f1923a9
Commit
4f1923a9
authored
Dec 15, 2014
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/tiffenc: Consistently use ADD_ENTRY1()
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
4cffcbc8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
tiffenc.c
libavcodec/tiffenc.c
+2
-2
No files found.
libavcodec/tiffenc.c
View file @
4f1923a9
...
@@ -486,13 +486,13 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *pkt,
...
@@ -486,13 +486,13 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *pkt,
ADD_ENTRY
(
s
,
TIFF_PAL
,
TIFF_SHORT
,
256
*
3
,
pal
);
ADD_ENTRY
(
s
,
TIFF_PAL
,
TIFF_SHORT
,
256
*
3
,
pal
);
}
}
if
(
alpha
)
if
(
alpha
)
add_entry
1
(
s
,
TIFF_EXTRASAMPLES
,
TIFF_SHORT
,
2
);
ADD_ENTRY
1
(
s
,
TIFF_EXTRASAMPLES
,
TIFF_SHORT
,
2
);
if
(
is_yuv
)
{
if
(
is_yuv
)
{
/** according to CCIR Recommendation 601.1 */
/** according to CCIR Recommendation 601.1 */
uint32_t
refbw
[
12
]
=
{
15
,
1
,
235
,
1
,
128
,
1
,
240
,
1
,
128
,
1
,
240
,
1
};
uint32_t
refbw
[
12
]
=
{
15
,
1
,
235
,
1
,
128
,
1
,
240
,
1
,
128
,
1
,
240
,
1
};
ADD_ENTRY
(
s
,
TIFF_YCBCR_SUBSAMPLING
,
TIFF_SHORT
,
2
,
s
->
subsampling
);
ADD_ENTRY
(
s
,
TIFF_YCBCR_SUBSAMPLING
,
TIFF_SHORT
,
2
,
s
->
subsampling
);
if
(
avctx
->
chroma_sample_location
==
AVCHROMA_LOC_TOPLEFT
)
if
(
avctx
->
chroma_sample_location
==
AVCHROMA_LOC_TOPLEFT
)
add_entry
1
(
s
,
TIFF_YCBCR_POSITIONING
,
TIFF_SHORT
,
2
);
ADD_ENTRY
1
(
s
,
TIFF_YCBCR_POSITIONING
,
TIFF_SHORT
,
2
);
ADD_ENTRY
(
s
,
TIFF_REFERENCE_BW
,
TIFF_RATIONAL
,
6
,
refbw
);
ADD_ENTRY
(
s
,
TIFF_REFERENCE_BW
,
TIFF_RATIONAL
,
6
,
refbw
);
}
}
// write offset to dir
// write offset to dir
...
...
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