mmsfbconv.h File Reference

#include "mmsgui/fb/mmsfbbase.h"
#include "mmsgui/fb/mmsfbfont.h"

Include dependency graph for mmsfbconv.h:

Go to the source code of this file.


Defines

#define MMSFB_CONV_RGB2Y(r, g, b)   (((66*r+129*g+25*b+128)>>8)+16)
#define MMSFB_CONV_RGB2U(r, g, b)   (((-38*r-74*g+112*b+128)>>8)+128)
#define MMSFB_CONV_RGB2V(r, g, b)   (((112*r-94*g-18*b+128)>>8)+128)
#define MMSFB_CONV_PREPARE_YUV2RGB(y, u, v)   y=(int)y-16;u=(int)u-128;v=(int)v-128;
#define MMSFB_CONV_PREPARE_YUVBLEND(y, u, v)   y=(int)y-16;u=(int)u-128;v=(int)v-128;
#define MMSFB_CONV_RESET_YUVBLEND(y, u, v)   y=(int)y+16;u=(int)u+128;v=(int)v+128;
#define MMSFB_CONV_YUV2R(y, u, v, r)   if ((r=(298*(int)y+409*(int)v+128+0x200)>>8)<0)r=0;else if(r>0xff)r=0xff;
#define MMSFB_CONV_YUV2G(y, u, v, g)   if ((g=(298*(int)y-100*(int)u-208*(int)v+128+0x200)>>8)<0)g=0;else if(g>0xff)g=0xff;
#define MMSFB_CONV_YUV2B(y, u, v, b)   if ((b=(298*(int)y+516*(int)u+128+0x200)>>8)<0)b=0;else if(b>0xff)b=0xff;
#define MMSFB_CONV_YUV2RX(y, u, v, r)   if ((r=298*(int)y+409*(int)v+128+0x200)>>16) r=0xff00;
#define MMSFB_CONV_YUV2GX(y, u, v, g)   if ((g=298*(int)y-100*(int)u-208*(int)v+128+0x200)>>16) g=0xff00;
#define MMSFB_CONV_YUV2BX(y, u, v, b)   if ((b=298*(int)y+516*(int)u+128+0x200)>>16) b=0xff00;
#define MMSFB_CONV_RGB24_TO_YV12_PUSHPTR
#define MMSFB_CONV_RGB24_TO_YV12_POPPTR
#define MMSFB_CONV_RGB24_TO_YV12_PIXEL(src, dst_y, dst_u, dst_v, d_u, d_v)
#define MMSFB_CONV_ARGB_TO_YV12_PUSHPTR
#define MMSFB_CONV_ARGB_TO_YV12_POPPTR
#define MMSFB_CONV_ARGB_TO_YV12_PIXEL(src, dst_y, dst_u, dst_v, d_u, d_v)
#define MMSFB_CONV_YV12_TO_RGB32_PIXEL(src_y, src_u, src_v, dst)
#define MMSFB_CONV_BLEND_ARGB_TO_YV12_PUSHPTR
#define MMSFB_CONV_BLEND_ARGB_TO_YV12_POPPTR
#define MMSFB_CONV_BLEND_ARGB_TO_YV12_PIXEL(src, dst_y, dst_u, dst_v, d_u, d_v)
#define MMSFB_CONV_YUY2_TO_YV12_PUSHPTR
#define MMSFB_CONV_YUY2_TO_YV12_POPPTR
#define MMSFB_CONV_YUY2_TO_YV12_PIXEL(src, dst_y, d_uv)
#define MMSFB_CONV_YUY2_TO_YV12_PIXEL_2(src, dst_y, d_uv)
#define MMSFB_CONV_BLEND_COLORALPHA_ARGB_TO_YV12_PIXEL(src, dst_y, dst_u, dst_v, d_u, d_v)
#define MMSFB_CONV_BLEND_AYUV_TO_YV12_PIXEL(src, dst_y, dst_u, dst_v, d_u, d_v)
#define MMSFB_CONV_BLEND_COLORALPHA_AYUV_TO_YV12_PIXEL(src, dst_y, dst_u, dst_v, d_u, d_v)
#define MMSFB_DRAWLINE_BRESENHAM(putpixel)
 bresenham algorithm
#define MMSFB_DRAWLINE_PUT_PIXEL
 put pixel macro will be used e.g. as parameter for the bresenham algorithm
#define MMSFBSURFACE_BLIT_TEXT_INIT(pw)
 used for text output
#define MMSFBSURFACE_BLIT_TEXT_LOAD_GLYPH(font, character)
 used for text output
#define MMSFBSURFACE_BLIT_TEXT_START_RENDER(pt)
 used for text output
#define MMSFBSURFACE_BLIT_TEXT_END_RENDER
 used for text output
#define MMSFB_ROTATE_180_REGION(SURFACE, X1, Y1, X2, Y2)
 calculate region if screen is rotated by 180°
#define MMSFB_ROTATE_180_RECT(SURFACE, X, Y, W, H)
 calculate rectangle if screen is rotated by 180°
#define MMSFB_ROTATE_180_RECT_WH(WIDTH, HEIGHT, X, Y, W, H)
 calculate rectangle if screen is rotated by 180°

Functions

void stretch_byte_buffer (bool h_antialiasing, bool v_antialiasing, unsigned char *src, int src_pitch, int src_pitch_pix, int src_height, int sw, int sh, unsigned char *dst, int dst_pitch, int dst_pitch_pix, int dst_height, int dw, int dh)
 Stretching the source byte buffer to a destination.
void compress_2x2_matrix (unsigned char *src, int src_pitch, int src_pitch_pix, int src_height, int sw, int sh, unsigned char *dst, int dst_pitch, int dst_pitch_pix, int dst_height, int dw, int dh)
 Compressing a 2x2 matrix (arithmetic mean), e.g. used for U/V components (YV12 pixel format).
void stretch_uint_buffer (bool h_antialiasing, bool v_antialiasing, unsigned int *src, int src_pitch, int src_pitch_pix, int src_height, int sx, int sy, int sw, int sh, unsigned int *dst, int dst_pitch, int dst_pitch_pix, int dst_height, int dx, int dy, int dw, int dh)
 Stretching the source unsigned int buffer to a destination.
void stretch_usint_buffer (bool h_antialiasing, bool v_antialiasing, unsigned short int *src, int src_pitch, int src_pitch_pix, int src_height, int sx, int sy, int sw, int sh, unsigned short int *dst, int dst_pitch, int dst_pitch_pix, int dst_height, int dx, int dy, int dw, int dh)
 Stretching the source unsigned short int buffer to a destination.
void stretch_324byte_buffer (bool h_antialiasing, bool v_antialiasing, unsigned char *src, int src_pitch, int src_pitch_pix, int src_height, int sx, int sy, int sw, int sh, unsigned int *dst, int dst_pitch, int dst_pitch_pix, int dst_height, int dx, int dy, int dw, int dh)
 Stretching the source 3-byte-buffer to a unsigned int destination.
void mmsfb_blit_uint (MMSFBSurfacePlanes *src_planes, int src_height, int sx, int sy, int sw, int sh, MMSFBSurfacePlanes *dst_planes, int dst_height, int dx, int dy)
 Blitting unsigned int (4 byte) source to unsigned int destination.
void mmsfb_blit_usint (MMSFBSurfacePlanes *src_planes, int src_height, int sx, int sy, int sw, int sh, MMSFBSurfacePlanes *dst_planes, int dst_height, int dx, int dy)
 Blitting unsigned short int (2 byte) source to unsigned short int destination.
void mmsfb_blit_argb_to_argb (MMSFBSurfacePlanes *src_planes, int src_height, int sx, int sy, int sw, int sh, MMSFBSurfacePlanes *dst_planes, int dst_height, int dx, int dy)
 Blit ARGB to ARGB.
void mmsfb_blit_rgb32_to_argb (MMSFBSurfacePlanes *src_planes, int src_height, int sx, int sy, int sw, int sh, MMSFBSurfacePlanes *dst_planes, int dst_height, int dx, int dy)
 Blit RGB32 to ARGB.
void mmsfb_blit_airgb_to_argb (MMSFBExternalSurfaceBuffer *extbuf, int src_height, int sx, int sy, int sw, int sh, unsigned int *dst, int dst_pitch, int dst_height, int dx, int dy)
 Blit AiRGB to ARGB.
void mmsfb_blit_blend_argb_to_argb (MMSFBSurfacePlanes *src_planes, int src_height, int sx, int sy, int sw, int sh, MMSFBSurfacePlanes *dst_planes, int dst_height, int dx, int dy)
 Blit with alpha blending ARGB to ARGB.
void mmsfb_blit_blend_airgb_to_argb (MMSFBExternalSurfaceBuffer *extbuf, int src_height, int sx, int sy, int sw, int sh, unsigned int *dst, int dst_pitch, int dst_height, int dx, int dy)
 Blit with alpha blending AiRGB to ARGB.
void mmsfb_blit_blend_coloralpha_argb_to_argb (MMSFBSurfacePlanes *src_planes, int src_height, int sx, int sy, int sw, int sh, MMSFBSurfacePlanes *dst_planes, int dst_height, int dx, int dy, unsigned char alpha)
 Blit with alpha blending with alpha from color ARGB to ARGB.
void mmsfb_blit_rgb16_to_argb (MMSFBSurfacePlanes *src_planes, int src_height, int sx, int sy, int sw, int sh, MMSFBSurfacePlanes *dst_planes, int dst_height, int dx, int dy)
 Blit RGB16 to ARGB.
void mmsfb_blit_rgb24_to_argb (MMSFBSurfacePlanes *src_planes, int src_height, int sx, int sy, int sw, int sh, MMSFBSurfacePlanes *dst_planes, int dst_height, int dx, int dy)
 Blit RGB24 to ARGB.
void mmsfb_blit_rgb32_to_rgb32 (MMSFBSurfacePlanes *src_planes, int src_height, int sx, int sy, int sw, int sh, MMSFBSurfacePlanes *dst_planes, int dst_height, int dx, int dy)
 Blit RGB32 to RGB32.
void mmsfb_blit_argb_to_rgb32 (MMSFBSurfacePlanes *src_planes, int src_height, int sx, int sy, int sw, int sh, MMSFBSurfacePlanes *dst_planes, int dst_height, int dx, int dy)
 Blit ARGB to RGB32.
void mmsfb_blit_blend_argb_to_rgb32 (MMSFBSurfacePlanes *src_planes, int src_height, int sx, int sy, int sw, int sh, MMSFBSurfacePlanes *dst_planes, int dst_height, int dx, int dy)
 Blit with alpha blending ARGB to RGB32.
void mmsfb_blit_blend_coloralpha_argb_to_rgb32 (MMSFBSurfacePlanes *src_planes, int src_height, int sx, int sy, int sw, int sh, MMSFBSurfacePlanes *dst_planes, int dst_height, int dx, int dy, unsigned char alpha)
 Blit with alpha blending with alpha from color ARGB to RGB32.
void mmsfb_blit_coloralpha_argb_to_rgb32 (MMSFBSurfacePlanes *src_planes, int src_height, int sx, int sy, int sw, int sh, MMSFBSurfacePlanes *dst_planes, int dst_height, int dx, int dy, unsigned char alpha)
 Blit with alpha blending with alpha from color ARGB to RGB32, ignoring alpha channel from source.
void mmsfb_blit_coloralpha_rgb32_to_rgb32 (MMSFBSurfacePlanes *src_planes, int src_height, int sx, int sy, int sw, int sh, MMSFBSurfacePlanes *dst_planes, int dst_height, int dx, int dy, unsigned char alpha)
 Blit with alpha from color RGB32 to RGB32.
void mmsfb_blit_rgb16_to_rgb32 (MMSFBSurfacePlanes *src_planes, int src_height, int sx, int sy, int sw, int sh, MMSFBSurfacePlanes *dst_planes, int dst_height, int dx, int dy)
 Blit RGB16 to RGB32.
