]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/internal.h
Merge commit '7fbb3b5b9857276b4cd17b2a530c7e0880d2bc0a'
[ffmpeg] / libavformat / internal.h
index fee823d32f2ed07396ef0c9dfa562616993ff596..bc6a6c2716309b86e87abe518f76acab04bfca5c 100644 (file)
@@ -560,4 +560,17 @@ 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 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);
+
 #endif /* AVFORMAT_INTERNAL_H */