Commit d5300df1 authored by Vincent Seguin's avatar Vincent Seguin

Modifs diverses et variees. Le mode FB compile (mais ne fait rien).

parent 4c83ad1e
......@@ -198,10 +198,12 @@ video_decoder_obj = video_decoder_ref/video_decoder.o \
# 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 \
......
......@@ -11,6 +11,11 @@
* "mtime.h"
*******************************************************************************/
/*******************************************************************************
* yuv_data_t: type for storing one Y, U or V sample.
*******************************************************************************/
typedef s16 yuv_data_t;
/*******************************************************************************
* picture_t: video picture
*******************************************************************************
......@@ -47,16 +52,16 @@ typedef struct
* 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 */
......
......@@ -248,13 +248,13 @@ picture_t *vout_CreatePicture( vout_thread_t *p_vout, int i_type,
/* 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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment