summaryrefslogtreecommitdiff
path: root/libavutil/pixformaton.h
diff options
context:
space:
mode:
Diffstat (limited to 'libavutil/pixformaton.h')
-rw-r--r--libavutil/pixformaton.h20
1 files changed, 17 insertions, 3 deletions
diff --git a/libavutil/pixformaton.h b/libavutil/pixformaton.h
index 36744a0038..ef2831ad3f 100644
--- a/libavutil/pixformaton.h
+++ b/libavutil/pixformaton.h
@@ -115,7 +115,6 @@ typedef struct AVPixelChromaton {
int packed;
} AVPixelChromaton;
-
/**
* Pixel format description
*
@@ -125,6 +124,12 @@ typedef struct AVPixelChromaton {
*/
typedef struct AVPixelFormaton {
/**
+ * Data for internal use only, should not be accessed in any way
+ * by the callers
+ */
+ void *opaque;
+
+ /**
* Defines how to interpret the components
*
* The components in the formaton are enumerated in fixed order
@@ -181,7 +186,16 @@ typedef struct AVPixelFormaton {
AVPixelChromaton component_desc[AV_PIX_FORMATON_COMPONENTS];
} AVPixelFormaton;
-AVPixelFormaton *av_formaton_from_pixfmt(enum AVPixelFormat pix_fmt);
-void av_formaton_free(AVPixelFormaton **formaton);
+typedef struct AVPixelFormatonRef {
+ AVPixelFormaton *pf;
+} AVPixelFormatonRef;
+
+AVPixelFormatonRef *av_pixformaton_alloc(void);
+
+AVPixelFormatonRef *av_pixformaton_ref(AVPixelFormatonRef *pf);
+
+void av_pixformaton_unref(AVPixelFormatonRef **pf);
+
+AVPixelFormatonRef *av_pixformaton_from_pixfmt(enum AVPixelFormat pix_fmt);
#endif /* AVUTIL_PIXFORMATON_H */