MIPS: dspr2: added optimization for function TransformColorRed

added new function CollectColorRedTransforms to C, which calls
TransformColorRed and it is realized via pointer to function

Change-Id: Ia68d73bfcf1ca2cb443dc2825910946221f87835
This commit is contained in:
Djordje Pesut
2015-01-14 10:25:40 +01:00
parent 2cb39180cc
commit a7e7caa486
3 changed files with 68 additions and 5 deletions

View File

@ -65,6 +65,11 @@ typedef void (*VP8LCollectColorBlueTransformsFunc)(
const uint32_t* const argb);
extern VP8LCollectColorBlueTransformsFunc VP8LCollectColorBlueTransforms;
typedef void (*VP8LCollectColorRedTransformsFunc)(
int tile_x_offset, int tile_y_offset, int all_x_max, int all_y_max,
int xsize, int green_to_red, int* histo, const uint32_t* const argb);
extern VP8LCollectColorRedTransformsFunc VP8LCollectColorRedTransforms;
// Expose some C-only fallback functions
void VP8LTransformColor_C(const VP8LMultipliers* const m,
uint32_t* data, int num_pixels);