Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMats Peterson <matsp888@yahoo.com>2016-03-02 05:14:05 +0300
committerMichael Niedermayer <michael@niedermayer.cc>2016-03-02 20:11:18 +0300
commit2be0366a7f5de926efac5a412268c824a6acbddf (patch)
treea0ac5db53e0bd200c70d2512a758e45d1bd5d538 /libavformat/internal.h
parent554f6e930ce05a4c5449efcaae36bdafe2d9de74 (diff)
lavf/utils: Add ff_get_packet_palette()
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat/internal.h')
-rw-r--r--libavformat/internal.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/libavformat/internal.h b/libavformat/internal.h
index bc6a6c2716..8e066552d2 100644
--- a/libavformat/internal.h
+++ b/libavformat/internal.h
@@ -573,4 +573,16 @@ int ff_parse_creation_time_metadata(AVFormatContext *s, int64_t *timestamp, int
*/
int ff_reshuffle_raw_rgb(AVFormatContext *s, AVPacket **ppkt, AVCodecContext *enc, int expected_stride);
+/**
+ * Retrieves the palette from a packet, either from side data, or
+ * appended to the video data in the packet itself (raw video only).
+ * It is commonly used after a call to ff_reshuffle_raw_rgb().
+ *
+ * Use 0 for the ret parameter to check for side data only.
+ *
+ * @param pkt pointer to the packet before calling ff_reshuffle_raw_rgb()
+ * @param ret return value from ff_reshuffle_raw_rgb(), or 0
+ */
+int ff_get_packet_palette(AVFormatContext *s, AVPacket *pkt, int ret, const uint8_t **palette);
+
#endif /* AVFORMAT_INTERNAL_H */