# HG changeset patch # User maxim # Date 1276246155 0 # Node ID 7d12639b4b050a0c89b40e126ac5a4c829b775c6 # Parent 159554445343ba6637674bd610c79d210ecb7644 Move transform declarations out of IVIBandDesc so indeo4 can use them as well. diff -r 159554445343 -r 7d12639b4b05 ivi_common.h --- a/ivi_common.h Fri Jun 11 08:05:17 2010 +0000 +++ b/ivi_common.h Fri Jun 11 08:49:15 2010 +0000 @@ -76,6 +76,13 @@ /** + * Declare inverse transform function types + */ +typedef void (InvTransformPtr)(const int32_t *in, int16_t *out, uint32_t pitch, const uint8_t *flags); +typedef void (DCTransformPtr) (const int32_t *in, int16_t *out, uint32_t pitch, int blk_size); + + +/** * run-value (RLE) table descriptor */ typedef struct { @@ -152,8 +159,8 @@ RVMapDesc *rv_map; ///< ptr to the RLE table for this band int num_tiles; ///< number of tiles in this band IVITile *tiles; ///< array of tile descriptors - void (*inv_transform)(const int32_t *in, int16_t *out, uint32_t pitch, const uint8_t *flags); ///< inverse transform function pointer - void (*dc_transform) (const int32_t *in, int16_t *out, uint32_t pitch, int blk_size); ///< dc transform function pointer, it may be NULL + InvTransformPtr *inv_transform; + DCTransformPtr *dc_transform; int is_2d_trans; ///< 1 indicates that the two-dimensional inverse transform is used int32_t checksum; ///< for debug purposes int checksum_present;