changeset 11869:7d12639b4b05 libavcodec

Move transform declarations out of IVIBandDesc so indeo4 can use them as well.
author maxim
date Fri, 11 Jun 2010 08:49:15 +0000
parents 159554445343
children 6b1a63ea6e61
files ivi_common.h
diffstat 1 files changed, 9 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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;