zenilib  0.5.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
SDL_yuv_sw.c File Reference
#include "SDL_config.h"
#include "SDL_assert.h"
#include "SDL_video.h"
#include "SDL_cpuinfo.h"
#include "SDL_yuv_sw_c.h"

Go to the source code of this file.

Functions

static void Color16DitherYUY2Mod1X (int *colortab, Uint32 *rgb_2_pix, unsigned char *lum, unsigned char *cr, unsigned char *cb, unsigned char *out, int rows, int cols, int mod)
 
static void Color16DitherYUY2Mod2X (int *colortab, Uint32 *rgb_2_pix, unsigned char *lum, unsigned char *cr, unsigned char *cb, unsigned char *out, int rows, int cols, int mod)
 
static void Color16DitherYV12Mod1X (int *colortab, Uint32 *rgb_2_pix, unsigned char *lum, unsigned char *cr, unsigned char *cb, unsigned char *out, int rows, int cols, int mod)
 
static void Color16DitherYV12Mod2X (int *colortab, Uint32 *rgb_2_pix, unsigned char *lum, unsigned char *cr, unsigned char *cb, unsigned char *out, int rows, int cols, int mod)
 
static void Color24DitherYUY2Mod1X (int *colortab, Uint32 *rgb_2_pix, unsigned char *lum, unsigned char *cr, unsigned char *cb, unsigned char *out, int rows, int cols, int mod)
 
static void Color24DitherYUY2Mod2X (int *colortab, Uint32 *rgb_2_pix, unsigned char *lum, unsigned char *cr, unsigned char *cb, unsigned char *out, int rows, int cols, int mod)
 
static void Color24DitherYV12Mod1X (int *colortab, Uint32 *rgb_2_pix, unsigned char *lum, unsigned char *cr, unsigned char *cb, unsigned char *out, int rows, int cols, int mod)
 
static void Color24DitherYV12Mod2X (int *colortab, Uint32 *rgb_2_pix, unsigned char *lum, unsigned char *cr, unsigned char *cb, unsigned char *out, int rows, int cols, int mod)
 
static void Color32DitherYUY2Mod1X (int *colortab, Uint32 *rgb_2_pix, unsigned char *lum, unsigned char *cr, unsigned char *cb, unsigned char *out, int rows, int cols, int mod)
 
static void Color32DitherYUY2Mod2X (int *colortab, Uint32 *rgb_2_pix, unsigned char *lum, unsigned char *cr, unsigned char *cb, unsigned char *out, int rows, int cols, int mod)
 
static void Color32DitherYV12Mod1X (int *colortab, Uint32 *rgb_2_pix, unsigned char *lum, unsigned char *cr, unsigned char *cb, unsigned char *out, int rows, int cols, int mod)
 
static void Color32DitherYV12Mod2X (int *colortab, Uint32 *rgb_2_pix, unsigned char *lum, unsigned char *cr, unsigned char *cb, unsigned char *out, int rows, int cols, int mod)
 
static int free_bits_at_bottom (Uint32 a)
 
static int number_of_bits_set (Uint32 a)
 
int SDL_SW_CopyYUVToRGB (SDL_SW_YUVTexture *swdata, const SDL_Rect *srcrect, Uint32 target_format, int w, int h, void *pixels, int pitch)
 
SDL_SW_YUVTextureSDL_SW_CreateYUVTexture (Uint32 format, int w, int h)
 
void SDL_SW_DestroyYUVTexture (SDL_SW_YUVTexture *swdata)
 
int SDL_SW_LockYUVTexture (SDL_SW_YUVTexture *swdata, const SDL_Rect *rect, void **pixels, int *pitch)
 
int SDL_SW_QueryYUVTexturePixels (SDL_SW_YUVTexture *swdata, void **pixels, int *pitch)
 
static int SDL_SW_SetupYUVDisplay (SDL_SW_YUVTexture *swdata, Uint32 target_format)
 
void SDL_SW_UnlockYUVTexture (SDL_SW_YUVTexture *swdata)
 
int SDL_SW_UpdateYUVTexture (SDL_SW_YUVTexture *swdata, const SDL_Rect *rect, const void *pixels, int pitch)
 
int SDL_SW_UpdateYUVTexturePlanar (SDL_SW_YUVTexture *swdata, const SDL_Rect *rect, const Uint8 *Yplane, int Ypitch, const Uint8 *Uplane, int Upitch, const Uint8 *Vplane, int Vpitch)
 

Function Documentation

static void Color16DitherYUY2Mod1X ( int colortab,
Uint32 rgb_2_pix,
unsigned char *  lum,
unsigned char *  cr,
unsigned char *  cb,
unsigned char *  out,
int  rows,
int  cols,
int  mod 
)
static

Definition at line 566 of file SDL_yuv_sw.c.

Referenced by SDL_SW_SetupYUVDisplay().

static void Color16DitherYUY2Mod2X ( int colortab,
Uint32 rgb_2_pix,
unsigned char *  lum,
unsigned char *  cr,
unsigned char *  cb,
unsigned char *  out,
int  rows,
int  cols,
int  mod 
)
static

