diff options
author | Kevin Wheatley <kevin.j.wheatley@gmail.com> | 2015-03-05 10:40:13 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-03-05 12:26:37 +0100 |
commit | 45555a20c6f425b2999612f80d287253a24216bd (patch) | |
tree | 56d7b943508895f0cf2ca9ce205d3db89abb3aae /libavformat/movenc.h | |
parent | 86b59e6a50c8498efd2ccbd541ac46dac16e958c (diff) | |
download | ffmpeg-45555a20c6f425b2999612f80d287253a24216bd.tar.gz |
avformat/movenc: Add support for writing 'gama' atom to QuickTime .mov files.
As this is depricated it should not be on by default, it is only
supported for MOV containers, depends on avpriv_get_gamma_from_trc()
Enable by:
-movflags +write_gama
This will use the color_trc to supply a gamma value, if desired an
explicit value may be supplied using the -mov_gamma option supplying
a suitable floating point value, values <=1e-6 will not be written.
Signed-off-by: Kevin Wheatley <kevin.j.wheatley@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/movenc.h')
-rw-r--r-- | libavformat/movenc.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/movenc.h b/libavformat/movenc.h index 3a729374da..21d0ee7147 100644 --- a/libavformat/movenc.h +++ b/libavformat/movenc.h @@ -185,6 +185,7 @@ typedef struct MOVMuxContext { AVFormatContext *fc; int use_editlist; + float gamma; } MOVMuxContext; #define FF_MOV_FLAG_RTP_HINT (1 << 0) @@ -202,6 +203,7 @@ typedef struct MOVMuxContext { #define FF_MOV_FLAG_FRAG_DISCONT (1 << 12) #define FF_MOV_FLAG_DELAY_MOOV (1 << 13) #define FF_MOV_FLAG_WRITE_COLR (1 << 14) +#define FF_MOV_FLAG_WRITE_GAMA (1 << 15) int ff_mov_write_packet(AVFormatContext *s, AVPacket *pkt); |