void mmsfb_blit_rgb24_to_rgb32 (MMSFBSurfacePlanes *src_planes, int src_height, int sx, int sy, int sw, int sh, MMSFBSurfacePlanes *dst_planes, int dst_height, int dx, int dy)
 Blit RGB24 to RGB32.
void mmsfb_blit_yv12_to_rgb32 (MMSFBExternalSurfaceBuffer *extbuf, int src_height, int sx, int sy, int sw, int sh, unsigned int *dst, int dst_pitch, int dst_height, int dx, int dy)
 Blit YV12 to RGB32.
void mmsfb_blit_blend_argb4444_to_rgb32 (MMSFBSurfacePlanes *src_planes, int src_height, int sx, int sy, int sw, int sh, MMSFBSurfacePlanes *dst_planes, int dst_height, int dx, int dy)
 Blit with alpha blending ARGB4444 to RGB32.
void mmsfb_blit_blend_coloralpha_argb4444_to_rgb32 (MMSFBSurfacePlanes *src_planes, int src_height, int sx, int sy, int sw, int sh, MMSFBSurfacePlanes *dst_planes, int dst_height, int dx, int dy, unsigned char alpha)
 Blit with alpha blending with alpha from color ARGB4444 to RGB32.
void mmsfb_blit_airgb_to_airgb (MMSFBSurfacePlanes *src_planes, int src_height, int sx, int sy, int sw, int sh, MMSFBSurfacePlanes *dst_planes, int dst_height, int dx, int dy)
 Blit AiRGB to AiRGB.
void mmsfb_blit_blend_airgb_to_airgb (MMSFBExternalSurfaceBuffer *extbuf, int src_height, int sx, int sy, int sw, int sh, unsigned int *dst, int dst_pitch, int dst_height, int dx, int dy)
 Blit with alpha blending AiRGB to AiRGB.
void mmsfb_blit_blend_coloralpha_airgb_to_airgb (MMSFBExternalSurfaceBuffer *extbuf, int src_height, int sx, int sy, int sw, int sh, unsigned int *dst, int dst_pitch, int dst_height, int dx, int dy, unsigned char alpha)
 Blit with alpha blending with alpha from color AiRGB to AiRGB.
void mmsfb_blit_blend_argb_to_airgb (MMSFBExternalSurfaceBuffer *extbuf, int src_height, int sx, int sy, int sw, int sh, unsigned int *dst, int dst_pitch, int dst_height, int dx, int dy)
 Blit with alpha blending ARGB to AiRGB.
void mmsfb_blit_rgb24_to_rgb24 (MMSFBSurfacePlanes *src_planes, int src_height, int sx, int sy, int sw, int sh, MMSFBSurfacePlanes *dst_planes, int dst_height, int dx, int dy)
 Blit RGB24 to RGB24.
void mmsfb_blit_blend_argb_to_rgb24 (MMSFBSurfacePlanes *src_planes, int src_height, int sx, int sy, int sw, int sh, MMSFBSurfacePlanes *dst_planes, int dst_height, int dx, int dy)
 Blit with alpha blending ARGB to RGB24.
void mmsfb_blit_argb_to_rgb24 (MMSFBSurfacePlanes *src_planes, int src_height, int sx, int sy, int sw, int sh, MMSFBSurfacePlanes *dst_planes, int dst_height, int dx, int dy)
 Blit with alpha blending ARGB to RGB24.
void mmsfb_blit_bgr24_to_bgr24 (MMSFBSurfacePlanes *src_planes, int src_height, int sx, int sy, int sw, int sh, MMSFBSurfacePlanes *dst_planes, int dst_height, int dx, int dy)
 Blit BGR24 to BGR24.
void mmsfb_blit_blend_argb_to_bgr24 (MMSFBSurfacePlanes *src_planes, int src_height, int sx, int sy, int sw, int sh, MMSFBSurfacePlanes *dst_planes, int dst_height, int dx, int dy)
 Blit with alpha blending ARGB to BGR24.
void mmsfb_blit_blend_coloralpha_argb_to_bgr24 (MMSFBSurfacePlanes *src_planes, int src_height, int sx, int sy, int sw, int sh, MMSFBSurfacePlanes *dst_planes, int dst_height, int dx, int dy, unsigned char alpha)
 Blit with alpha blending with alpha from color ARGB to BGR24.
void mmsfb_blit_coloralpha_bgr24_to_bgr24 (MMSFBSurfacePlanes *src_planes, int src_height, int sx, int sy, int sw, int sh, MMSFBSurfacePlanes *dst_planes, int dst_height, int dx, int dy, unsigned char alpha)
 Blit with alpha from color BGR24 to BGR24.
void mmsfb_blit_rgb16_to_rgb16 (MMSFBSurfacePlanes *src_planes, int src_height, int sx, int sy, int sw, int sh, MMSFBSurfacePlanes *dst_planes, int dst_height, int dx, int dy)
 Blit RGB16 to RGB16.
void mmsfb_blit_argb_to_rgb16 (MMSFBExternalSurfaceBuffer *extbuf, int src_height, int sx, int sy, int sw, int sh, unsigned short int *dst, int dst_pitch, int dst_height, int dx, int dy)
 Blit ARGB to RGB16.
void mmsfb_blit_blend_argb_to_rgb16 (MMSFBSurfacePlanes *src_planes, int src_height, int sx, int sy, int sw, int sh, MMSFBSurfacePlanes *dst_planes, int dst_height, int dx, int dy)
 Blit with alpha blending ARGB to RGB16.
void mmsfb_blit_airgb_to_rgb16 (MMSFBExternalSurfaceBuffer *extbuf, int src_height, int sx, int sy, int sw, int sh, unsigned short int *dst, int dst_pitch, int dst_height, int dx, int dy)
 Blit AiRGB to RGB16.
void mmsfb_blit_blend_airgb_to_rgb16 (MMSFBExternalSurfaceBuffer *extbuf, int src_height, int sx, int sy, int sw, int sh, unsigned short int *dst, int dst_pitch, int dst_height, int dx, int dy)
 Blit with alpha blending AiRGB to RGB16.
void mmsfb_blit_ayuv_to_rgb16 (MMSFBExternalSurfaceBuffer *extbuf, int src_height, int sx, int sy, int sw, int sh, unsigned short int *dst, int dst_pitch, int dst_height, int dx, int dy)
 Blit AYUV to RGB16.
void mmsfb_blit_blend_ayuv_to_rgb16 (MMSFBExternalSurfaceBuffer *extbuf, int src_height, int sx, int sy, int sw, int sh, unsigned short int *dst, int dst_pitch, int dst_height, int dx, int dy)
 Blit with alpha blending AYUV to RGB16.
void mmsfb_blit_ayuv_to_ayuv (MMSFBSurfacePlanes *src_planes, int src_height, int sx, int sy, int sw, int sh, MMSFBSurfacePlanes *dst_planes, int dst_height, int dx, int dy)
 Blit AYUV to AYUV.
void mmsfb_blit_blend_ayuv_to_ayuv (MMSFBExternalSurfaceBuffer *extbuf, int src_height, int sx, int sy, int sw, int sh, unsigned int *dst, int dst_pitch, int dst_height, int dx, int dy)
 Blit with alpha blending AYUV to AYUV.
void mmsfb_blit_blend_coloralpha_ayuv_to_ayuv (MMSFBExternalSurfaceBuffer *extbuf, int src_height, int sx, int sy, int sw, int sh, unsigned int *dst, int dst_pitch, int dst_height, int dx, int dy, unsigned char alpha)
 Blit with alpha blending with alpha from color AYUV to AYUV.
void mmsfb_blit_yv12_to_yv12 (MMSFBSurfacePlanes *extbuf, int src_height, int sx, int sy, int sw, int sh, MMSFBSurfacePlanes *dst_planes, int dst_height, int dx, int dy)
 Blit YV12 to YV12.
void mmsfb_blit_i420_to_yv12 (MMSFBSurfacePlanes *src_planes, int src_height, int sx, int sy, int sw, int sh, MMSFBSurfacePlanes *dst_planes, int dst_height, int dx, int dy)
 Blit I420 to YV12.
void mmsfb_blit_yuy2_to_yv12 (MMSFBSurfacePlanes *src_planes, int src_height, int sx, int sy, int sw, int sh, MMSFBSurfacePlanes *dst_planes, int dst_height, int dx, int dy)
 Blit YUY2 to YV12.
void mmsfb_blit_rgb24_to_yv12 (MMSFBExternalSurfaceBuffer *extbuf, int src_height, int sx, int sy, int sw, int sh, unsigned char *dst, int dst_pitch, int dst_height, int dx, int dy)
 Blit RGB24 to YV12.
void mmsfb_blit_argb_to_yv12 (MMSFBExternalSurfaceBuffer *extbuf, int src_height, int sx, int sy, int sw, int sh, unsigned char *dst, int dst_pitch, int dst_height, int dx, int dy)
 Blit ARGB to YV12.
void mmsfb_blit_blend_argb_to_yv12 (MMSFBExternalSurfaceBuffer *extbuf, int src_height, int sx, int sy, int sw, int sh, unsigned char *dst, int dst_pitch, int dst_height, int dx, int dy)
 Blit with alpha blending ARGB to YV12.
void mmsfb_blit_blend_coloralpha_argb_to_yv12 (MMSFBExternalSurfaceBuffer *extbuf, int src_height, int sx, int sy, int sw, int sh, unsigned char *dst, int dst_pitch, int dst_height, int dx, int dy, unsigned char alpha)
 Blit with alpha blending with alpha from color ARGB to YV12.
void mmsfb_blit_blend_ayuv_to_yv12 (MMSFBExternalSurfaceBuffer *extbuf, int src_height, int sx, int sy, int sw, int sh, unsigned char *dst, int dst_pitch, int dst_height, int dx, int dy)
 Blit with alpha blending AYUV to YV12.
void mmsfb_blit_blend_coloralpha_ayuv_to_yv12 (MMSFBExternalSurfaceBuffer *extbuf, int src_height, int sx, int sy, int sw, int sh, unsigned char *dst, int dst_pitch, int dst_height, int dx, int dy, unsigned char alpha)
 Blit with alpha blending with alpha from color AYUV to YV12.
void mmsfb_blit_i420_to_i420 (MMSFBSurfacePlanes *src_planes, int src_height, int sx, int sy, int sw, int sh, MMSFBSurfacePlanes *dst_planes, int dst_height, int dx, int dy)
 Blit I420 to I420.
void mmsfb_blit_yuy2_to_yuy2 (MMSFBSurfacePlanes *src_planes, int src_height, int sx, int sy, int sw, int sh, MMSFBSurfacePlanes *dst_planes, int dst_height, int dx, int dy)
 Blit YUY2 to YUY2.
void mmsfb_blit_argb3565_to_argb3565 (MMSFBSurfacePlanes *src_planes, int src_height, int sx, int sy, int sw, int sh, MMSFBSurfacePlanes *dst_planes, int dst_height, int dx, int dy)
 Blit ARGB3565 to ARGB3565.
void mmsfb_blit_argb_to_argb3565 (MMSFBSurfacePlanes *src_planes, int src_height, int sx, int sy, int sw, int sh, MMSFBSurfacePlanes *dst_planes, int dst_height, int dx, int dy)
 Blit ARGB to ARGB3565.
void mmsfb_blit_blend_argb_to_argb3565 (MMSFBSurfacePlanes *src_planes, int src_height, int sx, int sy, int sw, int sh, MMSFBSurfacePlanes *dst_planes, int dst_height, int dx, int dy)
 Blit with alpha blending ARGB to ARGB3565.
void mmsfb_blit_argb4444_to_argb4444 (MMSFBSurfacePlanes *src_planes, int src_height, int sx, int sy, int sw, int sh, MMSFBSurfacePlanes *dst_planes, int dst_height, int dx, int dy)
 Blit ARGB4444 to ARGB4444.
