xvmc.c File Reference

Include dependency graph for xvmc.c:


Defines

#define TOP_FIELD   1
#define BOTTOM_FIELD   2
#define FRAME_PICTURE   3
#define I_TYPE   1
#define P_TYPE   2
#define B_TYPE   3
#define D_TYPE   4
#define ADAPTOR_TEXT   N_("XVMC adaptor number")
#define ADAPTOR_LONGTEXT
#define DISPLAY_TEXT   N_("X11 display name")
#define DISPLAY_LONGTEXT
#define CHROMA_TEXT   N_("XVimage chroma format")
#define CHROMA_LONGTEXT
#define SHM_TEXT   N_("Use shared memory")
#define SHM_LONGTEXT
#define MODE_TEXT   N_("Deinterlace mode")
#define MODE_LONGTEXT   N_("You can choose the default deinterlace mode")
#define CROP_TEXT   N_("Crop")
#define CROP_LONGTEXT   N_("You can choose the crop style to apply.")
#define NUM_ACCEL_PRIORITY   (sizeof(accel_priority)/sizeof(accel_priority[0]))

Functions

int Activate (vlc_object_t *)
void Deactivate (vlc_object_t *)
int vlc_entry__main (module_t *p_module)
const char * vlc_entry_license__main (void)
static void init_context_lock (context_lock_t *c)
void free_context_lock (context_lock_t *c)
void xvmc_context_reader_lock (context_lock_t *c)
void xvmc_context_reader_unlock (context_lock_t *c)
void xvmc_context_writer_lock (context_lock_t *c)
void xvmc_context_writer_unlock (context_lock_t *c)
void clear_xx44_palette (xx44_palette_t *p)
static void init_xx44_palette (xx44_palette_t *p, unsigned num_entries)
static void dispose_xx44_palette (xx44_palette_t *p)
static void colorToPalette (const uint32_t *icolor, unsigned char *palette_p, unsigned num_xvmc_components, char *xvmc_components)
void xx44_to_xvmc_palette (const xx44_palette_t *p, unsigned char *xvmc_palette, unsigned first_xx44_entry, unsigned num_xx44_entries, unsigned num_xvmc_components, char *xvmc_components)
void blend_xx44 (uint8_t *dst_img, subpicture_t *sub_img, int dst_width, int dst_height, int dst_pitch, xx44_palette_t *palette, int ia44)
int xxmc_xvmc_surface_valid (vout_thread_t *p_vout, XvMCSurface *surf)
XvMCSubpicture * xxmc_xvmc_alloc_subpicture (vout_thread_t *p_vout, XvMCContext *context, unsigned short width, unsigned short height, int xvimage_id)
void xxmc_xvmc_free_subpicture (vout_thread_t *p_vout, XvMCSubpicture *sub)
static void xxmc_xvmc_surface_handler_construct (vout_thread_t *p_vout)
static void xxmc_xvmc_dump_surfaces (vout_thread_t *p_vout)
void xxmc_xvmc_free_surface (vout_thread_t *p_vout, XvMCSurface *surf)
int checkXvMCCap (vout_thread_t *p_vout)
static int xxmc_setup_subpictures (vout_thread_t *p_vout, unsigned int width, unsigned int height)
static void xvmc_check_colorkey_properties (vout_thread_t *p_vout)
static void xxmc_xvmc_destroy_surfaces (vout_thread_t *p_vout)
static void xxmc_xvmc_destroy_subpictures (vout_thread_t *p_vout)
static XvMCSurface * xxmc_xvmc_alloc_surface (vout_thread_t *p_vout, XvMCContext *context)
void xxmc_dispose_context (vout_thread_t *p_vout)
static int xxmc_find_context (vout_thread_t *p_vout, vlc_xxmc_t *xxmc, unsigned int width, unsigned int height)
static int xxmc_create_context (vout_thread_t *p_vout, unsigned int width, unsigned int height)
static void xvmc_flushsync (picture_t *picture)
static void xvmc_flush (picture_t *picture)
static int xxmc_frame_updates (vout_thread_t *p_vout, picture_t *picture)
static int xxmc_xvmc_update_context (vout_thread_t *p_vout, picture_t *picture, uint32_t width, uint32_t height)
void xxmc_do_update_frame (picture_t *picture, uint32_t width, uint32_t height, double ratio, int format, int flags)
void xvmc_vld_frame (picture_t *picture)
void xvmc_vld_slice (picture_t *picture)

Variables

static const unsigned accel_priority []

Define Documentation

#define ADAPTOR_LONGTEXT

Value:

N_( \
    "If you graphics card provides several adaptors, this option allows you " \
    "to choose which one will be used (you shouldn't have to change this).")

#define ADAPTOR_TEXT   N_("XVMC adaptor number")

#define B_TYPE   3

#define BOTTOM_FIELD   2

#define CHROMA_LONGTEXT

Value:

N_( \
    "Force the XVideo renderer to use a specific chroma format instead of " \
    "trying to improve performances by using the most efficient one.")

#define CHROMA_TEXT   N_("XVimage chroma format")

#define CROP_LONGTEXT   N_("You can choose the crop style to apply.")

#define CROP_TEXT   N_("Crop")

#define D_TYPE   4

#define DISPLAY_LONGTEXT

Value:

