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
c673ef12
Commit
c673ef12
authored
Nov 05, 2012
by
Carl Eugen Hoyos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Write tiff tag YCbCrPositioning if chroma_sample_location is top-left.
parent
b015cd7e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
tiffenc.c
libavcodec/tiffenc.c
+2
-0
No files found.
libavcodec/tiffenc.c
View file @
c673ef12
...
...
@@ -471,6 +471,8 @@ static int encode_frame(AVCodecContext * avctx, AVPacket *pkt,
/** according to CCIR Recommendation 601.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
);
if
(
avctx
->
chroma_sample_location
==
AVCHROMA_LOC_TOPLEFT
)
add_entry1
(
s
,
TIFF_YCBCR_POSITIONING
,
TIFF_SHORT
,
2
);
add_entry
(
s
,
TIFF_REFERENCE_BW
,
TIFF_RATIONAL
,
6
,
refbw
);
}
bytestream_put_le32
(
&
offset
,
ptr
-
pkt
->
data
);
// 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