void mmsfb_blit_blend_argb4444_to_argb4444 (MMSFBSurfacePlanes *src_planes, int src_height, int sx, int sy, int sw, int sh, MMSFBSurfacePlanes *dst_planes, int dst_height, int dx, int dy)
 Blit with alpha blending ARGB4444 to ARGB4444.
void mmsfb_blit_blend_coloralpha_argb4444_to_argb4444 (MMSFBSurfacePlanes *src_planes, int src_height, int sx, int sy, int sw, int sh, MMSFBSurfacePlanes *dst_planes, int dst_height, int dx, int dy, unsigned char alpha)
 Blit with alpha blending with alpha from color ARGB4444 to ARGB4444.
void mmsfb_blit_bgr555_to_bgr555 (MMSFBSurfacePlanes *src_planes, int src_height, int sx, int sy, int sw, int sh, MMSFBSurfacePlanes *dst_planes, int dst_height, int dx, int dy)
 Blit BGR555 to BGR555.
void mmsfb_blit_blend_argb_to_bgr555 (MMSFBSurfacePlanes *src_planes, int src_height, int sx, int sy, int sw, int sh, MMSFBSurfacePlanes *dst_planes, int dst_height, int dx, int dy)
 Blit with alpha blending ARGB to BGR555.
void mmsfb_stretchblit_argb_to_argb (MMSFBSurfacePlanes *src_planes, int src_height, int sx, int sy, int sw, int sh, MMSFBSurfacePlanes *dst_planes, int dst_height, int dx, int dy, int dw, int dh, bool antialiasing)
 Stretch blit ARGB to ARGB.
void mmsfb_stretchblit_blend_argb_to_argb (MMSFBSurfacePlanes *src_planes, int src_height, int sx, int sy, int sw, int sh, MMSFBSurfacePlanes *dst_planes, int dst_height, int dx, int dy, int dw, int dh)
 Stretch blit with alpha blending ARGB to ARGB.
void mmsfb_stretchblit_blend_coloralpha_argb_to_argb (MMSFBSurfacePlanes *src_planes, int src_height, int sx, int sy, int sw, int sh, MMSFBSurfacePlanes *dst_planes, int dst_height, int dx, int dy, int dw, int dh, unsigned char alpha)
 Stretch blit with alpha blending with alpha from color ARGB to ARGB.
void mmsfb_stretchblit_rgb24_to_argb (MMSFBExternalSurfaceBuffer *extbuf, int src_height, int sx, int sy, int sw, int sh, unsigned int *dst, int dst_pitch, int dst_height, int dx, int dy, int dw, int dh, bool antialiasing)
 Stretch blit RGB24 to ARGB.
void mmsfb_stretchblit_blend_argb_to_rgb32 (MMSFBSurfacePlanes *src_planes, int src_height, int sx, int sy, int sw, int sh, MMSFBSurfacePlanes *dst_planes, int dst_height, int dx, int dy, int dw, int dh)
 Stretch blit with alpha blending ARGB to RGB32.
void mmsfb_stretchblit_rgb32_to_rgb32 (MMSFBSurfacePlanes *src_planes, int src_height, int sx, int sy, int sw, int sh, MMSFBSurfacePlanes *dst_planes, int dst_height, int dx, int dy, int dw, int dh, bool antialiasing)
 Stretch blit RGB32 to RGB32.
void mmsfb_stretchblit_rgb24_to_rgb32 (MMSFBExternalSurfaceBuffer *extbuf, int src_height, int sx, int sy, int sw, int sh, unsigned int *dst, int dst_pitch, int dst_height, int dx, int dy, int dw, int dh, bool antialiasing)
 Stretch blit RGB24 to RGB32.
void mmsfb_stretchblit_airgb_to_airgb (MMSFBSurfacePlanes *src_planes, int src_height, int sx, int sy, int sw, int sh, MMSFBSurfacePlanes *dst_planes, int dst_height, int dx, int dy, int dw, int dh, bool antialiasing)
 Stretch blit AiRGB to AiRGB.
void mmsfb_stretchblit_blend_airgb_to_airgb (MMSFBExternalSurfaceBuffer *extbuf, int src_height, int sx, int sy, int sw, int sh, unsigned int *dst, int dst_pitch, int dst_height, int dx, int dy, int dw, int dh)
 Stretch blit with alpha blending AiRGB to AiRGB.
void mmsfb_stretchblit_blend_coloralpha_airgb_to_airgb (MMSFBExternalSurfaceBuffer *extbuf, int src_height, int sx, int sy, int sw, int sh, unsigned int *dst, int dst_pitch, int dst_height, int dx, int dy, int dw, int dh, unsigned char alpha)
 Stretch blit with alpha blending with alpha from color AiRGB to AiRGB.
void mmsfb_stretchblit_ayuv_to_ayuv (MMSFBSurfacePlanes *src_planes, int src_height, int sx, int sy, int sw, int sh, MMSFBSurfacePlanes *dst_planes, int dst_height, int dx, int dy, int dw, int dh, bool antialiasing)
 Stretch blit AYUV to AYUV.
void mmsfb_stretchblit_blend_ayuv_to_ayuv (MMSFBExternalSurfaceBuffer *extbuf, int src_height, int sx, int sy, int sw, int sh, unsigned int *dst, int dst_pitch, int dst_height, int dx, int dy, int dw, int dh)
 Stretch blit with alpha blending AYUV to AYUV.
void mmsfb_stretchblit_blend_coloralpha_ayuv_to_ayuv (MMSFBExternalSurfaceBuffer *extbuf, int src_height, int sx, int sy, int sw, int sh, unsigned int *dst, int dst_pitch, int dst_height, int dx, int dy, int dw, int dh, unsigned char alpha)
 Stretch blit with alpha blending with alpha from color AYUV to AYUV.
void mmsfb_stretchblit_yv12_to_yv12 (MMSFBSurfacePlanes *src_planes, int src_height, int sx, int sy, int sw, int sh, MMSFBSurfacePlanes *dst_planes, int dst_height, int dx, int dy, int dw, int dh, bool antialiasing)
 Stretch blit YV12 to YV12 with antialiasing.
void mmsfb_stretchblit_i420_to_yv12 (MMSFBSurfacePlanes *src_planes, int src_height, int sx, int sy, int sw, int sh, MMSFBSurfacePlanes *dst_planes, int dst_height, int dx, int dy, int dw, int dh, bool antialiasing)
 Stretch blit I420 to YV12 with antialiasing.
void mmsfb_stretchblit_yuy2_to_yv12 (MMSFBSurfacePlanes *src_planes, int src_height, int sx, int sy, int sw, int sh, MMSFBSurfacePlanes *dst_planes, int dst_height, int dx, int dy, int dw, int dh, bool antialiasing)
 Stretch blit YUY2 to YV12 with antialiasing.
void mmsfb_stretchblit_blend_argb4444_to_argb4444 (MMSFBSurfacePlanes *src_planes, int src_height, int sx, int sy, int sw, int sh, MMSFBSurfacePlanes *dst_planes, int dst_height, int dx, int dy, int dw, int dh)
 Stretch blit with alpha blending ARGB4444 to ARGB4444.
void mmsfb_stretchblit_blend_coloralpha_argb4444_to_argb4444 (MMSFBSurfacePlanes *src_planes, int src_height, int sx, int sy, int sw, int sh, MMSFBSurfacePlanes *dst_planes, int dst_height, int dx, int dy, int dw, int dh, unsigned char alpha)
 Stretch blit with alpha blending with alpha from color ARGB4444 to ARGB4444.
void mmsfb_stretchblit_rgb16_to_rgb16 (MMSFBSurfacePlanes *src_planes, int src_height, int sx, int sy, int sw, int sh, MMSFBSurfacePlanes *dst_planes, int dst_height, int dx, int dy, int dw, int dh, bool antialiasing)
 Stretch blit RGB16 to RGB16.
void mmsfb_fillrectangle_argb (MMSFBSurfacePlanes *dst_planes, int dst_height, int dx, int dy, int dw, int dh, MMSFBColor color)
 Fill rectangle ARGB.
void mmsfb_fillrectangle_blend_argb (MMSFBSurfacePlanes *dst_planes, int dst_height, int dx, int dy, int dw, int dh, MMSFBColor color)
 Fill rectangle with alpha blending ARGB.
void mmsfb_fillrectangle_rgb32 (MMSFBSurfacePlanes *dst_planes, int dst_height, int dx, int dy, int dw, int dh, MMSFBColor color)
 Fill rectangle RGB32.
void mmsfb_fillrectangle_rgb24 (MMSFBSurfacePlanes *dst_planes, int dst_height, int dx, int dy, int dw, int dh, MMSFBColor color)
 Fill rectangle RGB24.
void mmsfb_fillrectangle_rgb16 (MMSFBSurfacePlanes *dst_planes, int dst_height, int dx, int dy, int dw, int dh, MMSFBColor color)
 Fill rectangle RGB16.
void mmsfb_fillrectangle_blend_rgb16 (MMSFBSurfacePlanes *dst_planes, int dst_height, int dx, int dy, int dw, int dh, MMSFBColor color)
 Fill rectangle with alpha blending RGB16.
void mmsfb_fillrectangle_ayuv (MMSFBSurfacePlanes *dst_planes, int dst_height, int dx, int dy, int dw, int dh, MMSFBColor color)
 Fill rectangle AYUV.
void mmsfb_fillrectangle_blend_ayuv (MMSFBSurfacePlanes *dst_planes, int dst_height, int dx, int dy, int dw, int dh, MMSFBColor color)
 Fill rectangle with alpha blending AYUV.
void mmsfb_fillrectangle_yv12 (MMSFBSurfacePlanes *dst_planes, int dst_height, int dx, int dy, int dw, int dh, MMSFBColor color)
 Fill rectangle YV12.
void mmsfb_fillrectangle_i420 (MMSFBSurfacePlanes *dst_planes, int dst_height, int dx, int dy, int dw, int dh, MMSFBColor color)
 Fill rectangle I420.
void mmsfb_fillrectangle_yuy2 (MMSFBSurfacePlanes *dst_planes, int dst_height, int dx, int dy, int dw, int dh, MMSFBColor color)
 Fill rectangle YUY2.
void mmsfb_fillrectangle_argb3565 (MMSFBSurfacePlanes *dst_planes, int dst_height, int dx, int dy, int dw, int dh, MMSFBColor color)
 Fill rectangle ARGB3565.
void mmsfb_fillrectangle_argb4444 (MMSFBSurfacePlanes *dst_planes, int dst_height, int dx, int dy, int dw, int dh, MMSFBColor color)
 Fill rectangle ARGB3565.
void mmsfb_fillrectangle_blend_argb4444 (MMSFBSurfacePlanes *dst_planes, int dst_height, int dx, int dy, int dw, int dh, MMSFBColor color)
 Fill rectangle with alpha blending ARGB4444.
void mmsfb_fillrectangle_bgr24 (MMSFBSurfacePlanes *dst_planes, int dst_height, int dx, int dy, int dw, int dh, MMSFBColor color)
 Fill rectangle BGR24.
void mmsfb_fillrectangle_bgr555 (MMSFBSurfacePlanes *dst_planes, int dst_height, int dx, int dy, int dw, int dh, MMSFBColor color)
 Fill rectangle BGR555.
void mmsfb_drawline_argb (MMSFBSurfacePlanes *dst_planes, int dst_height, MMSFBRegion &clipreg, int x1, int y1, int x2, int y2, MMSFBColor &color)
 Draw line ARGB.
void mmsfb_drawline_blend_argb (MMSFBSurfacePlanes *dst_planes, int dst_height, MMSFBRegion &clipreg, int x1, int y1, int x2, int y2, MMSFBColor &color)
 Draw line with alpha blending ARGB.
