[poppler] Patch: Change Splashbitmap RGB8 to 32bits internal

Leonard Rosenthol leonardr at pdfsages.com
Wed Apr 5 04:05:27 PDT 2006


At 02:12 AM 4/5/2006, Frank Meerkötter wrote:
>i haven't found a mode named RGBA.

         Sorry - it's ARGB8 defined in SplashTypes.h

enum SplashColorMode {
   splashModeMono1,              // 1 bit per component, 8 pixels per byte,
                                 //   MSbit is on the left
   splashModeMono8,              // 1 byte per component, 1 byte per pixel
   splashModeAMono8,             // 1 byte per component, 2 bytes per pixel:
                                 //   AMAM...
   splashModeRGB8,               // 1 byte per component, 3 bytes per pixel:
                                 //   RGBRGB...
   splashModeBGR8,               // 1 byte per component, 3 bytes per pixel:
                                 //   BGRBGR...
   splashModeARGB8,              // 1 byte per component, 4 bytes per pixel:
                                 //   ARGBARGB...
   splashModeBGRA8               // 1 byte per component, 4 bytes per pixel:
                                 //   BGRABGRA...
#if SPLASH_CMYK
   ,
   splashModeCMYK8,              // 1 byte per component, 4 bytes per pixel:
                                 //   CMYKCMYK...
   splashModeACMYK8              // 1 byte per component, 5 bytes per pixel:
                                 //   ACMYKACMYK
#endif
};

         In which case, I would just add a NEW 
enum, splashModeRGBA8.  Then find all instances 
of ARGB8, copy/paste and modify.   That way folks 
who want RGB can get RGB and those that also want an alpha can have that.


LDR

---------------------------------------------------------------------------
Leonard Rosenthol                            <mailto:leonardr at pdfsages.com>
Chief Technical Officer                      <http://www.pdfsages.com>
PDF Sages, Inc.                              215-938-7080 (voice)
                                              215-938-0880 (fax)



More information about the poppler mailing list