Definition at line 710 of file SDL_yuv_sw.c.

Referenced by SDL_SW_SetupYUVDisplay().

static void Color16DitherYV12Mod1X ( int colortab,
Uint32 rgb_2_pix,
unsigned char *  lum,
unsigned char *  cr,
unsigned char *  cb,
unsigned char *  out,
int  rows,
int  cols,
int  mod 
)
static

Definition at line 105 of file SDL_yuv_sw.c.

Referenced by SDL_SW_SetupYUVDisplay().

static void Color16DitherYV12Mod2X ( int colortab,
Uint32 rgb_2_pix,
unsigned char *  lum,
unsigned char *  cr,
unsigned char *  cb,
unsigned char *  out,
int  rows,
int  cols,
int  mod 
)
static

Definition at line 326 of file SDL_yuv_sw.c.

Referenced by SDL_SW_SetupYUVDisplay().

static void Color24DitherYUY2Mod1X ( int colortab,
Uint32 rgb_2_pix,
unsigned char *  lum,
unsigned char *  cr,
unsigned char *  cb,
unsigned char *  out,
int  rows,
int  cols,
int  mod 
)
static

Definition at line 612 of file SDL_yuv_sw.c.

Referenced by SDL_SW_SetupYUVDisplay().

static void Color24DitherYUY2Mod2X ( int colortab,
Uint32 rgb_2_pix,
unsigned char *  lum,
unsigned char *  cr,
unsigned char *  cb,
unsigned char *  out,
int  rows,
int  cols,
int  mod 
)
static

Definition at line 756 of file SDL_yuv_sw.c.

Referenced by SDL_SW_SetupYUVDisplay().

static void Color24DitherYV12Mod1X ( int colortab,
Uint32 rgb_2_pix,
unsigned char *  lum,
unsigned char *  cr,
unsigned char *  cb,
unsigned char *  out,
int  rows,
int  cols,
int  mod 
)
static

Definition at line 175 of file SDL_yuv_sw.c.

Referenced by SDL_SW_SetupYUVDisplay().

static void Color24DitherYV12Mod2X ( int colortab,
Uint32 rgb_2_pix,
unsigned char *  lum,
unsigned char *  cr,
unsigned char *  cb,
unsigned char *  out,
int  rows,
int  cols,
int  mod 
)
static

Definition at line 399 of file SDL_yuv_sw.c.

Referenced by SDL_SW_SetupYUVDisplay().

static void Color32DitherYUY2Mod1X ( int colortab,
Uint32 rgb_2_pix,
unsigned char *  lum,
unsigned char *  cr,
unsigned char *  cb,
unsigned char *  out,
int  rows,
int  cols,
int  mod 
)
static

Definition at line 662 of file SDL_yuv_sw.c.

Referenced by SDL_SW_SetupYUVDisplay().

static void Color32DitherYUY2Mod2X ( int colortab,
Uint32 rgb_2_pix,
unsigned char *  lum,
unsigned char *  cr,
unsigned char *  cb,
unsigned char *  out,
int  rows,
int  cols,
int  mod 
)
static

Definition at line 812 of file SDL_yuv_sw.c.

Referenced by SDL_SW_SetupYUVDisplay().

static void Color32DitherYV12Mod1X ( int colortab,
Uint32 rgb_2_pix,
unsigned char *  lum,
unsigned char *  cr,
unsigned char *  cb,
unsigned char *  out,
int  rows,
int  cols,
int  mod 
)
static

Definition at line 255 of file SDL_yuv_sw.c.

Referenced by SDL_SW_SetupYUVDisplay().

static void Color32DitherYV12Mod2X ( int colortab,
Uint32 rgb_2_pix,
unsigned char *  lum,
unsigned char *  cr,
unsigned char *  cb,
unsigned char *  out,
int  rows,
int  cols,
int  mod 
)
static

Definition at line 493 of file SDL_yuv_sw.c.

Referenced by SDL_SW_SetupYUVDisplay().

static int free_bits_at_bottom ( Uint32  a)
static

Definition at line 878 of file SDL_yuv_sw.c.

Referenced by SDL_SW_SetupYUVDisplay().

static int number_of_bits_set ( Uint32  a)
static

Definition at line 864 of file SDL_yuv_sw.c.

Referenced by SDL_SW_SetupYUVDisplay().

int SDL_SW_QueryYUVTexturePixels ( SDL_SW_YUVTexture swdata,
void **  pixels,
int pitch 
)

Definition at line 1105 of file SDL_yuv_sw.c.

References SDL_SW_YUVTexture::pitches, and SDL_SW_YUVTexture::planes.

void SDL_SW_UnlockYUVTexture ( SDL_SW_YUVTexture swdata)

Definition at line 1267 of file SDL_yuv_sw.c.

int SDL_SW_UpdateYUVTexturePlanar ( SDL_SW_YUVTexture swdata,
const SDL_Rect rect,
const Uint8 Yplane,
int  Ypitch,
const Uint8 Uplane,
int  Upitch,
const Uint8 Vplane,
int  Vpitch 
)