diff options
author | Mats Peterson <matsp888@yahoo.com> | 2015-12-27 21:28:09 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2015-12-28 02:47:26 +0100 |
commit | 57631f1851ef71918b68b9a9bdfbeb2974ec1458 (patch) | |
tree | 30a709180f45ee8546bcf7b0f4466a9b7c26b19e /libavformat/qtpalette.h | |
parent | c48122d731be09db054befac8ab0ef47fd7d4dc2 (diff) | |
download | ffmpeg-57631f1851ef71918b68b9a9bdfbeb2974ec1458.tar.gz |
avformat: factor ff_get_qtpalette() out of mov.c
This consists mainly of moving the palette handling from
the mov_parse_stsd_video() function to a new ff_get_qtpalette() function
in the new file qtpalette.c, which will be shared by both matroskadec.c and
mov.c.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat/qtpalette.h')
-rw-r--r-- | libavformat/qtpalette.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libavformat/qtpalette.h b/libavformat/qtpalette.h index 7d6802f73c..54da2a1083 100644 --- a/libavformat/qtpalette.h +++ b/libavformat/qtpalette.h @@ -23,7 +23,8 @@ #ifndef AVFORMAT_QTPALETTE_H #define AVFORMAT_QTPALETTE_H -#include <inttypes.h> +#include <stdint.h> +#include "avformat.h" static const uint8_t ff_qt_default_palette_4[4 * 3] = { 0x93, 0x65, 0x5E, @@ -310,4 +311,6 @@ static const uint8_t ff_qt_default_palette_256[256 * 3] = { /* 255, 0xFF */ 0x00, 0x00, 0x00 }; +int ff_get_qtpalette(int codec_id, AVIOContext *pb, uint32_t *palette); + #endif /* AVFORMAT_QTPALETTE_H */ |