N_( \
    "Specify the X11 hardware display you want to use. By default VLC will " \
    "use the value of the DISPLAY environment variable.")

#define DISPLAY_TEXT   N_("X11 display name")

#define FRAME_PICTURE   3

#define I_TYPE   1

#define MODE_LONGTEXT   N_("You can choose the default deinterlace mode")

#define MODE_TEXT   N_("Deinterlace mode")

#define NUM_ACCEL_PRIORITY   (sizeof(accel_priority)/sizeof(accel_priority[0]))

Referenced by xxmc_find_context().

#define P_TYPE   2

#define SHM_LONGTEXT

Value:

N_( \
    "Use shared memory to communicate between VLC and the X server.")

#define SHM_TEXT   N_("Use shared memory")

#define TOP_FIELD   1


Function Documentation

int Activate ( vlc_object_t  ) 

void blend_xx44 ( uint8_t *  dst_img,
subpicture_t sub_img,
int  dst_width,
int  dst_height,
int  dst_pitch,
xx44_palette_t *  palette,
int  ia44 
)

int checkXvMCCap ( vout_thread_t p_vout  ) 

void clear_xx44_palette ( xx44_palette_t *  p  ) 

References i.

static void colorToPalette ( const uint32_t *  icolor,
unsigned char *  palette_p,
unsigned  num_xvmc_components,
char *  xvmc_components 
) [static]

References i.

Referenced by xx44_to_xvmc_palette().

void Deactivate ( vlc_object_t  ) 

static void dispose_xx44_palette ( xx44_palette_t *  p  )  [static]

References VLC_UNUSED.

Referenced by xxmc_dispose_context().

void free_context_lock ( context_lock_t *  c  ) 

Referenced by Deactivate().

static void init_context_lock ( context_lock_t *  c  )  [static]

Referenced by checkXvMCCap().

static void init_xx44_palette ( xx44_palette_t *  p,
unsigned  num_entries 
) [static]

int vlc_entry__main ( module_t p_module  ) 

const char* vlc_entry_license__main ( void   ) 

static void xvmc_check_colorkey_properties ( vout_thread_t p_vout  )  [static]

void xvmc_context_reader_lock ( context_lock_t *  c  ) 

void xvmc_context_reader_unlock ( context_lock_t *  c  ) 

void xvmc_context_writer_lock ( context_lock_t *  c  ) 

void xvmc_context_writer_unlock ( context_lock_t *  c  ) 

static void xvmc_flush ( picture_t picture  )  [static]

static void xvmc_flushsync ( picture_t picture  )  [static]

void xvmc_vld_frame ( picture_t picture  ) 

void xvmc_vld_slice ( picture_t picture  ) 

void xx44_to_xvmc_palette ( const xx44_palette_t *  p,
unsigned char *  xvmc_palette,
unsigned  first_xx44_entry,
unsigned  num_xx44_entries,
unsigned  num_xvmc_components,
char *  xvmc_components 
)

References colorToPalette(), and i.

static int xxmc_create_context ( vout_thread_t p_vout,
unsigned int  width,
unsigned int  height 
) [static]

void xxmc_dispose_context ( vout_thread_t p_vout  ) 

void xxmc_do_update_frame ( picture_t picture,
uint32_t  width,
uint32_t  height,
double  ratio,
int  format,
int  flags 
)

static int xxmc_find_context ( vout_thread_t p_vout,
vlc_xxmc_t xxmc,
unsigned int  width,
unsigned int  height 
) [static]

static int xxmc_frame_updates ( vout_thread_t p_vout,
picture_t picture 
) [static]

static int xxmc_setup_subpictures ( vout_thread_t p_vout,
unsigned int  width,
unsigned int  height 
) [static]

XvMCSubpicture* xxmc_xvmc_alloc_subpicture ( vout_thread_t p_vout,
XvMCContext *  context,
unsigned short  width,
unsigned short  height,
int  xvimage_id 
)

static XvMCSurface* xxmc_xvmc_alloc_surface ( vout_thread_t p_vout,
XvMCContext *  context 
) [static]

static void xxmc_xvmc_destroy_subpictures ( vout_thread_t p_vout  )  [static]

static void xxmc_xvmc_destroy_surfaces ( vout_thread_t p_vout  )  [static]

static void xxmc_xvmc_dump_surfaces ( vout_thread_t p_vout  )  [static]

void xxmc_xvmc_free_subpicture ( vout_thread_t p_vout,
XvMCSubpicture *  sub 
)

void xxmc_xvmc_free_surface ( vout_thread_t p_vout,
XvMCSurface *  surf 
)

static void xxmc_xvmc_surface_handler_construct ( vout_thread_t p_vout  )  [static]

References vout_thread_t::p_sys.

Referenced by checkXvMCCap().

int xxmc_xvmc_surface_valid ( vout_thread_t p_vout,
XvMCSurface *  surf 
)

static int xxmc_xvmc_update_context ( vout_thread_t p_vout,
picture_t picture,
uint32_t  width,
uint32_t  height 
) [static]


Variable Documentation

const unsigned accel_priority[] [static]

Initial value:

 {
     0x00000004 ,
}

Referenced by xxmc_find_context().


Generated on Wed Mar 31 08:06:04 2010 for VLC by  doxygen 1.5.6