* i420_rgb8.c : YUV to bitmap RGB conversion module for vlc
*****************************************************************************
* Copyright (C) 2000 VideoLAN
- * $Id: i420_rgb8.c,v 1.1 2002/08/04 17:23:43 sam Exp $
+ * $Id: i420_rgb8.c,v 1.2 2002/11/20 13:37:36 sam Exp $
*
* Authors: Samuel Hocevar <sam@zoy.org>
*
/*****************************************************************************
* Preamble
*****************************************************************************/
-#include <errno.h> /* ENOMEM */
#include <string.h> /* strerror() */
#include <stdlib.h> /* malloc(), free() */
u8 *p_u = p_src->U_PIXELS;
u8 *p_v = p_src->V_PIXELS;
- vlc_bool_t b_hscale; /* horizontal scaling type */
- int i_vscale; /* vertical scaling type */
- int i_x, i_y; /* horizontal and vertical indexes */
- int i_real_y; /* y % 4 */
- int i_right_margin;
- int i_scale_count; /* scale modulo counter */
- int i_chroma_width = p_vout->render.i_width / 2; /* chroma width */
+ vlc_bool_t b_hscale; /* horizontal scaling type */
+ unsigned int i_vscale; /* vertical scaling type */
+ unsigned int i_x, i_y; /* horizontal and vertical indexes */
+ unsigned int i_real_y; /* y % 4 */
+ int i_right_margin;
+ int i_scale_count; /* scale modulo counter */
+ unsigned int i_chroma_width = p_vout->render.i_width / 2;/* chroma width */
/* Lookup table */
u8 * p_lookup = p_vout->chroma.p_sys->p_base;