1 /*******************************************************************************
2 * video_yuv.h: YUV transformation functions
4 *******************************************************************************
5 * Provides functions prototypes to perform the YUV conversion. The functions
6 * may be implemented in one of the video_yuv_* files.
7 *******************************************************************************/
9 /*******************************************************************************
11 *******************************************************************************/
12 int vout_InitTables ( vout_thread_t *p_vout );
13 int vout_ResetTables ( vout_thread_t *p_vout );
14 void vout_EndTables ( vout_thread_t *p_vout );
16 /*******************************************************************************
18 *******************************************************************************/
21 /* YUV transformations for MMX - in video_yuv_mmx.S
22 * p_y, p_u, p_v: Y U and V planes
23 * i_width, i_height: frames dimensions (pixels)
24 * i_ypitch, i_vpitch: Y and V lines sizes (bytes)
25 * i_aspect: vertical aspect factor
27 * i_dci_offset: ?? x offset for left image border
28 * i_offset_to_line_0: ?? x offset for left image border
29 * i_pitch: RGB line size (bytes)
30 * i_colortype: 0 for 565, 1 for 555 */
31 void ConvertYUV420RGB16MMX( u8* p_y, u8* p_u, u8 *p_v,
32 unsigned int i_width, unsigned int i_height,
33 unsigned int i_ypitch, unsigned int i_vpitch,
34 unsigned int i_aspect, u8 *p_pic,
35 u32 i_dci_offset, u32 i_offset_to_line_0,
36 int i_pitch, int i_colortype );