]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/avcodec.h
x86/hevc_deblock: improve chroma functions register allocation
[ffmpeg] / libavcodec / avcodec.h
index 9a24c9663326a6210732bc9d8b12280d2465dfaa..5bff631a6a44234efbb6d310b50801a3740ab81e 100644 (file)
@@ -1052,6 +1052,15 @@ enum AVPacketSideDataType {
      */
     AV_PKT_DATA_REPLAYGAIN,
 
+    /**
+     * This side data contains a 3x3 transformation matrix describing an affine
+     * transformation that needs to be applied to the decoded video frames for
+     * correct presentation.
+     *
+     * See libavutil/display.h for a detailed description of the data.
+     */
+    AV_PKT_DATA_DISPLAYMATRIX,
+
     /**
      * Recommmends skipping the specified number of samples
      * @code
@@ -3455,9 +3464,8 @@ void avcodec_register(AVCodec *codec);
 void avcodec_register_all(void);
 
 /**
- * Allocate an AVCodecContext and set its fields to default values.  The
- * resulting struct can be deallocated by calling avcodec_close() on it followed
- * by av_free().
+ * Allocate an AVCodecContext and set its fields to default values. The
+ * resulting struct should be freed with avcodec_free_context().
  *
  * @param codec if non-NULL, allocate private data and initialize defaults
  *              for the given codec. It is illegal to then call avcodec_open2()
@@ -3471,6 +3479,12 @@ void avcodec_register_all(void);
  */
 AVCodecContext *avcodec_alloc_context3(const AVCodec *codec);
 
+/**
+ * Free the codec context and everything associated with it and write NULL to
+ * the provided pointer.
+ */
+void avcodec_free_context(AVCodecContext **avctx);
+
 /**
  * Set the fields of the given AVCodecContext to default values corresponding
  * to the given codec (defaults may be codec-dependent).