void mmsfb_drawline_argb4444 (MMSFBSurfacePlanes *dst_planes, int dst_height, MMSFBRegion &clipreg, int x1, int y1, int x2, int y2, MMSFBColor &color)
 Draw line ARGB4444.
void mmsfb_drawstring_blend_argb (MMSFBSurfacePlanes *dst_planes, MMSFBFont *font, MMSFBRegion &clipreg, string &text, int len, int x, int y, MMSFBColor &color)
 Draw string with alpha blending ARGB.
void mmsfb_drawstring_blend_coloralpha_argb (MMSFBSurfacePlanes *dst_planes, MMSFBFont *font, MMSFBRegion &clipreg, string &text, int len, int x, int y, MMSFBColor &color)
 Draw string with alpha blending with alpha from color ARGB.
void mmsfb_drawstring_blend_rgb32 (MMSFBSurfacePlanes *dst_planes, MMSFBFont *font, MMSFBRegion &clipreg, string &text, int len, int x, int y, MMSFBColor &color)
 Draw string with alpha blending RGB32.
void mmsfb_drawstring_blend_coloralpha_rgb32 (MMSFBSurfacePlanes *dst_planes, MMSFBFont *font, MMSFBRegion &clipreg, string &text, int len, int x, int y, MMSFBColor &color)
 Draw string with alpha blending with alpha from color RGB32.
void mmsfb_drawstring_blend_argb4444 (MMSFBSurfacePlanes *dst_planes, MMSFBFont *font, MMSFBRegion &clipreg, string &text, int len, int x, int y, MMSFBColor &color)
 Draw string with alpha blending ARGB4444.
void mmsfb_drawstring_blend_rgb16 (MMSFBSurfacePlanes *dst_planes, MMSFBFont *font, MMSFBRegion &clipreg, string &text, int len, int x, int y, MMSFBColor &color)
 Draw string with alpha blending RGB16.
void mmsfb_drawstring_blend_coloralpha_rgb16 (MMSFBSurfacePlanes *dst_planes, MMSFBFont *font, MMSFBRegion &clipreg, string &text, int len, int x, int y, MMSFBColor &color)
 Draw string with alpha blending with alpha from color RGB16.

Define Documentation

#define MMSFB_CONV_ARGB_TO_YV12_PIXEL ( src,
dst_y,
dst_u,
dst_v,
d_u,
d_v   ) 

Definition at line 186 of file mmsfbconv.h.

#define MMSFB_CONV_ARGB_TO_YV12_POPPTR

Value:

src   = saved_src;   \
    dst_y = saved_dst_y; \
    dst_u = saved_dst_u; \
    dst_v = saved_dst_v;

Definition at line 180 of file mmsfbconv.h.

#define MMSFB_CONV_ARGB_TO_YV12_PUSHPTR

Value:

unsigned int  *saved_src   = src;   \
    unsigned char *saved_dst_y = dst_y; \
    unsigned char *saved_dst_u = dst_u; \
    unsigned char *saved_dst_v = dst_v;

Definition at line 174 of file mmsfbconv.h.

#define MMSFB_CONV_BLEND_ARGB_TO_YV12_PIXEL ( src,
dst_y,
dst_u,
dst_v,
d_u,
d_v   ) 

Definition at line 258 of file mmsfbconv.h.

#define MMSFB_CONV_BLEND_ARGB_TO_YV12_POPPTR

Value:

src   = saved_src;   \
    dst_y = saved_dst_y; \
    dst_u = saved_dst_u; \
    dst_v = saved_dst_v;

Definition at line 250 of file mmsfbconv.h.

#define MMSFB_CONV_BLEND_ARGB_TO_YV12_PUSHPTR

Value:

unsigned int  *saved_src   = src;   \
    unsigned char *saved_dst_y = dst_y; \
    unsigned char *saved_dst_u = dst_u; \
    unsigned char *saved_dst_v = dst_v;

Definition at line 244 of file mmsfbconv.h.

#define MMSFB_CONV_BLEND_AYUV_TO_YV12_PIXEL ( src,
dst_y,
dst_u,
dst_v,
d_u,
d_v   ) 

Definition at line 869 of file mmsfbconv.h.

#define MMSFB_CONV_BLEND_COLORALPHA_ARGB_TO_YV12_PIXEL ( src,
dst_y,
dst_u,
dst_v,
d_u,
d_v   ) 

Definition at line 827 of file mmsfbconv.h.

#define MMSFB_CONV_BLEND_COLORALPHA_AYUV_TO_YV12_PIXEL ( src,
dst_y,
dst_u,
dst_v,
d_u,
d_v   ) 

Definition at line 913 of file mmsfbconv.h.

#define MMSFB_CONV_PREPARE_YUV2RGB ( y,
u,
 )     y=(int)y-16;u=(int)u-128;v=(int)v-128;

Definition at line 136 of file mmsfbconv.h.

#define MMSFB_CONV_PREPARE_YUVBLEND ( y,
u,
 )     y=(int)y-16;u=(int)u-128;v=(int)v-128;

Definition at line 137 of file mmsfbconv.h.

#define MMSFB_CONV_RESET_YUVBLEND ( y,
u,
 )     y=(int)y+16;u=(int)u+128;v=(int)v+128;

Definition at line 138 of file mmsfbconv.h.

#define MMSFB_CONV_RGB24_TO_YV12_PIXEL ( src,
dst_y,
dst_u,
dst_v,
d_u,
d_v   ) 

Value:

{   register int r = *(src);                \
        register int g = *(src+1);              \
        register int b = *(src+2);              \
        dst_y = MMSFB_CONV_RGB2Y(r,g,b);        \
        d_u     MMSFB_CONV_RGB2U(r,g,b);        \
        d_v     MMSFB_CONV_RGB2V(r,g,b); }

Definition at line 164 of file mmsfbconv.h.

#define MMSFB_CONV_RGB24_TO_YV12_POPPTR

Value:

src   = saved_src;   \
    dst_y = saved_dst_y; \
    dst_u = saved_dst_u; \
    dst_v = saved_dst_v;

Definition at line 158 of file mmsfbconv.h.

#define MMSFB_CONV_RGB24_TO_YV12_PUSHPTR

Value:

unsigned char *saved_src   = src;   \
    unsigned char *saved_dst_y = dst_y; \
    unsigned char *saved_dst_u = dst_u; \
    unsigned char *saved_dst_v = dst_v;

Definition at line 152 of file mmsfbconv.h.

#define MMSFB_CONV_RGB2U ( r,
g,
 )     (((-38*r-74*g+112*b+128)>>8)+128)

Definition at line 133 of file mmsfbconv.h.

#define MMSFB_CONV_RGB2V ( r,
g,
 )     (((112*r-94*g-18*b+128)>>8)+128)

Definition at line 134 of file mmsfbconv.h.

#define MMSFB_CONV_RGB2Y ( r,
g,
 )     (((66*r+129*g+25*b+128)>>8)+16)

Definition at line 132 of file mmsfbconv.h.

#define MMSFB_CONV_YUV2B ( y,
u,
v,
 )     if ((b=(298*(int)y+516*(int)u+128+0x200)>>8)<0)b=0;else if(b>0xff)b=0xff;

Definition at line 145 of file mmsfbconv.h.

#define MMSFB_CONV_YUV2BX ( y,
u,
v,
 )     if ((b=298*(int)y+516*(int)u+128+0x200)>>16) b=0xff00;

Definition at line 149 of file mmsfbconv.h.

#define MMSFB_CONV_YUV2G ( y,
u,
v,
 )     if ((g=(298*(int)y-100*(int)u-208*(int)v+128+0x200)>>8)<0)g=0;else if(g>0xff)g=0xff;

Definition at line 144 of file mmsfbconv.h.

#define MMSFB_CONV_YUV2GX ( y,
u,
v,
 )     if ((g=298*(int)y-100*(int)u-208*(int)v+128+0x200)>>16) g=0xff00;

Definition at line 148 of file mmsfbconv.h.

#define MMSFB_CONV_YUV2R ( y,
u,
v,
 )     if ((r=(298*(int)y+409*(int)v+128+0x200)>>8)<0)r=0;else if(r>0xff)r=0xff;

Definition at line 143 of file mmsfbconv.h.

#define MMSFB_CONV_YUV2RX ( y,
u,
v,
 )     if ((r=298*(int)y+409*(int)v+128+0x200)>>16) r=0xff00;

Definition at line 147 of file mmsfbconv.h.

#define MMSFB_CONV_YUY2_TO_YV12_PIXEL ( src,
dst_y,
d_uv   ) 

Value:

SRC = src;                                          \
    dst_y = SRC >> 8;                                   \
    d_uv    SRC & 0xff;

Definition at line 329 of file mmsfbconv.h.

#define MMSFB_CONV_YUY2_TO_YV12_PIXEL_2 ( src,
dst_y,
d_uv   ) 

Value:

SRC = src;                                            \
    dst_y = SRC >> 8;                                     \
    d_uv    (SRC & 0xff) << 1;

Definition at line 334 of file mmsfbconv.h.

#define MMSFB_CONV_YUY2_TO_YV12_POPPTR

Value:

src   = saved_src;   \
    dst_y = saved_dst_y; \
    dst_u = saved_dst_u; \
    dst_v = saved_dst_v;

Definition at line 320 of file mmsfbconv.h.

#define MMSFB_CONV_YUY2_TO_YV12_PUSHPTR

Value:

unsigned short int *saved_src = src; \
    unsigned char *saved_dst_y = dst_y;  \
    unsigned char *saved_dst_u = dst_u;  \
    unsigned char *saved_dst_v = dst_v;

Definition at line 314 of file mmsfbconv.h.

#define MMSFB_CONV_YV12_TO_RGB32_PIXEL ( src_y,
src_u,
src_v,
dst   ) 

Value:

{ int y, u, v, r, g, b;                                     \
    y = src_y; u = src_u; v = src_v;                            \
    MMSFB_CONV_PREPARE_YUV2RGB(y,u,v);                          \
    MMSFB_CONV_YUV2R(y, u, v, r);                               \
    MMSFB_CONV_YUV2G(y, u, v, g);                               \
    MMSFB_CONV_YUV2B(y, u, v, b);                               \
    dst = 0xff000000 | (r << 16) | (g << 8) | b; }

Definition at line 233 of file mmsfbconv.h.

#define MMSFB_DRAWLINE_BRESENHAM ( putpixel   ) 

Value:

{ \
    int x = x1; int y = y1; \
    int dx = x2 - x1; int dy = y2 - y1; \
    int ix = (dx > 0) ? 1 : (dx < 0) ? -1 : 0; int iy = (dy > 0) ? 1 : (dy < 0) ? -1 : 0; \
    if (!dx && !dy) { putpixel; } else { \
    if (dx < 0) dx = -dx; if (dy < 0) dy = -dy; \
    int pdx, pdy, ddx, ddy, es, el; \
    if (dx > dy) { pdx=ix; pdy=0; ddx=ix; ddy=iy; es=dy; el=dx; } else { pdx=0;  pdy=iy; ddx=ix; ddy=iy; es=dx; el=dy; } \
    int err = el >> 1; putpixel; \
    for(int i = 0; i < el; ++i) { err-=es; if (err < 0) { err+=el; x+=ddx; y+=ddy; } else { x+=pdx; y+=pdy; } putpixel; } } }
bresenham algorithm

Definition at line 960 of file mmsfbconv.h.

#define MMSFB_DRAWLINE_PUT_PIXEL

Value:

if ((x >= clipreg.x1)&&(x <= clipreg.x2)&&(y >= clipreg.y1)&&(y <= clipreg.y2)) \
        dst[x+y*dst_pitch_pix]=SRC;
put pixel macro will be used e.g. as parameter for the bresenham algorithm

Definition at line 972 of file mmsfbconv.h.

