]> git.sesse.net Git - vlc/blob - src/video_output/video_yuv.h
748a0a1eba5ed393be6c4952c39d534fcb80b4c2
[vlc] / src / video_output / video_yuv.h
1 /*****************************************************************************
2  * video_yuv.h: YUV transformation functions
3  * (c)1999 VideoLAN
4  *****************************************************************************
5  * Provides functions prototypes to perform the YUV conversion. The functions
6  * may be implemented in one of the video_yuv_* files.
7  *****************************************************************************/
8
9 /*****************************************************************************
10  * Prototypes
11  *****************************************************************************/
12 int             vout_InitYUV      ( vout_thread_t *p_vout );
13 int             vout_ResetYUV     ( vout_thread_t *p_vout );
14 void            vout_EndYUV       ( vout_thread_t *p_vout );
15
16 /*****************************************************************************
17  * External prototypes
18  *****************************************************************************/
19 #ifdef HAVE_MMX
20
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
26  *      p_pic:                  RGB frame
27  *      i_dci_offset:           XXX?? x offset for left image border
28  *      i_offset_to_line_0:     XXX?? 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 );
37 #endif