diff options
author | Anton Khirnov <anton@khirnov.net> | 2015-11-14 16:42:59 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2015-11-14 16:42:59 +0100 |
commit | 855d11fb01aa915bdf325f5ae57f28d9077c4e10 (patch) | |
tree | 6e62c850a9058f7673f0f43ae06f476750e05b78 /libavutil/pixformaton.h | |
parent | c6ed5833ca8d91fcabc29051e535c900588ede88 (diff) |
more stuffavscale
Diffstat (limited to 'libavutil/pixformaton.h')
-rw-r--r-- | libavutil/pixformaton.h | 20 |
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 */ |