summaryrefslogtreecommitdiff
path: root/libavformat/qtpalette.h
diff options
context:
space:
mode:
authorMats Peterson <matsp888@yahoo.com>2015-12-27 21:28:09 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2015-12-28 02:47:26 +0100
commit57631f1851ef71918b68b9a9bdfbeb2974ec1458 (patch)
tree30a709180f45ee8546bcf7b0f4466a9b7c26b19e /libavformat/qtpalette.h
parentc48122d731be09db054befac8ab0ef47fd7d4dc2 (diff)
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.h5
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 */