Ignore:
Timestamp:
08/03/08 13:47:11 (5 years ago)
Author:
sam
Message:
  • pixels.c: support more conversion combinations.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpipi/trunk/pipi/pixels.c

    r2636 r2655  
    4949        return &img->p[type]; 
    5050 
     51    /* Preliminary conversions */ 
     52    if(img->last_modified == PIPI_PIXELS_RGBA32 
     53                  && type == PIPI_PIXELS_Y_F) 
     54        pipi_getpixels(img, PIPI_PIXELS_RGBA_F); 
     55    else if(img->last_modified == PIPI_PIXELS_BGR24 
     56                       && type == PIPI_PIXELS_Y_F) 
     57        pipi_getpixels(img, PIPI_PIXELS_RGBA_F); 
     58    else if(img->last_modified == PIPI_PIXELS_Y_F 
     59                       && type == PIPI_PIXELS_RGBA32) 
     60        pipi_getpixels(img, PIPI_PIXELS_RGBA_F); 
     61    else if(img->last_modified == PIPI_PIXELS_Y_F 
     62                       && type == PIPI_PIXELS_BGR24) 
     63        pipi_getpixels(img, PIPI_PIXELS_RGBA_F); 
     64 
    5165    /* Allocate pixels if necessary */ 
    5266    if(!img->p[type].pixels) 
Note: See TracChangeset for help on using the changeset viewer.