just for completeness, the complete list of the simple matrix
conversions:

(DFB_FIXED_POINT_ONE is (1<<16) from one of my previous patches)


/* reflection against y */
static const s32 mat_y[9] = {
 -DFB_FIXED_POINT_ONE, 0,                   0,
  0,                   DFB_FIXED_POINT_ONE, 0,
  0,                   0,                   DFB_FIXED_POINT_ONE
};

/* reflection against x */
static const s32 mat_x[9] = {
  DFB_FIXED_POINT_ONE,  0,                   0,
  0,                   -DFB_FIXED_POINT_ONE, 0,
  0,                    0,                   DFB_FIXED_POINT_ONE
};

/* 180 rotation */
static const s32 mat_180[9] = {
 -DFB_FIXED_POINT_ONE, 0,                   0,
  0,                  -DFB_FIXED_POINT_ONE, 0,
  0,                   0,                   DFB_FIXED_POINT_ONE
};

/* 270 rotation */
static const s32 mat_270[9] = {
  0,                   DFB_FIXED_POINT_ONE, 0,
 -DFB_FIXED_POINT_ONE, 0,                   0,
  0,                   0,                   DFB_FIXED_POINT_ONE
};

/* 90 rotation */
static const s32 mat_90[9] = {
  0,                  -DFB_FIXED_POINT_ONE, 0,
  DFB_FIXED_POINT_ONE, 0,                   0,
  0,                   0,                   DFB_FIXED_POINT_ONE
};

/* no rotation */
static const s32 mat_0[9] = {
  DFB_FIXED_POINT_ONE, 0,                   0,
  0,                   DFB_FIXED_POINT_ONE, 0,
  0,                   0,                   DFB_FIXED_POINT_ONE
};



On Sat, 2009-10-10 at 23:56 +0200, Lionel Landwerlin wrote:
> Hi all,
> 
> I working with a 2D Blitter that have mirror h/v blit capabilities. It
> seems a lot of already supported hardware have thoses capabilites too.
> Currently the mirror effect is not available in the DirectFB API. If we
> consider including this, were would it go ?
> 
> The blittings flags are almost full. Should we create a new API ?
> 
> Thanks for your responses.
> 
> 

_______________________________________________
directfb-dev mailing list
directfb-dev@directfb.org
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev

Reply via email to