#define MMSFB_ROTATE_180_RECT ( SURFACE,
X,
Y,
W,
 ) 

Value:

if (MMSFBBase_rotate180) { \
        X = ((!(SURFACE)->root_parent)?(SURFACE)->config.w:(SURFACE)->root_parent->config.w) - X - (W); \
        Y = ((!(SURFACE)->root_parent)?(SURFACE)->config.h:(SURFACE)->root_parent->config.h) - Y - (H); \
    }
calculate rectangle if screen is rotated by 180°

Definition at line 1047 of file mmsfbconv.h.

#define MMSFB_ROTATE_180_RECT_WH ( WIDTH,
HEIGHT,
X,
Y,
W,
 ) 

Value:

if (MMSFBBase_rotate180) { \
        X = WIDTH - X - (W); \
        Y = HEIGHT - Y - (H); \
    }
calculate rectangle if screen is rotated by 180°

Definition at line 1054 of file mmsfbconv.h.

#define MMSFB_ROTATE_180_REGION ( SURFACE,
X1,
Y1,
X2,
Y2   ) 

Value:

if (MMSFBBase_rotate180) { \
        int tmp; \
        tmp = X2; \
        X2 = ((!(SURFACE)->root_parent)?(SURFACE)->config.w:(SURFACE)->root_parent->config.w) - X1 - 1; \
        X1 = ((!(SURFACE)->root_parent)?(SURFACE)->config.w:(SURFACE)->root_parent->config.w) - tmp - 1; \
        tmp = Y2; \
        Y2 = ((!(SURFACE)->root_parent)?(SURFACE)->config.h:(SURFACE)->root_parent->config.h) - Y1 - 1; \
        Y1 = ((!(SURFACE)->root_parent)?(SURFACE)->config.h:(SURFACE)->root_parent->config.h) - tmp - 1; \
    }
calculate region if screen is rotated by 180°

Definition at line 1035 of file mmsfbconv.h.

#define MMSFBSURFACE_BLIT_TEXT_END_RENDER

Value:

if (!MMSFBBase_rotate180) \
        x+=glyph.advanceX; \
    else \
        x-=glyph.advanceX;  }
used for text output

Definition at line 1027 of file mmsfbconv.h.

#define MMSFBSURFACE_BLIT_TEXT_INIT ( pw   ) 

Value:

int FH = 0;   font->getHeight(&FH); \
    int desc = 0; font->getDescender(&desc); \
    int DY = FH - (desc + 1); \
    int dst_pitch_pix = dst_pitch >> pw;
used for text output

Definition at line 978 of file mmsfbconv.h.

#define MMSFBSURFACE_BLIT_TEXT_LOAD_GLYPH ( font,
character   ) 

Value:

int           src_pitch_pix; \
    int           src_w; \
    int           src_h; \
    unsigned char *src; \
    MMSFBFont_Glyph glyph; \
    bool glyph_loaded = font->getGlyph(character, &glyph); \
    if (glyph_loaded) { \
        src_pitch_pix = glyph.pitch; \
        src_w         = glyph.width; \
        src_h         = glyph.height; \
        src           = glyph.buffer; \
    }
used for text output

Definition at line 985 of file mmsfbconv.h.

#define MMSFBSURFACE_BLIT_TEXT_START_RENDER ( pt   ) 

Value:

