summaryrefslogtreecommitdiff
path: root/libavformat/internal.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2016-02-18 20:57:32 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2016-02-19 15:47:33 +0100
commit7ac962af38f0f0adf6dcfb6716faee9729ef8036 (patch)
treedc6b6759716e2b1f7340e6d8c1937c4dc98a1c5d /libavformat/internal.h
parent4956dc88d1fee9f4fa8ae0e26cec0593fef68179 (diff)
avformat/avienc: Store pal8 palette
This can be made more efficient, but first and the main goal of this change is to store it at all Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat/internal.h')
-rw-r--r--libavformat/internal.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/libavformat/internal.h b/libavformat/internal.h
index 93be63249e..bc6a6c2716 100644
--- a/libavformat/internal.h
+++ b/libavformat/internal.h
@@ -560,11 +560,16 @@ void ff_format_io_close(AVFormatContext *s, AVIOContext **pb);
*/
int ff_parse_creation_time_metadata(AVFormatContext *s, int64_t *timestamp, int return_seconds);
+
+#define CONTAINS_PAL 2
/**
* Reshuffles the lines to use the user specified stride.
*
* @param ppkt input and output packet
- * @return negative error code or 0 or 1, 1 indicates that ppkt needs to be freed
+ * @return negative error code or
+ * 0 if no new packet was allocated
+ * non-zero if a new packet was allocated and ppkt has to be freed
+ * CONTAINS_PAL if in addition to a new packet the old contained a palette
*/
int ff_reshuffle_raw_rgb(AVFormatContext *s, AVPacket **ppkt, AVCodecContext *enc, int expected_stride);