diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-03-09 22:48:08 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-03-09 22:48:08 +0100 |
commit | 1b1d77ae9b38fb257e9ae9fb565091c6b7e43181 (patch) | |
tree | ef4875409644c61d98062cfbc10f7029adfe1e9a /libavformat/hevc.h | |
parent | ce1ad8d775ba74f2ab03675043116be3c305fcb1 (diff) | |
parent | 20b40a597cdd4969cf1147d7c7efee2b6232524b (diff) | |
download | ffmpeg-1b1d77ae9b38fb257e9ae9fb565091c6b7e43181.tar.gz |
Merge commit '20b40a597cdd4969cf1147d7c7efee2b6232524b'
* commit '20b40a597cdd4969cf1147d7c7efee2b6232524b':
movenc: write hvcC tag for HEVC.
Conflicts:
libavformat/Makefile
Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/hevc.h')
-rw-r--r-- | libavformat/hevc.h | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/libavformat/hevc.h b/libavformat/hevc.h new file mode 100644 index 0000000000..8b9350dbe5 --- /dev/null +++ b/libavformat/hevc.h @@ -0,0 +1,50 @@ +/* + * Copyright (c) 2014 Tim Walker <tdskywalker@gmail.com> + * + * This file is part of FFmpeg. + * + * FFmpeg is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * FFmpeg is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with FFmpeg; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ + +/** + * @file + * internal header for HEVC (de)muxer utilities + */ + +#ifndef AVFORMAT_HEVC_H +#define AVFORMAT_HEVC_H + +#include <stdint.h> +#include "avio.h" + +/** + * Writes HEVC extradata (parameter sets, declarative SEI NAL units) to the + * provided AVIOContext. + * + * If the extradata is Annex B format, it gets converted to hvcC format before + * writing. + * + * @param pb address of the AVIOContext where the hvcC shall be written + * @param data address of the buffer holding the data needed to write the hvcC + * @param size size (in bytes) of the data buffer + * @param ps_array_completeness whether all parameter sets are in the hvcC (1) + * or there may be additional parameter sets in the bitstream (0) + * @return 0 in case of success, a negative value corresponding to an AVERROR + * code in case of failure + */ +int ff_isom_write_hvcc(AVIOContext *pb, const uint8_t *data, + int size, int ps_array_completeness); + +#endif /* AVFORMAT_HEVC_H */ |