Slightly more detailed doxy documentation. -- Mats Peterson http://matsp888.no-ip.org/~mats/
>From ffdd2d19cfe2f87e9a12601a3b809521af5fa89b Mon Sep 17 00:00:00 2001 From: Mats Peterson <matsp...@yahoo.com> Date: Tue, 1 Mar 2016 09:38:37 +0100 Subject: [PATCH v3 5/5 v2] lavf/internal.h: Add declaration for ff_get_raw_palette()
--- libavformat/internal.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/libavformat/internal.h b/libavformat/internal.h index bc6a6c2..790ea3b 100644 --- a/libavformat/internal.h +++ b/libavformat/internal.h @@ -573,4 +573,18 @@ 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 a side data packet + * or appended to the video data in the packet itself. + * + * Despite its name, this function is also used with non-raw codecs that + * use a palette. In this case, the `ret' variable will be set to 0 + * before calling the function in order to check for a palette side data + * packet only. + * + * @param pkt pointer to the packet before calling ff_reshuffle_raw_rgb() + * @param ret the return value from ff_reshuffle_raw_rgb() + */ +int ff_get_raw_palette(AVFormatContext *s, AVPacket *pkt, int ret, const uint8_t **palette); + #endif /* AVFORMAT_INTERNAL_H */ -- 1.7.10.4
_______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel