diff options
Diffstat (limited to 'video/mp_image.h')
-rw-r--r-- | video/mp_image.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/video/mp_image.h b/video/mp_image.h index ca536a1e91..96b980039d 100644 --- a/video/mp_image.h +++ b/video/mp_image.h @@ -37,6 +37,15 @@ #define MP_IMGFIELD_BOTTOM 0x10 #define MP_IMGFIELD_INTERLACED 0x20 +struct mp_image_params { + enum mp_imgfmt imgfmt; // pixel format + int w, h; // image dimensions + int d_w, d_h; // define display aspect ratio (never 0/0) + enum mp_csp colorspace; + enum mp_csp_levels colorlevels; + enum mp_chroma_location chroma_location; +}; + /* Memory management: * - mp_image is a light-weight reference to the actual image data (pixels). * The actual image data is reference counted and can outlive mp_image @@ -58,7 +67,7 @@ typedef struct mp_image { struct mp_imgfmt_desc fmt; // fields redundant to fmt, for convenience or compatibility - unsigned int imgfmt; + enum mp_imgfmt imgfmt; int num_planes; int chroma_x_shift; // horizontal int chroma_y_shift; // vertical @@ -82,6 +91,8 @@ typedef struct mp_image { enum mp_csp colorspace; enum mp_csp_levels levels; + enum mp_chroma_location chroma_location; + /* only inside filter chain */ double pts; /* memory management */ |