# video_decoder/vdec_motion.o
misc_obj = misc/mtime.o \
- misc/xutils.o \
misc/rsc_files.o \
misc/netutils.o
+ifeq ($(VIDEO),X11)
+misc_obj+= misc/xutils.o
+endif
ifeq ($(ARCH),MMX)
ASM_OBJ = video_decoder_ref/idctmmx.o \
* "mtime.h"
*******************************************************************************/
+/*******************************************************************************
+ * yuv_data_t: type for storing one Y, U or V sample.
+ *******************************************************************************/
+typedef s16 yuv_data_t;
+
/*******************************************************************************
* picture_t: video picture
*******************************************************************************
* p_v data pointers refers to different areas of p_data, and should not
* be freed */
byte_t * p_data; /* picture data */
- byte_t * p_y; /* pointer to beginning of Y image in p_data */
- byte_t * p_u; /* pointer to beginning of U image in p_data */
- byte_t * p_v; /* pointer to beginning of V image in p_data */
+ yuv_data_t * p_y; /* pointer to beginning of Y image in p_data */
+ yuv_data_t * p_u; /* pointer to beginning of U image in p_data */
+ yuv_data_t * p_v; /* pointer to beginning of V image in p_data */
} picture_t;
/* Pictures types */
#define EMPTY_PICTURE 0 /* picture slot is empty and available */
-#define YUV_422_PICTURE 100 /* 4:2:2 YUV picture */
-#define YUV_442_PICTURE 101 /* 4:4:2 YUV picture */
+#define YUV_420_PICTURE 100 /* 4:2:0 YUV picture */
+#define YUV_422_PICTURE 101 /* 4:2:2 YUV picture */
#define YUV_444_PICTURE 102 /* 4:4:4 YUV picture */
/* Pictures status */
/* Allocate memory */
switch( i_type )
{
- case YUV_422_PICTURE: /* YUV picture: 3*16 ?? bits per pixel */
- case YUV_442_PICTURE:
+ case YUV_420_PICTURE: /* YUV picture: 3*16 ?? bits per pixel */
+ case YUV_422_PICTURE:
case YUV_444_PICTURE:
p_free_picture->p_data = malloc( 3 * i_height * i_bytes_per_line );
p_free_picture->p_y = p_free_picture->p_data;
- p_free_picture->p_u = (byte_t *)p_free_picture->p_data + i_height * i_bytes_per_line;
- p_free_picture->p_v = (byte_t *)p_free_picture->p_data + i_height * i_bytes_per_line * 2;
+ p_free_picture->p_u = p_free_picture->p_data + i_height * i_bytes_per_line;
+ p_free_picture->p_v = p_free_picture->p_data + i_height * i_bytes_per_line * 2;
break;
#ifdef DEBUG
default: