1 /** 2 * @file morpho_image_data_ex.h 3 * @brief 4 * @version 1.0.0 5 * @date 2010-03-30 6 * 7 * Copyright (C) 2010-2011 Morpho, Inc. 8 */ 9 10 #ifndef MORPHO_IMAGE_DATA_EX_H 11 #define MORPHO_IMAGE_DATA_EX_H 12 13 #include "morpho_image_data.h" 14 15 #ifdef __cplusplus 16 extern "C" { 17 #endif 18 19 typedef struct{ 20 int y; 21 int u; 22 int v; 23 } morpho_ImageYuvPlanarPitch; 24 25 typedef struct{ 26 int y; 27 int uv; 28 } morpho_ImageYuvSemiPlanarPitch; 29 30 /** . */ 31 typedef struct { 32 int width; /**< */ 33 int height; /**< */ 34 union{ 35 void *p; /**< */ 36 morpho_ImageYuvPlanar planar; 37 morpho_ImageYuvSemiPlanar semi_planar; 38 } dat; 39 union{ 40 int p; /**< */ 41 morpho_ImageYuvPlanarPitch planar; 42 morpho_ImageYuvSemiPlanarPitch semi_planar; 43 } pitch; 44 } morpho_ImageDataEx; 45 46 47 #ifdef __cplusplus 48 } 49 #endif 50 51 #endif /* #ifndef MORPHO_IMAGE_DATA_EX_H */ 52