]> git.sesse.net Git - ffmpeg/blobdiff - libavutil/frame.h
Merge commit 'adc09136a4a63b152630abeacb22c56541eacf60'
[ffmpeg] / libavutil / frame.h
index 3313703f0c8abd3462e6d7e359b4f367d2195ae9..1c785ddbe3ef07d2f53dbc010b27102889656df7 100644 (file)
@@ -117,6 +117,9 @@ typedef struct AVFrame {
      * preference, this is 16 or 32 for modern desktop CPUs.
      * Some code requires such alignment other code can be slower without
      * correct alignment, for yet other it makes no difference.
+     *
+     * @note The linesize may be larger than the size of usable data -- there
+     * may be extra padding present for performance reasons.
      */
     int linesize[AV_NUM_DATA_POINTERS];
 
@@ -508,6 +511,12 @@ void    av_frame_set_colorspace(AVFrame *frame, enum AVColorSpace val);
 enum AVColorRange av_frame_get_color_range(const AVFrame *frame);
 void    av_frame_set_color_range(AVFrame *frame, enum AVColorRange val);
 
+/**
+ * Get the name of a colorspace.
+ * @return a static string identifying the colorspace; can be NULL.
+ */
+const char *av_get_colorspace_name(enum AVColorSpace val);
+
 /**
  * Allocate an AVFrame and set its fields to default values.  The resulting
  * struct must be freed using av_frame_free().