if (glyph_loaded) { \
        int dx, dy; \
        if (!MMSFBBase_rotate180) { \
            dx = x + glyph.left; \
            dy = y + DY - glyph.top; \
        } else { \
            dx = x - glyph.left - glyph.width + 1; \
            dy = y - (DY - glyph.top) - glyph.height + 1; \
        } \
        if (dx < clipreg.x1) { \
            src_w -= clipreg.x1 - dx; \
            src   += clipreg.x1 - dx; \
            dx     = clipreg.x1; } \
        if (dx + src_w - 1 > clipreg.x2) src_w = clipreg.x2 - dx + 1; \
        if (dy < clipreg.y1) { \
            src_h -= clipreg.y1 - dy; \
            src   +=(clipreg.y1 - dy) * src_pitch_pix; \
            dy     = clipreg.y1; } \
        if (dy + src_h - 1 > clipreg.y2) src_h = clipreg.y2 - dy + 1; \
        unsigned char *src_end = src + src_h * src_pitch_pix; \
        unsigned char *line_end = src + src_w; \
        int src_pitch_pix_diff = src_pitch_pix - src_w; \
        int dst_pitch_pix_diff = dst_pitch_pix - src_w; \
        pt *dst = ((pt *)dst_ptr) + dx + dy * dst_pitch_pix;
used for text output

Definition at line 1000 of file mmsfbconv.h.


Function Documentation

void compress_2x2_matrix ( unsigned char *  src,
int  src_pitch,
int  src_pitch_pix,
int  src_height,
int  sw,
int  sh,
unsigned char *  dst,
int  dst_pitch,
int  dst_pitch_pix,
int  dst_height,
int  dw,
int  dh 
)

Compressing a 2x2 matrix (arithmetic mean), e.g. used for U/V components (YV12 pixel format).

Note:
src and dst have to point to the first pixel which is to process
Author:
Jens Schneider

Definition at line 702 of file mmsfbconv.cpp.

void mmsfb_blit_airgb_to_airgb ( MMSFBSurfacePlanes src_planes,
int  src_height,
int  sx,
int  sy,
int  sw,
int  sh,
MMSFBSurfacePlanes dst_planes,
int  dst_height,
int  dx,
int  dy 
)

Blit AiRGB to AiRGB.

Author:
Jens Schneider

void mmsfb_blit_airgb_to_argb ( MMSFBExternalSurfaceBuffer *  extbuf,
int  src_height,
int  sx,
int  sy,
int  sw,
int  sh,
unsigned int *  dst,
int  dst_pitch,
int  dst_height,
int  dx,
int  dy 
)

Blit AiRGB to ARGB.

Author:
Matthias Hardt

void mmsfb_blit_airgb_to_rgb16 ( MMSFBExternalSurfaceBuffer *  extbuf,
int  src_height,
int  sx,
int  sy,
int  sw,
int  sh,
unsigned short int *  dst,
int  dst_pitch,
int  dst_height,
int  dx,
int  dy 
)

Blit AiRGB to RGB16.

Author:
Jens Schneider

void mmsfb_blit_argb3565_to_argb3565 ( MMSFBSurfacePlanes src_planes,
int  src_height,
int  sx,
int  sy,
int  sw,
int  sh,
MMSFBSurfacePlanes dst_planes,
int  dst_height,
int  dx,
int  dy 
)

Blit ARGB3565 to ARGB3565.

Author:
Jens Schneider

void mmsfb_blit_argb4444_to_argb4444 ( MMSFBSurfacePlanes src_planes,
int  src_height,
int  sx,
int  sy,
int  sw,
int  sh,
MMSFBSurfacePlanes dst_planes,
int  dst_height,
int  dx,
int  dy 
)

Blit ARGB4444 to ARGB4444.

Author:
Jens Schneider

void mmsfb_blit_argb_to_argb ( MMSFBSurfacePlanes src_planes,
int  src_height,
int  sx,
int  sy,
int  sw,
int  sh,
MMSFBSurfacePlanes dst_planes,
int  dst_height,
int  dx,
int  dy 
)

Blit ARGB to ARGB.

Author:
Jens Schneider

void mmsfb_blit_argb_to_argb3565 ( MMSFBSurfacePlanes src_planes,
int  src_height,
int  sx,
int  sy,
int  sw,
int  sh,
MMSFBSurfacePlanes dst_planes,
int  dst_height,
int  dx,
int  dy 
)

Blit ARGB to ARGB3565.

Author:
Jens Schneider

void mmsfb_blit_argb_to_rgb16 ( MMSFBExternalSurfaceBuffer *  extbuf,
int  src_height,
int  sx,
int  sy,
int  sw,
int  sh,
unsigned short int *  dst,
int  dst_pitch,
int  dst_height,
int  dx,
int  dy 
)

Blit ARGB to RGB16.

Author:
Jens Schneider

void mmsfb_blit_argb_to_rgb24 ( MMSFBSurfacePlanes src_planes,
int  src_height,
int  sx,
int  sy,
int  sw,
int  sh,
MMSFBSurfacePlanes dst_planes,
int  dst_height,
int  dx,
int  dy 
)

Blit with alpha blending ARGB to RGB24.

Note:
RGB24 byte order: blue, green, red
Author:
Jens Schneider

void mmsfb_blit_argb_to_rgb32 ( MMSFBSurfacePlanes src_planes,
int  src_height,
int  sx,
int  sy,
int  sw,
int  sh,
MMSFBSurfacePlanes dst_planes,
int  dst_height,
int  dx,
int  dy 
)

Blit ARGB to RGB32.

Author:
Jens Schneider

void mmsfb_blit_argb_to_yv12 ( MMSFBExternalSurfaceBuffer *  extbuf,
int  src_height,
int  sx,
int  sy,
int  sw,
int  sh,
unsigned char *  dst,
int  dst_pitch,
int  dst_height,
int  dx,
int  dy 
)

Blit ARGB to YV12.

Author:
Jens Schneider

void mmsfb_blit_ayuv_to_ayuv ( MMSFBSurfacePlanes src_planes,
int  src_height,
int  sx,
int  sy,
int  sw,
int  sh,
MMSFBSurfacePlanes dst_planes,
int  dst_height,
int  dx,
int  dy 
)

Blit AYUV to AYUV.

Author:
Jens Schneider

void mmsfb_blit_ayuv_to_rgb16 ( MMSFBExternalSurfaceBuffer *  extbuf,
int  src_height,
int  sx,
int  sy,
int  sw,
int  sh,
unsigned short int *  dst,
int  dst_pitch,
int  dst_height,
int  dx,
int  dy 
)

Blit AYUV to RGB16.

Author:
Jens Schneider

void mmsfb_blit_bgr24_to_bgr24 ( MMSFBSurfacePlanes src_planes,
int  src_height,
int  sx,
int  sy,
int  sw,
int  sh,
MMSFBSurfacePlanes dst_planes,
int  dst_height,
int  dx,
int  dy 
)

Blit BGR24 to BGR24.

Note:
BGR24 byte order: red, green, blue
Author:
Jens Schneider

void mmsfb_blit_bgr555_to_bgr555 ( MMSFBSurfacePlanes src_planes,
int  src_height,
int  sx,
int  sy,
int  sw,
int  sh,
MMSFBSurfacePlanes dst_planes,
int  dst_height,
int  dx,
int  dy 
)

Blit BGR555 to BGR555.

Author:
Jens Schneider

void mmsfb_blit_blend_airgb_to_airgb ( MMSFBExternalSurfaceBuffer *  extbuf,
int  src_height,
int  sx,
int  sy,
int  sw,
int  sh,
unsigned int *  dst,
int  dst_pitch,
int  dst_height,
int  dx,
int  dy 
)

Blit with alpha blending AiRGB to AiRGB.

Author:
Jens Schneider

void mmsfb_blit_blend_airgb_to_argb ( MMSFBExternalSurfaceBuffer *  extbuf,
int  src_height,
int  sx,
int  sy,
int  sw,
int  sh,
unsigned int *  dst,
int  dst_pitch,
int  dst_height,
int  dx,
int  dy 
)

Blit with alpha blending AiRGB to ARGB.

Author:
Jens Schneider

void mmsfb_blit_blend_airgb_to_rgb16 ( MMSFBExternalSurfaceBuffer *  extbuf,
int  src_height,
int  sx,
int  sy,
int  sw,
int  sh,
unsigned short int *  dst,
int  dst_pitch,
int  dst_height,
int  dx,
int  dy 
)

Blit with alpha blending AiRGB to RGB16.

Author:
Jens Schneider

void mmsfb_blit_blend_argb4444_to_argb4444 ( MMSFBSurfacePlanes src_planes,
int  src_height,
int  sx,
int  sy,
int  sw,
int  sh,
MMSFBSurfacePlanes dst_planes,
int  dst_height,
int  dx,
int  dy 
)

Blit with alpha blending ARGB4444 to ARGB4444.

Author:
Jens Schneider

void mmsfb_blit_blend_argb4444_to_rgb32 ( MMSFBSurfacePlanes src_planes,
int  src_height,
int  sx,
int  sy,
int  sw,
int  sh,
MMSFBSurfacePlanes dst_planes,
int  dst_height,
int  dx,
int  dy 
)

Blit with alpha blending ARGB4444 to RGB32.

Author:
Jens Schneider

void mmsfb_blit_blend_argb_to_airgb ( MMSFBExternalSurfaceBuffer *  extbuf,
int  src_height,
int  sx,
int  sy,
int  sw,
int  sh,
unsigned int *  dst,
int  dst_pitch,
int  dst_height,
int  dx,
int  dy 
)

Blit with alpha blending ARGB to AiRGB.

Author:
Jens Schneider

void mmsfb_blit_blend_argb_to_argb ( MMSFBSurfacePlanes src_planes,
int  src_height,
int  sx,
int  sy,
int  sw,
int  sh,
MMSFBSurfacePlanes dst_planes,
int  dst_height,
int  dx,
int  dy 
)

Blit with alpha blending ARGB to ARGB.

Author:
Jens Schneider

void mmsfb_blit_blend_argb_to_argb3565 ( MMSFBSurfacePlanes src_planes,
int  src_height,
int  sx,
int  sy,
int  sw,
int  sh,
MMSFBSurfacePlanes dst_planes,
int  dst_height,
int  dx,
int  dy 
)

Blit with alpha blending ARGB to ARGB3565.

Author:
Jens Schneider

void mmsfb_blit_blend_argb_to_bgr24 ( MMSFBSurfacePlanes src_planes,
int  src_height,
int  sx,
int  sy,
int  sw,
int  sh,
MMSFBSurfacePlanes dst_planes,
int  dst_height,
int  dx,
int  dy 
)

Blit with alpha blending ARGB to BGR24.

Note:
BGR24 byte order: red, green, blue
Author:
Jens Schneider

void mmsfb_blit_blend_argb_to_bgr555 ( MMSFBSurfacePlanes src_planes,
int  src_height,
int  sx,
int  sy,
int  sw,
int  sh,
MMSFBSurfacePlanes dst_planes,
int  dst_height,
int  dx,
int  dy 
)

Blit with alpha blending ARGB to BGR555.

Author:
Jens Schneider

void mmsfb_blit_blend_argb_to_rgb16 ( MMSFBSurfacePlanes src_planes,
int  src_height,
int  sx,
int  sy,
int  sw,
int  sh,
MMSFBSurfacePlanes dst_planes,
int  dst_height,
int  dx,
int  dy 
)

Blit with alpha blending ARGB to RGB16.

Author:
Jens Schneider

void mmsfb_blit_blend_argb_to_rgb24 ( MMSFBSurfacePlanes src_planes,
int  src_height,
int  sx,
int  sy,
int  sw,
int  sh,
MMSFBSurfacePlanes dst_planes,
int  dst_height,
int  dx,
int  dy 
)

Blit with alpha blending ARGB to RGB24.

Note:
RGB24 byte order: blue, green, red
Author:
Jens Schneider

void mmsfb_blit_blend_argb_to_rgb32 ( MMSFBSurfacePlanes src_planes,
int  src_height,
int  sx,
int  sy,
int  sw,
int  sh,
MMSFBSurfacePlanes dst_planes,
int  dst_height,
int  dx,
int  dy 
)

Blit with alpha blending ARGB to RGB32.

Author:
Jens Schneider

void mmsfb_blit_blend_argb_to_yv12 ( MMSFBExternalSurfaceBuffer *  extbuf,
int  src_height,
int  sx,
int  sy,
int  sw,
int  sh,
unsigned char *  dst,
int  dst_pitch,
int  dst_height,
int  dx,
int  dy 
)

Blit with alpha blending ARGB to YV12.

Author:
Jens Schneider

void mmsfb_blit_blend_ayuv_to_ayuv ( MMSFBExternalSurfaceBuffer *  extbuf,
int  src_height,
int  sx,
int  sy,
int  sw,
int  sh,
unsigned int *  dst,
int  dst_pitch,
int  dst_height,
int  dx,
int  dy 
)

Blit with alpha blending AYUV to AYUV.

Author:
Jens Schneider

void mmsfb_blit_blend_ayuv_to_rgb16 ( MMSFBExternalSurfaceBuffer *  extbuf,
int  src_height,
int  sx,
int  sy,
int  sw,
int  sh,
unsigned short int *  dst,
int  dst_pitch,
int  dst_height,
int  dx,
int  dy 
)

Blit with alpha blending AYUV to RGB16.

Author:
Jens Schneider

void mmsfb_blit_blend_ayuv_to_yv12 ( MMSFBExternalSurfaceBuffer *  extbuf,
int  src_height,
int  sx,
int  sy,
int  sw,
int  sh,
unsigned char *  dst,
int  dst_pitch,
int  dst_height,
int  dx,
int  dy 
)

Blit with alpha blending AYUV to YV12.

Author:
Jens Schneider

void mmsfb_blit_blend_coloralpha_airgb_to_airgb ( MMSFBExternalSurfaceBuffer *  extbuf,
int  src_height,
int  sx,
int  sy,
int  sw,
int  sh,
unsigned int *  dst,
int  dst_pitch,
int  dst_height,
int  dx,
int  dy,
unsigned char  alpha 
)

Blit with alpha blending with alpha from color AiRGB to AiRGB.

Author:
Jens Schneider

void mmsfb_blit_blend_coloralpha_argb4444_to_argb4444 ( MMSFBSurfacePlanes src_planes,
int  src_height,
int  sx,
int  sy,
int  sw,
int  sh,
MMSFBSurfacePlanes dst_planes,
int  dst_height,
int  dx,
int  dy,
unsigned char  alpha 
)

Blit with alpha blending with alpha from color ARGB4444 to ARGB4444.

Author:
Jens Schneider

void mmsfb_blit_blend_coloralpha_argb4444_to_rgb32 ( MMSFBSurfacePlanes src_planes,
int  src_height,
int  sx,
int  sy,
int  sw,
int  sh,
MMSFBSurfacePlanes dst_planes,
int  dst_height,
int  dx,
int  dy,
unsigned char  alpha 
)

Blit with alpha blending with alpha from color ARGB4444 to RGB32.

Author:
Jens Schneider

void mmsfb_blit_blend_coloralpha_argb_to_argb ( MMSFBSurfacePlanes src_planes,
int  src_height,
int  sx,
int  sy,
int  sw,
int  sh,
MMSFBSurfacePlanes dst_planes,
int  dst_height,
int  dx,
int  dy,
unsigned char  alpha 
)

Blit with alpha blending with alpha from color ARGB to ARGB.

Author:
Jens Schneider

void mmsfb_blit_blend_coloralpha_argb_to_bgr24 ( MMSFBSurfacePlanes src_planes,
int  src_height,
int  sx,
int  sy,
int  sw,
int  sh,
MMSFBSurfacePlanes dst_planes,
int  dst_height,
int  dx,
int  dy,
unsigned char  alpha 
)

Blit with alpha blending with alpha from color ARGB to BGR24.

Author:
Jens Schneider

void mmsfb_blit_blend_coloralpha_argb_to_rgb32 ( MMSFBSurfacePlanes src_planes,
int  src_height,
int  sx,
int  sy,
int  sw,
int  sh,
MMSFBSurfacePlanes dst_planes,
int  dst_height,
int  dx,
int  dy,
unsigned char  alpha 
)

Blit with alpha blending with alpha from color ARGB to RGB32.

Author:
Jens Schneider

void mmsfb_blit_blend_coloralpha_argb_to_yv12 ( MMSFBExternalSurfaceBuffer *  extbuf,
int  src_height,
int  sx,
int  sy,
int  sw,
int  sh,
unsigned char *  dst,
int  dst_pitch,
int  dst_height,
int  dx,
int  dy,
unsigned char  alpha 
)

Blit with alpha blending with alpha from color ARGB to YV12.

Author:
Jens Schneider

void mmsfb_blit_blend_coloralpha_ayuv_to_ayuv ( MMSFBExternalSurfaceBuffer *  extbuf,
int  src_height,
int  sx,
int  sy,
int  sw,
int  sh,
unsigned int *  dst,
int  dst_pitch,
int  dst_height,
int  dx,
int  dy,
unsigned char  alpha 
)

Blit with alpha blending with alpha from color AYUV to AYUV.

Author:
Jens Schneider

void mmsfb_blit_blend_coloralpha_ayuv_to_yv12 ( MMSFBExternalSurfaceBuffer *  extbuf,
int  src_height,
int  sx,
int  sy,
int  sw,
int  sh,
unsigned char *  dst,
int  dst_pitch,
int  dst_height,
int  dx,
int  dy,
unsigned char  alpha 
)

Blit with alpha blending with alpha from color AYUV to YV12.

Author:
Jens Schneider

void mmsfb_blit_coloralpha_argb_to_rgb32 ( MMSFBSurfacePlanes src_planes,
int  src_height,
int  sx,
int  sy,
int  sw,
int  sh,
MMSFBSurfacePlanes dst_planes,
int  dst_height,
int  dx,
int  dy,
unsigned char  alpha 
)

Blit with alpha blending with alpha from color ARGB to RGB32, ignoring alpha channel from source.

Author:
Jens Schneider

void mmsfb_blit_coloralpha_bgr24_to_bgr24 ( MMSFBSurfacePlanes src_planes,
int  src_height,
int  sx,
int  sy,
int  sw,
int  sh,
MMSFBSurfacePlanes dst_planes,
int  dst_height,
int  dx,
int  dy,
unsigned char  alpha 
)

Blit with alpha from color BGR24 to BGR24.

Author:
Jens Schneider

void mmsfb_blit_coloralpha_rgb32_to_rgb32 ( MMSFBSurfacePlanes src_planes,
int  src_height,
int  sx,
int  sy,
int  sw,
int  sh,
MMSFBSurfacePlanes dst_planes,
int  dst_height,
int  dx,
int  dy,
unsigned char  alpha 
)

Blit with alpha from color RGB32 to RGB32.

Author:
Jens Schneider

void mmsfb_blit_i420_to_i420 ( MMSFBSurfacePlanes src_planes,
int  src_height,
int  sx,
int  sy,
int  sw,
int  sh,
MMSFBSurfacePlanes dst_planes,
int  dst_height,
int  dx,
int  dy 
)

Blit I420 to I420.

Author:
Jens Schneider

void mmsfb_blit_i420_to_yv12 ( MMSFBSurfacePlanes src_planes,
int  src_height,
int  sx,
int  sy,
int  sw,
int  sh,
MMSFBSurfacePlanes dst_planes,
int  dst_height,
int  dx,
int  dy 
)

Blit I420 to YV12.

Author:
Jens Schneider

void mmsfb_blit_rgb16_to_argb ( MMSFBSurfacePlanes src_planes,
int  src_height,
int  sx,
int  sy,
int  sw,
int  sh,
MMSFBSurfacePlanes dst_planes,
int  dst_height,
int  dx,
int  dy 
)

Blit RGB16 to ARGB.

Author:
Jens Schneider

void mmsfb_blit_rgb16_to_rgb16 ( MMSFBSurfacePlanes src_planes,
int  src_height,
int  sx,
int  sy,
int  sw,
int  sh,
MMSFBSurfacePlanes dst_planes,
int  dst_height,
int  dx,
int  dy 
)

Blit RGB16 to RGB16.

Author:
Jens Schneider

void mmsfb_blit_rgb16_to_rgb32 ( MMSFBSurfacePlanes src_planes,
int  src_height,
int  sx,
int  sy,
int  sw,
int  sh,
MMSFBSurfacePlanes dst_planes,
int  dst_height,
int  dx,
int  dy 
)

Blit RGB16 to RGB32.

Author:
Jens Schneider

void mmsfb_blit_rgb24_to_argb ( MMSFBSurfacePlanes src_planes,
int  src_height,
int  sx,
int  sy,
int  sw,
int  sh,
MMSFBSurfacePlanes dst_planes,
int  dst_height,
int  dx,
int  dy 
)

Blit RGB24 to ARGB.

Author:
Jens Schneider

void mmsfb_blit_rgb24_to_rgb24 ( MMSFBSurfacePlanes src_planes,
int  src_height,
int  sx,
int  sy,
int  sw,
int  sh,
MMSFBSurfacePlanes dst_planes,
int  dst_height,
int  dx,
int  dy 
)

Blit RGB24 to RGB24.

Note:
RGB24 byte order: blue, green, red
Author:
Jens Schneider

void mmsfb_blit_rgb24_to_rgb32 ( MMSFBSurfacePlanes src_planes,
int  src_height,
int  sx,
int  sy,
int  sw,
int  sh,
MMSFBSurfacePlanes dst_planes,
int  dst_height,
int  dx,
int  dy 
)

Blit RGB24 to RGB32.

Author:
Jens Schneider

void mmsfb_blit_rgb24_to_yv12 ( MMSFBExternalSurfaceBuffer *  extbuf,
int  src_height,
int  sx,
int  sy,
int  sw,
int  sh,
unsigned char *  dst,
int  dst_pitch,
int  dst_height,
int  dx,
int  dy 
)

Blit RGB24 to YV12.

Author:
Jens Schneider

void mmsfb_blit_rgb32_to_argb ( MMSFBSurfacePlanes src_planes,
int  src_height,
int  sx,
int  sy,
int  sw,
int  sh,
MMSFBSurfacePlanes dst_planes,
int  dst_height,
int  dx,
int  dy 
)

Blit RGB32 to ARGB.

Author:
Stefan Schwarzer

void mmsfb_blit_rgb32_to_rgb32 ( MMSFBSurfacePlanes src_planes,
int  src_height,
int  sx,
int  sy,
int  sw,
int  sh,
MMSFBSurfacePlanes dst_planes,
int  dst_height,
int  dx,
int  dy 
)

Blit RGB32 to RGB32.

Author:
Jens Schneider

void mmsfb_blit_uint ( MMSFBSurfacePlanes src_planes,
int  src_height,
int  sx,
int  sy,
int  sw,
int  sh,
MMSFBSurfacePlanes dst_planes,
int  dst_height,
int  dx,
int  dy 
)

Blitting unsigned int (4 byte) source to unsigned int destination.

Author:
Jens Schneider

Definition at line 1203 of file mmsfbconv.cpp.

void mmsfb_blit_usint ( MMSFBSurfacePlanes src_planes,
int  src_height,
int  sx,
int  sy,
int  sw,
int  sh,
MMSFBSurfacePlanes dst_planes,
int  dst_height,
int  dx,
int  dy 
)

Blitting unsigned short int (2 byte) source to unsigned short int destination.

Author:
Jens Schneider

Definition at line 1241 of file mmsfbconv.cpp.

void mmsfb_blit_yuy2_to_yuy2 ( MMSFBSurfacePlanes src_planes,
int  src_height,
int  sx,
int  sy,
int  sw,
int  sh,
MMSFBSurfacePlanes dst_planes,
int  dst_height,
int  dx,
int  dy 
)

Blit YUY2 to YUY2.

Author:
Jens Schneider

void mmsfb_blit_yuy2_to_yv12 ( MMSFBSurfacePlanes src_planes,
int  src_height,
int  sx,
int  sy,
int  sw,
int  sh,
MMSFBSurfacePlanes dst_planes,
int  dst_height,
int  dx,
int  dy 
)

Blit YUY2 to YV12.

Author:
Jens Schneider

void mmsfb_blit_yv12_to_rgb32 ( MMSFBExternalSurfaceBuffer *  extbuf,
int  src_height,
int  sx,
int  sy,
int  sw,
int  sh,
unsigned int *  dst,
int  dst_pitch,
int  dst_height,
int  dx,
int  dy 
)

Blit YV12 to RGB32.

Author:
Jens Schneider

void mmsfb_blit_yv12_to_yv12 ( MMSFBSurfacePlanes extbuf,
int  src_height,
int  sx,
int  sy,
int  sw,
int  sh,
MMSFBSurfacePlanes dst_planes,
int  dst_height,
int  dx,
int  dy 
)

Blit YV12 to YV12.

Author:
Jens Schneider

void mmsfb_drawline_argb ( MMSFBSurfacePlanes dst_planes,
int  dst_height,
MMSFBRegion clipreg,
int  x1,
int  y1,
int  x2,
int  y2,
MMSFBColor color 
)

Draw line ARGB.

Author:
Jens Schneider

Definition at line 36 of file mmsfb_drawline_argb.cpp.

void mmsfb_drawline_argb4444 ( MMSFBSurfacePlanes dst_planes,
int  dst_height,
MMSFBRegion clipreg,
int  x1,
int  y1,
int  x2,
int  y2,
MMSFBColor color 
)

Draw line ARGB4444.

Author:
Jens Schneider

Definition at line 36 of file mmsfb_drawline_argb4444.cpp.

void mmsfb_drawline_blend_argb ( MMSFBSurfacePlanes dst_planes,
int  dst_height,
MMSFBRegion clipreg,
int  x1,
int  y1,
int  x2,
int  y2,
MMSFBColor color 
)

Draw line with alpha blending ARGB.

Author:
Jens Schneider

Definition at line 60 of file mmsfb_drawline_blend_argb.cpp.

void mmsfb_drawstring_blend_argb ( MMSFBSurfacePlanes dst_planes,
MMSFBFont font,
MMSFBRegion clipreg,
string &  text,
int  len,
int  x,
int  y,
MMSFBColor color 
)

Draw string with alpha blending ARGB.

Author:
Jens Schneider

Definition at line 36 of file mmsfb_drawstring_blend_argb.cpp.

void mmsfb_drawstring_blend_argb4444 ( MMSFBSurfacePlanes dst_planes,
MMSFBFont font,
MMSFBRegion clipreg,
string &  text,
int  len,
int  x,
int  y,
MMSFBColor color 
)

Draw string with alpha blending ARGB4444.

Author:
Jens Schneider

Definition at line 36 of file mmsfb_drawstring_blend_argb4444.cpp.

void mmsfb_drawstring_blend_coloralpha_argb ( MMSFBSurfacePlanes dst_planes,
MMSFBFont font,
MMSFBRegion clipreg,
string &  text,
int  len,
int  x,
int  y,
MMSFBColor color 
)

Draw string with alpha blending with alpha from color ARGB.

Author:
Jens Schneider

Definition at line 36 of file mmsfb_drawstring_blend_coloralpha_argb.cpp.

void mmsfb_drawstring_blend_coloralpha_rgb16 ( MMSFBSurfacePlanes dst_planes,
MMSFBFont font,
MMSFBRegion clipreg,
string &  text,
int  len,
int  x,
int  y,
MMSFBColor color 
)

Draw string with alpha blending with alpha from color RGB16.

Author:
Jens Schneider

Definition at line 36 of file mmsfb_drawstring_blend_coloralpha_rgb16.cpp.

void mmsfb_drawstring_blend_coloralpha_rgb32 ( MMSFBSurfacePlanes dst_planes,
MMSFBFont font,
MMSFBRegion clipreg,
string &  text,
int  len,
int  x,
int  y,
MMSFBColor color 
)

Draw string with alpha blending with alpha from color RGB32.

Author:
Jens Schneider

Definition at line 36 of file mmsfb_drawstring_blend_coloralpha_rgb32.cpp.

void mmsfb_drawstring_blend_rgb16 ( MMSFBSurfacePlanes dst_planes,
MMSFBFont font,
MMSFBRegion clipreg,
string &  text,
int  len,
int  x,
int  y,
MMSFBColor color 
)

Draw string with alpha blending RGB16.

Author:
Jens Schneider

Definition at line 36 of file mmsfb_drawstring_blend_rgb16.cpp.

void mmsfb_drawstring_blend_rgb32 ( MMSFBSurfacePlanes dst_planes,
MMSFBFont font,
MMSFBRegion clipreg,
string &  text,
int  len,
int  x,
int  y,
MMSFBColor color 
)

Draw string with alpha blending RGB32.

Author:
Jens Schneider

Definition at line 36 of file mmsfb_drawstring_blend_rgb32.cpp.

void mmsfb_fillrectangle_argb ( MMSFBSurfacePlanes dst_planes,
int  dst_height,
int  dx,
int  dy,
int  dw,
int  dh,
MMSFBColor  color 
)

Fill rectangle ARGB.

Author:
Jens Schneider

void mmsfb_fillrectangle_argb3565 ( MMSFBSurfacePlanes dst_planes,
int  dst_height,
int  dx,
int  dy,
int  dw,
int  dh,
MMSFBColor  color 
)

Fill rectangle ARGB3565.

Author:
Jens Schneider

void mmsfb_fillrectangle_argb4444 ( MMSFBSurfacePlanes dst_planes,
int  dst_height,
int  dx,
int  dy,
int  dw,
int  dh,
MMSFBColor  color 
)

Fill rectangle ARGB3565.

Author:
Jens Schneider

void mmsfb_fillrectangle_ayuv ( MMSFBSurfacePlanes dst_planes,
int  dst_height,
int  dx,
int  dy,
int  dw,
int  dh,
MMSFBColor  color 
)

Fill rectangle AYUV.

Author:
Jens Schneider

void mmsfb_fillrectangle_bgr24 ( MMSFBSurfacePlanes dst_planes,
int  dst_height,
int  dx,
int  dy,
int  dw,
int  dh,
MMSFBColor  color 
)

Fill rectangle BGR24.

Note:
BGR24 byte order: red, green, blue
Author:
Jens Schneider

void mmsfb_fillrectangle_bgr555 ( MMSFBSurfacePlanes dst_planes,
int  dst_height,
int  dx,
int  dy,
int  dw,
int  dh,
MMSFBColor  color 
)

Fill rectangle BGR555.

Author:
Jens Schneider

void mmsfb_fillrectangle_blend_argb ( MMSFBSurfacePlanes dst_planes,
int  dst_height,
int  dx,
int  dy,
int  dw,
int  dh,
MMSFBColor  color 
)

Fill rectangle with alpha blending ARGB.

Author:
Jens Schneider

void mmsfb_fillrectangle_blend_argb4444 ( MMSFBSurfacePlanes dst_planes,
int  dst_height,
int  dx,
int  dy,
int  dw,
int  dh,
MMSFBColor  color 
)

Fill rectangle with alpha blending ARGB4444.

Author:
Jens Schneider

void mmsfb_fillrectangle_blend_ayuv ( MMSFBSurfacePlanes dst_planes,
int  dst_height,
int  dx,
int  dy,
int  dw,
int  dh,
MMSFBColor  color 
)

Fill rectangle with alpha blending AYUV.

Author:
Jens Schneider

void mmsfb_fillrectangle_blend_rgb16 ( MMSFBSurfacePlanes dst_planes,
int  dst_height,
int  dx,
int  dy,
int  dw,
int  dh,
MMSFBColor  color 
)

Fill rectangle with alpha blending RGB16.

Author:
Jens Schneider

void mmsfb_fillrectangle_i420 ( MMSFBSurfacePlanes dst_planes,
int  dst_height,
int  dx,
int  dy,
int  dw,
int  dh,
MMSFBColor  color 
)

Fill rectangle I420.

Author:
Jens Schneider

void mmsfb_fillrectangle_rgb16 ( MMSFBSurfacePlanes dst_planes,
int  dst_height,
int  dx,
int  dy,
int  dw,
int  dh,
MMSFBColor  color 
)

Fill rectangle RGB16.

Author:
Jens Schneider

void mmsfb_fillrectangle_rgb24 ( MMSFBSurfacePlanes dst_planes,
int  dst_height,
int  dx,
int  dy,
int  dw,
int  dh,
MMSFBColor  color 
)

Fill rectangle RGB24.

Note:
RGB24 byte order: blue, green, red
Author:
Jens Schneider

void mmsfb_fillrectangle_rgb32 ( MMSFBSurfacePlanes dst_planes,
int  dst_height,
int  dx,
int  dy,
int  dw,
int  dh,
MMSFBColor  color 
)

Fill rectangle RGB32.

Author:
Jens Schneider

void mmsfb_fillrectangle_yuy2 ( MMSFBSurfacePlanes dst_planes,
int  dst_height,
int  dx,
int  dy,
int  dw,
int  dh,
MMSFBColor  color 
)

Fill rectangle YUY2.

Author:
Jens Schneider

void mmsfb_fillrectangle_yv12 ( MMSFBSurfacePlanes dst_planes,
int  dst_height,
int  dx,
int  dy,
int  dw,
int  dh,
MMSFBColor  color 
)

Fill rectangle YV12.

Author:
Jens Schneider

void mmsfb_stretchblit_airgb_to_airgb ( MMSFBSurfacePlanes src_planes,
int  src_height,
int  sx,
int  sy,
int  sw,
int  sh,
MMSFBSurfacePlanes dst_planes,
int  dst_height,
int  dx,
int  dy,
int  dw,
int  dh,
bool  antialiasing 
)

Stretch blit AiRGB to AiRGB.

Author:
Jens Schneider

void mmsfb_stretchblit_argb_to_argb ( MMSFBSurfacePlanes src_planes,
int  src_height,
int  sx,
int  sy,
int  sw,
int  sh,
MMSFBSurfacePlanes dst_planes,
int  dst_height,
int  dx,
int  dy,
int  dw,
int  dh,
bool  antialiasing 
)

Stretch blit ARGB to ARGB.

Author:
Jens Schneider

void mmsfb_stretchblit_ayuv_to_ayuv ( MMSFBSurfacePlanes src_planes,
int  src_height,
int  sx,
int  sy,
int  sw,
int  sh,
MMSFBSurfacePlanes dst_planes,
int  dst_height,
int  dx,
int  dy,
int  dw,
int  dh,
bool  antialiasing 
)

Stretch blit AYUV to AYUV.

Author:
Jens Schneider

void mmsfb_stretchblit_blend_airgb_to_airgb ( MMSFBExternalSurfaceBuffer *  extbuf,
int  src_height,
int  sx,
int  sy,
int  sw,
int  sh,
unsigned int *  dst,
int  dst_pitch,
int  dst_height,
int  dx,
int  dy,
int  dw,
int  dh 
)

Stretch blit with alpha blending AiRGB to AiRGB.

Author:
Jens Schneider

void mmsfb_stretchblit_blend_argb4444_to_argb4444 ( MMSFBSurfacePlanes src_planes,
int  src_height,
int  sx,
int  sy,
int  sw,
int  sh,
MMSFBSurfacePlanes dst_planes,
int  dst_height,
int  dx,
int  dy,
int  dw,
int  dh 
)

Stretch blit with alpha blending ARGB4444 to ARGB4444.

Author:
Jens Schneider

void mmsfb_stretchblit_blend_argb_to_argb ( MMSFBSurfacePlanes src_planes,
int  src_height,
int  sx,
int  sy,
int  sw,
int  sh,
MMSFBSurfacePlanes dst_planes,
int  dst_height,
int  dx,
int  dy,
int  dw,
int  dh 
)

Stretch blit with alpha blending ARGB to ARGB.

Author:
Jens Schneider

void mmsfb_stretchblit_blend_argb_to_rgb32 ( MMSFBSurfacePlanes src_planes,
int  src_height,
int  sx,
int  sy,
int  sw,
int  sh,
MMSFBSurfacePlanes dst_planes,
int  dst_height,
int  dx,
int  dy,
int  dw,
int  dh 
)

Stretch blit with alpha blending ARGB to RGB32.

Author:
Jens Schneider

void mmsfb_stretchblit_blend_ayuv_to_ayuv ( MMSFBExternalSurfaceBuffer *  extbuf,
int  src_height,
int  sx,
int  sy,
int  sw,
int  sh,
unsigned int *  dst,
int  dst_pitch,
int  dst_height,
int  dx,
int  dy,
int  dw,
int  dh 
)

Stretch blit with alpha blending AYUV to AYUV.

Author:
Jens Schneider

void mmsfb_stretchblit_blend_coloralpha_airgb_to_airgb ( MMSFBExternalSurfaceBuffer *  extbuf,
int  src_height,
int  sx,
int  sy,
int  sw,
int  sh,
unsigned int *  dst,
int  dst_pitch,
int  dst_height,
int  dx,
int  dy,
int  dw,
int  dh,
unsigned char  alpha 
)

Stretch blit with alpha blending with alpha from color AiRGB to AiRGB.

Author:
Jens Schneider

void mmsfb_stretchblit_blend_coloralpha_argb4444_to_argb4444 ( MMSFBSurfacePlanes src_planes,
int  src_height,
int  sx,
int  sy,
int  sw,
int  sh,
MMSFBSurfacePlanes dst_planes,
int  dst_height,
int  dx,
int  dy,
int  dw,
int  dh,
unsigned char  alpha 
)

Stretch blit with alpha blending with alpha from color ARGB4444 to ARGB4444.

Author:
Jens Schneider

void mmsfb_stretchblit_blend_coloralpha_argb_to_argb ( MMSFBSurfacePlanes src_planes,
int  src_height,
int  sx,
int  sy,
int  sw,
int  sh,
MMSFBSurfacePlanes dst_planes,
int  dst_height,
int  dx,
int  dy,
int  dw,
int  dh,
unsigned char  alpha 
)

Stretch blit with alpha blending with alpha from color ARGB to ARGB.

Author:
Jens Schneider

void mmsfb_stretchblit_blend_coloralpha_ayuv_to_ayuv ( MMSFBExternalSurfaceBuffer *  extbuf,
int  src_height,
int  sx,
int  sy,
int  sw,
int  sh,
unsigned int *  dst,
int  dst_pitch,
int  dst_height,
int  dx,
int  dy,
int  dw,
int  dh,
unsigned char  alpha 
)

Stretch blit with alpha blending with alpha from color AYUV to AYUV.

Author:
Jens Schneider

void mmsfb_stretchblit_i420_to_yv12 ( MMSFBSurfacePlanes src_planes,
int  src_height,
int  sx,
int  sy,
int  sw,
int  sh,
MMSFBSurfacePlanes dst_planes,
int  dst_height,
int  dx,
int  dy,
int  dw,
int  dh,
bool  antialiasing 
)

Stretch blit I420 to YV12 with antialiasing.

Author:
Jens Schneider

void mmsfb_stretchblit_rgb16_to_rgb16 ( MMSFBSurfacePlanes src_planes,
int  src_height,
int  sx,
int  sy,
int  sw,
int  sh,
MMSFBSurfacePlanes dst_planes,
int  dst_height,
int  dx,
int  dy,
int  dw,
int  dh,
bool  antialiasing 
)

Stretch blit RGB16 to RGB16.

Author:
Jens Schneider

void mmsfb_stretchblit_rgb24_to_argb ( MMSFBExternalSurfaceBuffer *  extbuf,
int  src_height,
int  sx,
int  sy,
int  sw,
int  sh,
unsigned int *  dst,
int  dst_pitch,
int  dst_height,
int  dx,
int  dy,
int  dw,
int  dh,
bool  antialiasing 
)

Stretch blit RGB24 to ARGB.

Author:
Jens Schneider

void mmsfb_stretchblit_rgb24_to_rgb32 ( MMSFBExternalSurfaceBuffer *  extbuf,
int  src_height,
int  sx,
int  sy,
int  sw,
int  sh,
unsigned int *  dst,
int  dst_pitch,
int  dst_height,
int  dx,
int  dy,
int  dw,
int  dh,
bool  antialiasing 
)

Stretch blit RGB24 to RGB32.

Author:
Jens Schneider

void mmsfb_stretchblit_rgb32_to_rgb32 ( MMSFBSurfacePlanes src_planes,
int  src_height,
int  sx,
int  sy,
int  sw,
int  sh,
MMSFBSurfacePlanes dst_planes,
int  dst_height,
int  dx,
int  dy,
int  dw,
int  dh,
bool  antialiasing 
)

Stretch blit RGB32 to RGB32.

Author:
Jens Schneider

void mmsfb_stretchblit_yuy2_to_yv12 ( MMSFBSurfacePlanes src_planes,
int  src_height,
int  sx,
int  sy,
int  sw,
int  sh,
MMSFBSurfacePlanes dst_planes,
int  dst_height,
int  dx,
int  dy,
int  dw,
int  dh,
bool  antialiasing 
)

Stretch blit YUY2 to YV12 with antialiasing.

Author:
Jens Schneider

void mmsfb_stretchblit_yv12_to_yv12 ( MMSFBSurfacePlanes src_planes,
int  src_height,
int  sx,
int  sy,
int  sw,
int  sh,
MMSFBSurfacePlanes dst_planes,
int  dst_height,
int  dx,
int  dy,
int  dw,
int  dh,
bool  antialiasing 
)

Stretch blit YV12 to YV12 with antialiasing.

Author:
Jens Schneider

void stretch_324byte_buffer ( bool  h_antialiasing,
bool  v_antialiasing,
unsigned char *  src,
int  src_pitch,
int  src_pitch_pix,
int  src_height,
int  sx,
int  sy,
int  sw,
int  sh,
unsigned int *  dst,
int  dst_pitch,
int  dst_pitch_pix,
int  dst_height,
int  dx,
int  dy,
int  dw,
int  dh 
)

Stretching the source 3-byte-buffer to a unsigned int destination.

Author:
Jens Schneider

Definition at line 1045 of file mmsfbconv.cpp.

void stretch_byte_buffer ( bool  h_antialiasing,
bool  v_antialiasing,
unsigned char *  src,
int  src_pitch,
int  src_pitch_pix,
int  src_height,
int  sw,
int  sh,
unsigned char *  dst,
int  dst_pitch,
int  dst_pitch_pix,
int  dst_height,
int  dw,
int  dh 
)

Stretching the source byte buffer to a destination.

Note:
src and dst have to point to the first pixel which is to process
Author:
Jens Schneider

Definition at line 670 of file mmsfbconv.cpp.

void stretch_uint_buffer ( bool  h_antialiasing,
bool  v_antialiasing,
unsigned int *  src,
int  src_pitch,
int  src_pitch_pix,
int  src_height,
int  sx,
int  sy,
int  sw,
int  sh,
unsigned int *  dst,
int  dst_pitch,
int  dst_pitch_pix,
int  dst_height,
int  dx,
int  dy,
int  dw,
int  dh 
)

Stretching the source unsigned int buffer to a destination.

Author:
Jens Schneider

Definition at line 733 of file mmsfbconv.cpp.

void stretch_usint_buffer ( bool  h_antialiasing,
bool  v_antialiasing,
unsigned short int *  src,
int  src_pitch,
int  src_pitch_pix,
int  src_height,
int  sx,
int  sy,
int  sw,
int  sh,
unsigned short int *  dst,
int  dst_pitch,
int  dst_pitch_pix,
int  dst_height,
int  dx,
int  dy,
int  dw,
int  dh 
)

Stretching the source unsigned short int buffer to a destination.

Author:
Jens Schneider

Definition at line 888 of file mmsfbconv.cpp.