Gerd Alber wrote:
>  Denis Oliver Kropp write:
> 
> 
>>There's a 1 bit alpha format A1. You can try using that or implement a
>>new one with A1 or LUT4 as an example.
> 
> 
>>Monochrome would be a format with 1 bit luminance though :)
> 
> 
> Hi, 
> thanks for the fast reply!
> 
> Sure, I can handle with 1 bit alpha format A1. But the problem is to write 
> 1 bit per pixel into RAM (every bit in RAM is equivalent to 1 pixel on my 
> monochrome Display).
> Least operation in DirectFB is 1 Byte per pixel (u8), e.g. 
> static void Cop_to_Aop_8( GenefxState *gfxs ).
> I'am right ?

DirectFB supports 8 pixels per byte, but in the A1 case some functions
are just not implemented, e.g.:

static GenefxFunc Cop_to_Aop_PFI[DFB_NUM_PIXELFORMATS] = {
      Cop_to_Aop_16,      /* DSPF_ARGB1555 */
      Cop_to_Aop_16,      /* DSPF_RGB16 */
      Cop_to_Aop_24,      /* DSPF_RGB24 */
      Cop_to_Aop_32,      /* DSPF_RGB32 */
      Cop_to_Aop_32,      /* DSPF_ARGB */
      Cop_to_Aop_8,       /* DSPF_A8 */
      Cop_to_Aop_yuv422,  /* DSPF_YUY2 */
      Cop_to_Aop_8,       /* DSPF_RGB332 */
      Cop_to_Aop_yuv422,  /* DSPF_UYVY */
      Cop_to_Aop_i420,    /* DSPF_I420 */
      Cop_to_Aop_i420,    /* DSPF_YV12 */
      Cop_to_Aop_8,       /* DSPF_LUT8 */
      Cop_to_Aop_8,       /* DSPF_ALUT44 */
      Cop_to_Aop_32,      /* DSPF_AiRGB */
      NULL,               /* DSPF_A1 */ <=================
      Cop_to_Aop_nv12,    /* DSPF_NV12 */
      Cop_to_Aop_nv12,    /* DSPF_NV16 */
      Cop_to_Aop_16,      /* DSPF_ARGB2554 */
      Cop_to_Aop_16,      /* DSPF_ARGB4444 */
      Cop_to_Aop_nv21,    /* DSPF_NV21 */
      Cop_to_Aop_32,      /* DSPF_AYUV */
      NULL,               /* DSPF_A4 */
      Cop_to_Aop_18,      /* DSPF_ARGB1666 */
      Cop_to_Aop_18,      /* DSPF_ARGB6666 */
      Cop_to_Aop_18,      /* DSPF_RGB18 */
};

-- 
Best regards,
   Denis Oliver Kropp

.------------------------------------------.
| DirectFB - Hardware accelerated graphics |
| http://www.directfb.org/                 |
"------------------------------------------"

_______________________________________________
directfb-dev mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev

Reply via email to