1 /** 2 * @file morpho_image_data.h 3 * @brief f[^\` 4 * @version 1.0.0 5 * @date 2008-06-09 6 * 7 * Copyright (C) 2006-2012 Morpho, Inc. 8 */ 9 10 #ifndef MORPHO_IMAGE_DATA_H 11 #define MORPHO_IMAGE_DATA_H 12 13 #ifdef __cplusplus 14 extern "C" { 15 #endif 16 17 typedef struct{ 18 void * y; /**< Y|C^ */ 19 void * u; /**< U|C^ */ 20 void * v; /**< V|C^ */ 21 } morpho_ImageYuvPlanar; 22 23 typedef struct{ 24 void * y; /**< Y|C^ */ 25 void * uv; /**< UV|C^ */ 26 } morpho_ImageYuvSemiPlanar; 27 28 /** f[^. */ 29 typedef struct { 30 int width; /**< */ 31 int height; /**< */ 32 union{ 33 void * p; /**< f[^|C^ */ 34 morpho_ImageYuvPlanar planar; 35 morpho_ImageYuvSemiPlanar semi_planar; 36 } dat; 37 } morpho_ImageData; 38 39 #ifdef __cplusplus 40 } 41 #endif 42 43 #endif /* #ifndef MORPHO_IMAGE_DATA_H */ 44