Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-1.1
Commits
41a8349d
Commit
41a8349d
authored
Aug 29, 2003
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* all: fix some gcc warnings and removed all u8/u16/u32.
parent
eba02c65
Changes
10
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
131 additions
and
129 deletions
+131
-129
modules/video_chroma/i420_rgb.c
modules/video_chroma/i420_rgb.c
+10
-10
modules/video_chroma/i420_rgb.h
modules/video_chroma/i420_rgb.h
+9
-9
modules/video_chroma/i420_rgb16.c
modules/video_chroma/i420_rgb16.c
+28
-28
modules/video_chroma/i420_rgb8.c
modules/video_chroma/i420_rgb8.c
+6
-6
modules/video_chroma/i420_rgb_mmx.h
modules/video_chroma/i420_rgb_mmx.h
+12
-12
modules/video_chroma/i420_ymga.c
modules/video_chroma/i420_ymga.c
+6
-6
modules/video_chroma/i420_yuy2.c
modules/video_chroma/i420_yuy2.c
+27
-25
modules/video_chroma/i420_yuy2.h
modules/video_chroma/i420_yuy2.h
+7
-7
modules/video_chroma/i422_yuy2.c
modules/video_chroma/i422_yuy2.c
+21
-21
modules/video_chroma/i422_yuy2.h
modules/video_chroma/i422_yuy2.h
+5
-5
No files found.
modules/video_chroma/i420_rgb.c
View file @
41a8349d
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* i420_rgb.c : YUV to bitmap RGB conversion module for vlc
* i420_rgb.c : YUV to bitmap RGB conversion module for vlc
*****************************************************************************
*****************************************************************************
* Copyright (C) 2000, 2001 VideoLAN
* Copyright (C) 2000, 2001 VideoLAN
* $Id: i420_rgb.c,v 1.
3 2002/11/25 19:29:10 sam
Exp $
* $Id: i420_rgb.c,v 1.
4 2003/08/29 18:58:05 fenrir
Exp $
*
*
* Authors: Samuel Hocevar <sam@zoy.org>
* Authors: Samuel Hocevar <sam@zoy.org>
*
*
...
@@ -56,7 +56,7 @@ static void Deactivate ( vlc_object_t * );
...
@@ -56,7 +56,7 @@ static void Deactivate ( vlc_object_t * );
#if defined (MODULE_NAME_IS_i420_rgb)
#if defined (MODULE_NAME_IS_i420_rgb)
static
void
SetGammaTable
(
int
*
pi_table
,
double
f_gamma
);
static
void
SetGammaTable
(
int
*
pi_table
,
double
f_gamma
);
static
void
SetYUV
(
vout_thread_t
*
);
static
void
SetYUV
(
vout_thread_t
*
);
static
void
Set8bppPalette
(
vout_thread_t
*
,
u
8
*
);
static
void
Set8bppPalette
(
vout_thread_t
*
,
u
int8_t
*
);
#endif
#endif
/*****************************************************************************
/*****************************************************************************
...
@@ -195,14 +195,14 @@ static int Activate( vlc_object_t *p_this )
...
@@ -195,14 +195,14 @@ static int Activate( vlc_object_t *p_this )
switch
(
p_vout
->
output
.
i_chroma
)
switch
(
p_vout
->
output
.
i_chroma
)
{
{
case
VLC_FOURCC
(
'R'
,
'G'
,
'B'
,
'2'
):
case
VLC_FOURCC
(
'R'
,
'G'
,
'B'
,
'2'
):
i_tables_size
=
sizeof
(
u
8
)
*
PALETTE_TABLE_SIZE
;
i_tables_size
=
sizeof
(
u
int8_t
)
*
PALETTE_TABLE_SIZE
;
break
;
break
;
case
VLC_FOURCC
(
'R'
,
'V'
,
'1'
,
'5'
):
case
VLC_FOURCC
(
'R'
,
'V'
,
'1'
,
'5'
):
case
VLC_FOURCC
(
'R'
,
'V'
,
'1'
,
'6'
):
case
VLC_FOURCC
(
'R'
,
'V'
,
'1'
,
'6'
):
i_tables_size
=
sizeof
(
u
16
)
*
RGB_TABLE_SIZE
;
i_tables_size
=
sizeof
(
u
int16_t
)
*
RGB_TABLE_SIZE
;
break
;
break
;
default:
/* RV24, RV32 */
default:
/* RV24, RV32 */
i_tables_size
=
sizeof
(
u
32
)
*
RGB_TABLE_SIZE
;
i_tables_size
=
sizeof
(
u
int32_t
)
*
RGB_TABLE_SIZE
;
break
;
break
;
}
}
...
@@ -277,13 +277,13 @@ static void SetYUV( vout_thread_t *p_vout )
...
@@ -277,13 +277,13 @@ static void SetYUV( vout_thread_t *p_vout )
switch
(
p_vout
->
output
.
i_chroma
)
switch
(
p_vout
->
output
.
i_chroma
)
{
{
case
VLC_FOURCC
(
'R'
,
'G'
,
'B'
,
'2'
):
case
VLC_FOURCC
(
'R'
,
'G'
,
'B'
,
'2'
):
p_vout
->
chroma
.
p_sys
->
p_rgb8
=
(
u
8
*
)
p_vout
->
chroma
.
p_sys
->
p_base
;
p_vout
->
chroma
.
p_sys
->
p_rgb8
=
(
u
int8_t
*
)
p_vout
->
chroma
.
p_sys
->
p_base
;
Set8bppPalette
(
p_vout
,
p_vout
->
chroma
.
p_sys
->
p_rgb8
);
Set8bppPalette
(
p_vout
,
p_vout
->
chroma
.
p_sys
->
p_rgb8
);
break
;
break
;
case
VLC_FOURCC
(
'R'
,
'V'
,
'1'
,
'5'
):
case
VLC_FOURCC
(
'R'
,
'V'
,
'1'
,
'5'
):
case
VLC_FOURCC
(
'R'
,
'V'
,
'1'
,
'6'
):
case
VLC_FOURCC
(
'R'
,
'V'
,
'1'
,
'6'
):
p_vout
->
chroma
.
p_sys
->
p_rgb16
=
(
u
16
*
)
p_vout
->
chroma
.
p_sys
->
p_base
;
p_vout
->
chroma
.
p_sys
->
p_rgb16
=
(
u
int16_t
*
)
p_vout
->
chroma
.
p_sys
->
p_base
;
for
(
i_index
=
0
;
i_index
<
RED_MARGIN
;
i_index
++
)
for
(
i_index
=
0
;
i_index
<
RED_MARGIN
;
i_index
++
)
{
{
p_vout
->
chroma
.
p_sys
->
p_rgb16
[
RED_OFFSET
-
RED_MARGIN
+
i_index
]
=
RGB2PIXEL
(
p_vout
,
pi_gamma
[
0
],
0
,
0
);
p_vout
->
chroma
.
p_sys
->
p_rgb16
[
RED_OFFSET
-
RED_MARGIN
+
i_index
]
=
RGB2PIXEL
(
p_vout
,
pi_gamma
[
0
],
0
,
0
);
...
@@ -309,7 +309,7 @@ static void SetYUV( vout_thread_t *p_vout )
...
@@ -309,7 +309,7 @@ static void SetYUV( vout_thread_t *p_vout )
case
VLC_FOURCC
(
'R'
,
'V'
,
'2'
,
'4'
):
case
VLC_FOURCC
(
'R'
,
'V'
,
'2'
,
'4'
):
case
VLC_FOURCC
(
'R'
,
'V'
,
'3'
,
'2'
):
case
VLC_FOURCC
(
'R'
,
'V'
,
'3'
,
'2'
):
p_vout
->
chroma
.
p_sys
->
p_rgb32
=
(
u
32
*
)
p_vout
->
chroma
.
p_sys
->
p_base
;
p_vout
->
chroma
.
p_sys
->
p_rgb32
=
(
u
int32_t
*
)
p_vout
->
chroma
.
p_sys
->
p_base
;
for
(
i_index
=
0
;
i_index
<
RED_MARGIN
;
i_index
++
)
for
(
i_index
=
0
;
i_index
<
RED_MARGIN
;
i_index
++
)
{
{
p_vout
->
chroma
.
p_sys
->
p_rgb32
[
RED_OFFSET
-
RED_MARGIN
+
i_index
]
=
RGB2PIXEL
(
p_vout
,
pi_gamma
[
0
],
0
,
0
);
p_vout
->
chroma
.
p_sys
->
p_rgb32
[
RED_OFFSET
-
RED_MARGIN
+
i_index
]
=
RGB2PIXEL
(
p_vout
,
pi_gamma
[
0
],
0
,
0
);
...
@@ -335,14 +335,14 @@ static void SetYUV( vout_thread_t *p_vout )
...
@@ -335,14 +335,14 @@ static void SetYUV( vout_thread_t *p_vout )
}
}
}
}
static
void
Set8bppPalette
(
vout_thread_t
*
p_vout
,
u
8
*
p_rgb8
)
static
void
Set8bppPalette
(
vout_thread_t
*
p_vout
,
u
int8_t
*
p_rgb8
)
{
{
#define CLIP( x ) ( ((x < 0) ? 0 : (x > 255) ? 255 : x) << 8 )
#define CLIP( x ) ( ((x < 0) ? 0 : (x > 255) ? 255 : x) << 8 )
int
y
,
u
,
v
;
int
y
,
u
,
v
;
int
r
,
g
,
b
;
int
r
,
g
,
b
;
int
i
=
0
,
j
=
0
;
int
i
=
0
,
j
=
0
;
u
16
red
[
256
],
green
[
256
],
blue
[
256
];
u
int16_t
red
[
256
],
green
[
256
],
blue
[
256
];
unsigned
char
p_lookup
[
PALETTE_TABLE_SIZE
];
unsigned
char
p_lookup
[
PALETTE_TABLE_SIZE
];
/* This loop calculates the intersection of an YUV box and the RGB cube. */
/* This loop calculates the intersection of an YUV box and the RGB cube. */
...
...
modules/video_chroma/i420_rgb.h
View file @
41a8349d
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* i420_rgb.h : YUV to bitmap RGB conversion module for vlc
* i420_rgb.h : YUV to bitmap RGB conversion module for vlc
*****************************************************************************
*****************************************************************************
* Copyright (C) 2000 VideoLAN
* Copyright (C) 2000 VideoLAN
* $Id: i420_rgb.h,v 1.
3 2002/11/26 20:04:33 sam
Exp $
* $Id: i420_rgb.h,v 1.
4 2003/08/29 18:58:05 fenrir
Exp $
*
*
* Authors: Samuel Hocevar <sam@zoy.org>
* Authors: Samuel Hocevar <sam@zoy.org>
*
*
...
@@ -29,15 +29,15 @@
...
@@ -29,15 +29,15 @@
*****************************************************************************/
*****************************************************************************/
struct
chroma_sys_t
struct
chroma_sys_t
{
{
u
8
*
p_buffer
;
u
int8_t
*
p_buffer
;
int
*
p_offset
;
int
*
p_offset
;
#ifdef MODULE_NAME_IS_i420_rgb
#ifdef MODULE_NAME_IS_i420_rgb
/* Pre-calculated conversion tables */
/* Pre-calculated conversion tables */
void
*
p_base
;
/* base for all conversion tables */
void
*
p_base
;
/* base for all conversion tables */
u
8
*
p_rgb8
;
/* RGB 8 bits table */
u
int8_t
*
p_rgb8
;
/* RGB 8 bits table */
u
16
*
p_rgb16
;
/* RGB 16 bits table */
u
int16_t
*
p_rgb16
;
/* RGB 16 bits table */
u
32
*
p_rgb32
;
/* RGB 32 bits table */
u
int32_t
*
p_rgb32
;
/* RGB 32 bits table */
#endif
#endif
};
};
...
@@ -175,13 +175,13 @@ void E_(I420_RGB32) ( vout_thread_t *, picture_t *, picture_t * );
...
@@ -175,13 +175,13 @@ void E_(I420_RGB32) ( vout_thread_t *, picture_t *, picture_t * );
{ \
{ \
*p_pic++ = *p_buffer; p_buffer += *p_offset++; \
*p_pic++ = *p_buffer; p_buffer += *p_offset++; \
} \
} \
(u
8*)p_pic += i_right_margin;
\
(u
int8_t*)p_pic += i_right_margin;
\
} \
} \
else \
else \
{ \
{ \
/* No scaling, conversion has been done directly in picture memory. \
/* No scaling, conversion has been done directly in picture memory. \
* Increment of picture pointer to end of line is still needed */
\
* Increment of picture pointer to end of line is still needed */
\
(u
8*)p_pic += p_dest->p->i_pitch;
\
(u
int8_t*)p_pic += p_dest->p->i_pitch;
\
} \
} \
/*****************************************************************************
/*****************************************************************************
...
@@ -213,7 +213,7 @@ void E_(I420_RGB32) ( vout_thread_t *, picture_t *, picture_t * );
...
@@ -213,7 +213,7 @@ void E_(I420_RGB32) ( vout_thread_t *, picture_t *, picture_t * );
} \
} \
} \
} \
/* Increment of picture pointer to end of line is still needed */
\
/* Increment of picture pointer to end of line is still needed */
\
(u
8*)p_pic += i_right_margin;
\
(u
int8_t*)p_pic += i_right_margin;
\
\
\
/* Increment the Y coordinate in the matrix, modulo 4 */
\
/* Increment the Y coordinate in the matrix, modulo 4 */
\
i_real_y = (i_real_y + 1) & 0x3; \
i_real_y = (i_real_y + 1) & 0x3; \
...
@@ -267,7 +267,7 @@ void E_(I420_RGB32) ( vout_thread_t *, picture_t *, picture_t * );
...
@@ -267,7 +267,7 @@ void E_(I420_RGB32) ( vout_thread_t *, picture_t *, picture_t * );
/* Height increment: copy previous picture line */
\
/* Height increment: copy previous picture line */
\
p_vout->p_vlc->pf_memcpy( p_pic, p_pic_start, \
p_vout->p_vlc->pf_memcpy( p_pic, p_pic_start, \
p_vout->output.i_width * BPP ); \
p_vout->output.i_width * BPP ); \
(u
8*)p_pic += p_dest->p->i_pitch;
\
(u
int8_t*)p_pic += p_dest->p->i_pitch;
\
} \
} \
i_scale_count += p_vout->output.i_height; \
i_scale_count += p_vout->output.i_height; \
break; \
break; \
...
...
modules/video_chroma/i420_rgb16.c
View file @
41a8349d
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* i420_rgb16.c : YUV to bitmap RGB conversion module for vlc
* i420_rgb16.c : YUV to bitmap RGB conversion module for vlc
*****************************************************************************
*****************************************************************************
* Copyright (C) 2000 VideoLAN
* Copyright (C) 2000 VideoLAN
* $Id: i420_rgb16.c,v 1.
4 2002/11/25 19:29:10 sam
Exp $
* $Id: i420_rgb16.c,v 1.
5 2003/08/29 18:58:05 fenrir
Exp $
*
*
* Authors: Samuel Hocevar <sam@zoy.org>
* Authors: Samuel Hocevar <sam@zoy.org>
*
*
...
@@ -54,10 +54,10 @@ void E_(I420_RGB16_dithering)( vout_thread_t *p_vout, picture_t *p_src,
...
@@ -54,10 +54,10 @@ void E_(I420_RGB16_dithering)( vout_thread_t *p_vout, picture_t *p_src,
picture_t
*
p_dest
)
picture_t
*
p_dest
)
{
{
/* We got this one from the old arguments */
/* We got this one from the old arguments */
u
16
*
p_pic
=
(
u16
*
)
p_dest
->
p
->
p_pixels
;
u
int16_t
*
p_pic
=
(
uint16_t
*
)
p_dest
->
p
->
p_pixels
;
u
8
*
p_y
=
p_src
->
Y_PIXELS
;
u
int8_t
*
p_y
=
p_src
->
Y_PIXELS
;
u
8
*
p_u
=
p_src
->
U_PIXELS
;
u
int8_t
*
p_u
=
p_src
->
U_PIXELS
;
u
8
*
p_v
=
p_src
->
V_PIXELS
;
u
int8_t
*
p_v
=
p_src
->
V_PIXELS
;
vlc_bool_t
b_hscale
;
/* horizontal scaling type */
vlc_bool_t
b_hscale
;
/* horizontal scaling type */
int
i_vscale
;
/* vertical scaling type */
int
i_vscale
;
/* vertical scaling type */
...
@@ -68,15 +68,15 @@ void E_(I420_RGB16_dithering)( vout_thread_t *p_vout, picture_t *p_src,
...
@@ -68,15 +68,15 @@ void E_(I420_RGB16_dithering)( vout_thread_t *p_vout, picture_t *p_src,
int
i_rewind
;
int
i_rewind
;
int
i_scale_count
;
/* scale modulo counter */
int
i_scale_count
;
/* scale modulo counter */
int
i_chroma_width
=
p_vout
->
render
.
i_width
/
2
;
/* chroma width */
int
i_chroma_width
=
p_vout
->
render
.
i_width
/
2
;
/* chroma width */
u
16
*
p_pic_start
;
/* beginning of the current line for copy */
u
int16_t
*
p_pic_start
;
/* beginning of the current line for copy */
int
i_uval
,
i_vval
;
/* U and V samples */
int
i_uval
,
i_vval
;
/* U and V samples */
int
i_red
,
i_green
,
i_blue
;
/* U and V modified samples */
int
i_red
,
i_green
,
i_blue
;
/* U and V modified samples */
u
16
*
p_yuv
=
p_vout
->
chroma
.
p_sys
->
p_rgb16
;
u
int16_t
*
p_yuv
=
p_vout
->
chroma
.
p_sys
->
p_rgb16
;
u
16
*
p_ybase
;
/* Y dependant conversion table */
u
int16_t
*
p_ybase
;
/* Y dependant conversion table */
/* Conversion buffer pointer */
/* Conversion buffer pointer */
u
16
*
p_buffer_start
=
(
u16
*
)
p_vout
->
chroma
.
p_sys
->
p_buffer
;
u
int16_t
*
p_buffer_start
=
(
uint16_t
*
)
p_vout
->
chroma
.
p_sys
->
p_buffer
;
u
16
*
p_buffer
;
u
int16_t
*
p_buffer
;
/* Offset array pointer */
/* Offset array pointer */
int
*
p_offset_start
=
p_vout
->
chroma
.
p_sys
->
p_offset
;
int
*
p_offset_start
=
p_vout
->
chroma
.
p_sys
->
p_offset
;
...
@@ -190,10 +190,10 @@ void E_(I420_RGB16)( vout_thread_t *p_vout, picture_t *p_src,
...
@@ -190,10 +190,10 @@ void E_(I420_RGB16)( vout_thread_t *p_vout, picture_t *p_src,
picture_t
*
p_dest
)
picture_t
*
p_dest
)
{
{
/* We got this one from the old arguments */
/* We got this one from the old arguments */
u
16
*
p_pic
=
(
u16
*
)
p_dest
->
p
->
p_pixels
;
u
int16_t
*
p_pic
=
(
uint16_t
*
)
p_dest
->
p
->
p_pixels
;
u
8
*
p_y
=
p_src
->
Y_PIXELS
;
u
int8_t
*
p_y
=
p_src
->
Y_PIXELS
;
u
8
*
p_u
=
p_src
->
U_PIXELS
;
u
int8_t
*
p_u
=
p_src
->
U_PIXELS
;
u
8
*
p_v
=
p_src
->
V_PIXELS
;
u
int8_t
*
p_v
=
p_src
->
V_PIXELS
;
vlc_bool_t
b_hscale
;
/* horizontal scaling type */
vlc_bool_t
b_hscale
;
/* horizontal scaling type */
unsigned
int
i_vscale
;
/* vertical scaling type */
unsigned
int
i_vscale
;
/* vertical scaling type */
...
@@ -203,17 +203,17 @@ void E_(I420_RGB16)( vout_thread_t *p_vout, picture_t *p_src,
...
@@ -203,17 +203,17 @@ void E_(I420_RGB16)( vout_thread_t *p_vout, picture_t *p_src,
int
i_rewind
;
int
i_rewind
;
int
i_scale_count
;
/* scale modulo counter */
int
i_scale_count
;
/* scale modulo counter */
int
i_chroma_width
=
p_vout
->
render
.
i_width
/
2
;
/* chroma width */
int
i_chroma_width
=
p_vout
->
render
.
i_width
/
2
;
/* chroma width */
u
16
*
p_pic_start
;
/* beginning of the current line for copy */
u
int16_t
*
p_pic_start
;
/* beginning of the current line for copy */
#if defined (MODULE_NAME_IS_i420_rgb)
#if defined (MODULE_NAME_IS_i420_rgb)
int
i_uval
,
i_vval
;
/* U and V samples */
int
i_uval
,
i_vval
;
/* U and V samples */
int
i_red
,
i_green
,
i_blue
;
/* U and V modified samples */
int
i_red
,
i_green
,
i_blue
;
/* U and V modified samples */
u
16
*
p_yuv
=
p_vout
->
chroma
.
p_sys
->
p_rgb16
;
u
int16_t
*
p_yuv
=
p_vout
->
chroma
.
p_sys
->
p_rgb16
;
u
16
*
p_ybase
;
/* Y dependant conversion table */
u
int16_t
*
p_ybase
;
/* Y dependant conversion table */
#endif
#endif
/* Conversion buffer pointer */
/* Conversion buffer pointer */
u
16
*
p_buffer_start
=
(
u16
*
)
p_vout
->
chroma
.
p_sys
->
p_buffer
;
u
int16_t
*
p_buffer_start
=
(
uint16_t
*
)
p_vout
->
chroma
.
p_sys
->
p_buffer
;
u
16
*
p_buffer
;
u
int16_t
*
p_buffer
;
/* Offset array pointer */
/* Offset array pointer */
int
*
p_offset_start
=
p_vout
->
chroma
.
p_sys
->
p_offset
;
int
*
p_offset_start
=
p_vout
->
chroma
.
p_sys
->
p_offset
;
...
@@ -359,10 +359,10 @@ void E_(I420_RGB32)( vout_thread_t *p_vout, picture_t *p_src,
...
@@ -359,10 +359,10 @@ void E_(I420_RGB32)( vout_thread_t *p_vout, picture_t *p_src,
picture_t
*
p_dest
)
picture_t
*
p_dest
)
{
{
/* We got this one from the old arguments */
/* We got this one from the old arguments */
u
32
*
p_pic
=
(
u32
*
)
p_dest
->
p
->
p_pixels
;
u
int32_t
*
p_pic
=
(
uint32_t
*
)
p_dest
->
p
->
p_pixels
;
u
8
*
p_y
=
p_src
->
Y_PIXELS
;
u
int8_t
*
p_y
=
p_src
->
Y_PIXELS
;
u
8
*
p_u
=
p_src
->
U_PIXELS
;
u
int8_t
*
p_u
=
p_src
->
U_PIXELS
;
u
8
*
p_v
=
p_src
->
V_PIXELS
;
u
int8_t
*
p_v
=
p_src
->
V_PIXELS
;
vlc_bool_t
b_hscale
;
/* horizontal scaling type */
vlc_bool_t
b_hscale
;
/* horizontal scaling type */
unsigned
int
i_vscale
;
/* vertical scaling type */
unsigned
int
i_vscale
;
/* vertical scaling type */
...
@@ -372,17 +372,17 @@ void E_(I420_RGB32)( vout_thread_t *p_vout, picture_t *p_src,
...
@@ -372,17 +372,17 @@ void E_(I420_RGB32)( vout_thread_t *p_vout, picture_t *p_src,
int
i_rewind
;
int
i_rewind
;
int
i_scale_count
;
/* scale modulo counter */
int
i_scale_count
;
/* scale modulo counter */
int
i_chroma_width
=
p_vout
->
render
.
i_width
/
2
;
/* chroma width */
int
i_chroma_width
=
p_vout
->
render
.
i_width
/
2
;
/* chroma width */
u
32
*
p_pic_start
;
/* beginning of the current line for copy */
u
int32_t
*
p_pic_start
;
/* beginning of the current line for copy */
#if defined (MODULE_NAME_IS_i420_rgb)
#if defined (MODULE_NAME_IS_i420_rgb)
int
i_uval
,
i_vval
;
/* U and V samples */
int
i_uval
,
i_vval
;
/* U and V samples */
int
i_red
,
i_green
,
i_blue
;
/* U and V modified samples */
int
i_red
,
i_green
,
i_blue
;
/* U and V modified samples */
u
32
*
p_yuv
=
p_vout
->
chroma
.
p_sys
->
p_rgb32
;
u
int32_t
*
p_yuv
=
p_vout
->
chroma
.
p_sys
->
p_rgb32
;
u
32
*
p_ybase
;
/* Y dependant conversion table */
u
int32_t
*
p_ybase
;
/* Y dependant conversion table */
#endif
#endif
/* Conversion buffer pointer */
/* Conversion buffer pointer */
u
32
*
p_buffer_start
=
(
u32
*
)
p_vout
->
chroma
.
p_sys
->
p_buffer
;
u
int32_t
*
p_buffer_start
=
(
uint32_t
*
)
p_vout
->
chroma
.
p_sys
->
p_buffer
;
u
32
*
p_buffer
;
u
int32_t
*
p_buffer
;
/* Offset array pointer */
/* Offset array pointer */
int
*
p_offset_start
=
p_vout
->
chroma
.
p_sys
->
p_offset
;
int
*
p_offset_start
=
p_vout
->
chroma
.
p_sys
->
p_offset
;
...
...
modules/video_chroma/i420_rgb8.c
View file @
41a8349d
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* i420_rgb8.c : YUV to bitmap RGB conversion module for vlc
* i420_rgb8.c : YUV to bitmap RGB conversion module for vlc
*****************************************************************************
*****************************************************************************
* Copyright (C) 2000 VideoLAN
* Copyright (C) 2000 VideoLAN
* $Id: i420_rgb8.c,v 1.
2 2002/11/20 13:37:36 sam
Exp $
* $Id: i420_rgb8.c,v 1.
3 2003/08/29 18:58:05 fenrir
Exp $
*
*
* Authors: Samuel Hocevar <sam@zoy.org>
* Authors: Samuel Hocevar <sam@zoy.org>
*
*
...
@@ -41,10 +41,10 @@ static void SetOffset( int, int, int, int, vlc_bool_t *, int *, int * );
...
@@ -41,10 +41,10 @@ static void SetOffset( int, int, int, int, vlc_bool_t *, int *, int * );
void
E_
(
I420_RGB8
)(
vout_thread_t
*
p_vout
,
picture_t
*
p_src
,
picture_t
*
p_dest
)
void
E_
(
I420_RGB8
)(
vout_thread_t
*
p_vout
,
picture_t
*
p_src
,
picture_t
*
p_dest
)
{
{
/* We got this one from the old arguments */
/* We got this one from the old arguments */
u
8
*
p_pic
=
(
u8
*
)
p_dest
->
p
->
p_pixels
;
u
int8_t
*
p_pic
=
(
uint8_t
*
)
p_dest
->
p
->
p_pixels
;
u
8
*
p_y
=
p_src
->
Y_PIXELS
;
u
int8_t
*
p_y
=
p_src
->
Y_PIXELS
;
u
8
*
p_u
=
p_src
->
U_PIXELS
;
u
int8_t
*
p_u
=
p_src
->
U_PIXELS
;
u
8
*
p_v
=
p_src
->
V_PIXELS
;
u
int8_t
*
p_v
=
p_src
->
V_PIXELS
;
vlc_bool_t
b_hscale
;
/* horizontal scaling type */
vlc_bool_t
b_hscale
;
/* horizontal scaling type */
unsigned
int
i_vscale
;
/* vertical scaling type */
unsigned
int
i_vscale
;
/* vertical scaling type */
...
@@ -55,7 +55,7 @@ void E_(I420_RGB8)( vout_thread_t *p_vout, picture_t *p_src, picture_t *p_dest )
...
@@ -55,7 +55,7 @@ void E_(I420_RGB8)( vout_thread_t *p_vout, picture_t *p_src, picture_t *p_dest )
unsigned
int
i_chroma_width
=
p_vout
->
render
.
i_width
/
2
;
/* chroma width */
unsigned
int
i_chroma_width
=
p_vout
->
render
.
i_width
/
2
;
/* chroma width */
/* Lookup table */
/* Lookup table */
u
8
*
p_lookup
=
p_vout
->
chroma
.
p_sys
->
p_base
;
u
int8_t
*
p_lookup
=
p_vout
->
chroma
.
p_sys
->
p_base
;
/* Offset array pointer */
/* Offset array pointer */
int
*
p_offset_start
=
p_vout
->
chroma
.
p_sys
->
p_offset
;
int
*
p_offset_start
=
p_vout
->
chroma
.
p_sys
->
p_offset
;
...
...
modules/video_chroma/i420_rgb_mmx.h
View file @
41a8349d
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* transforms_yuvmmx.h: MMX YUV transformation assembly
* transforms_yuvmmx.h: MMX YUV transformation assembly
*****************************************************************************
*****************************************************************************
* Copyright (C) 1999, 2000 VideoLAN
* Copyright (C) 1999, 2000 VideoLAN
* $Id: i420_rgb_mmx.h,v 1.
2 2002/08/08 00:35:11 sam
Exp $
* $Id: i420_rgb_mmx.h,v 1.
3 2003/08/29 18:58:05 fenrir
Exp $
*
*
* Authors: Olie Lho <ollie@sis.com.tw>
* Authors: Olie Lho <ollie@sis.com.tw>
* Gal Hendryckx <jimmy@via.ecp.fr>
* Gal Hendryckx <jimmy@via.ecp.fr>
...
@@ -26,19 +26,19 @@
...
@@ -26,19 +26,19 @@
/* hope these constant values are cache line aligned */
/* hope these constant values are cache line aligned */
#define UNUSED_U64(foo) \
#define UNUSED_U64(foo) \
static const u
64
foo __asm__ (#foo) __attribute__((unused))
static const u
int64_t
foo __asm__ (#foo) __attribute__((unused))
UNUSED_U64
(
mmx_80w
)
=
0x0080008000800080
;
UNUSED_U64
(
mmx_80w
)
=
0x0080008000800080
ULL
;
UNUSED_U64
(
mmx_10w
)
=
0x1010101010101010
;
UNUSED_U64
(
mmx_10w
)
=
0x1010101010101010
ULL
;
UNUSED_U64
(
mmx_00ffw
)
=
0x00ff00ff00ff00ff
;
UNUSED_U64
(
mmx_00ffw
)
=
0x00ff00ff00ff00ff
ULL
;
UNUSED_U64
(
mmx_Y_coeff
)
=
0x253f253f253f253f
;
UNUSED_U64
(
mmx_Y_coeff
)
=
0x253f253f253f253f
ULL
;
UNUSED_U64
(
mmx_U_green
)
=
0xf37df37df37df37d
;
UNUSED_U64
(
mmx_U_green
)
=
0xf37df37df37df37d
ULL
;
UNUSED_U64
(
mmx_U_blue
)
=
0x4093409340934093
;
UNUSED_U64
(
mmx_U_blue
)
=
0x4093409340934093
ULL
;
UNUSED_U64
(
mmx_V_red
)
=
0x3312331233123312
;
UNUSED_U64
(
mmx_V_red
)
=
0x3312331233123312
ULL
;
UNUSED_U64
(
mmx_V_green
)
=
0xe5fce5fce5fce5fc
;
UNUSED_U64
(
mmx_V_green
)
=
0xe5fce5fce5fce5fc
ULL
;
UNUSED_U64
(
mmx_mask_f8
)
=
0xf8f8f8f8f8f8f8f8
;
UNUSED_U64
(
mmx_mask_f8
)
=
0xf8f8f8f8f8f8f8f8
ULL
;
UNUSED_U64
(
mmx_mask_fc
)
=
0xfcfcfcfcfcfcfcfc
;
UNUSED_U64
(
mmx_mask_fc
)
=
0xfcfcfcfcfcfcfcfc
ULL
;
#undef UNUSED_U64
#undef UNUSED_U64
#define MMX_INIT_16 " \n\
#define MMX_INIT_16 " \n\
...
...
modules/video_chroma/i420_ymga.c
View file @
41a8349d
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* i420_ymga.c : YUV to YUV conversion module for vlc
* i420_ymga.c : YUV to YUV conversion module for vlc
*****************************************************************************
*****************************************************************************
* Copyright (C) 2000, 2001 VideoLAN
* Copyright (C) 2000, 2001 VideoLAN
* $Id: i420_ymga.c,v 1.
1 2002/08/04 17:23:43 sam
Exp $
* $Id: i420_ymga.c,v 1.
2 2003/08/29 18:58:05 fenrir
Exp $
*
*
* Authors: Samuel Hocevar <sam@zoy.org>
* Authors: Samuel Hocevar <sam@zoy.org>
*
*
...
@@ -100,9 +100,9 @@ static int Activate( vlc_object_t *p_this )
...
@@ -100,9 +100,9 @@ static int Activate( vlc_object_t *p_this )
static
void
I420_YMGA
(
vout_thread_t
*
p_vout
,
picture_t
*
p_source
,
static
void
I420_YMGA
(
vout_thread_t
*
p_vout
,
picture_t
*
p_source
,
picture_t
*
p_dest
)
picture_t
*
p_dest
)
{
{
u
8
*
p_uv
=
p_dest
->
U_PIXELS
;
u
int8_t
*
p_uv
=
p_dest
->
U_PIXELS
;
u
8
*
p_u
=
p_source
->
U_PIXELS
;
u
int8_t
*
p_u
=
p_source
->
U_PIXELS
;
u
8
*
p_v
=
p_source
->
V_PIXELS
;
u
int8_t
*
p_v
=
p_source
->
V_PIXELS
;
int
i_x
;
int
i_x
;
...
...
modules/video_chroma/i420_yuy2.c
View file @
41a8349d
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* i420_yuy2.c : YUV to YUV conversion module for vlc
* i420_yuy2.c : YUV to YUV conversion module for vlc
*****************************************************************************
*****************************************************************************
* Copyright (C) 2000, 2001 VideoLAN
* Copyright (C) 2000, 2001 VideoLAN
* $Id: i420_yuy2.c,v 1.
2 2002/11/20 13:37:36 sam
Exp $
* $Id: i420_yuy2.c,v 1.
3 2003/08/29 18:58:05 fenrir
Exp $
*
*
* Authors: Samuel Hocevar <sam@zoy.org>
* Authors: Samuel Hocevar <sam@zoy.org>
*
*
...
@@ -71,8 +71,8 @@ vlc_module_begin();
...
@@ -71,8 +71,8 @@ vlc_module_begin();
set_capability
(
"chroma"
,
100
);
set_capability
(
"chroma"
,
100
);
add_requirement
(
MMX
);
add_requirement
(
MMX
);
/* Initialize MMX-specific constants */
/* Initialize MMX-specific constants */
i_00ffw
=
0x00ff00ff00ff00ff
;
i_00ffw
=
0x00ff00ff00ff00ff
ULL
;
i_80w
=
0x0000000080808080
;
i_80w
=
0x0000000080808080
ULL
;
#endif
#endif
set_callbacks
(
Activate
,
NULL
);
set_callbacks
(
Activate
,
NULL
);
vlc_module_end
();
vlc_module_end
();
...
@@ -147,10 +147,10 @@ static int Activate( vlc_object_t *p_this )
...
@@ -147,10 +147,10 @@ static int Activate( vlc_object_t *p_this )
static
void
I420_YUY2
(
vout_thread_t
*
p_vout
,
picture_t
*
p_source
,
static
void
I420_YUY2
(
vout_thread_t
*
p_vout
,
picture_t
*
p_source
,
picture_t
*
p_dest
)
picture_t
*
p_dest
)
{
{
u
8
*
p_line1
,
*
p_line2
=
p_dest
->
p
->
p_pixels
;
u
int8_t
*
p_line1
,
*
p_line2
=
p_dest
->
p
->
p_pixels
;
u
8
*
p_y1
,
*
p_y2
=
p_source
->
Y_PIXELS
;
u
int8_t
*
p_y1
,
*
p_y2
=
p_source
->
Y_PIXELS
;
u
8
*
p_u
=
p_source
->
U_PIXELS
;
u
int8_t
*
p_u
=
p_source
->
U_PIXELS
;
u
8
*
p_v
=
p_source
->
V_PIXELS
;
u
int8_t
*
p_v
=
p_source
->
V_PIXELS
;
int
i_x
,
i_y
;
int
i_x
,
i_y
;
...
@@ -192,10 +192,10 @@ static void I420_YUY2( vout_thread_t *p_vout, picture_t *p_source,
...
@@ -192,10 +192,10 @@ static void I420_YUY2( vout_thread_t *p_vout, picture_t *p_source,
static
void
I420_YVYU
(
vout_thread_t
*
p_vout
,
picture_t
*
p_source
,
static
void
I420_YVYU
(
vout_thread_t
*
p_vout
,
picture_t
*
p_source
,
picture_t
*
p_dest
)
picture_t
*
p_dest
)
{
{
u
8
*
p_line1
,
*
p_line2
=
p_dest
->
p
->
p_pixels
;
u
int8_t
*
p_line1
,
*
p_line2
=
p_dest
->
p
->
p_pixels
;
u
8
*
p_y1
,
*
p_y2
=
p_source
->
Y_PIXELS
;
u
int8_t
*
p_y1
,
*
p_y2
=
p_source
->
Y_PIXELS
;
u
8
*
p_u
=
p_source
->
U_PIXELS
;
u
int8_t
*
p_u
=
p_source
->
U_PIXELS
;
u
8
*
p_v
=
p_source
->
V_PIXELS
;
u
int8_t
*
p_v
=
p_source
->
V_PIXELS
;
int
i_x
,
i_y
;
int
i_x
,
i_y
;
...
@@ -237,10 +237,10 @@ static void I420_YVYU( vout_thread_t *p_vout, picture_t *p_source,
...
@@ -237,10 +237,10 @@ static void I420_YVYU( vout_thread_t *p_vout, picture_t *p_source,
static
void
I420_UYVY
(
vout_thread_t
*
p_vout
,
picture_t
*
p_source
,
static
void
I420_UYVY
(
vout_thread_t
*
p_vout
,
picture_t
*
p_source
,
picture_t
*
p_dest
)
picture_t
*
p_dest
)
{
{
u
8
*
p_line1
,
*
p_line2
=
p_dest
->
p
->
p_pixels
;
u
int8_t
*
p_line1
,
*
p_line2
=
p_dest
->
p
->
p_pixels
;
u
8
*
p_y1
,
*
p_y2
=
p_source
->
Y_PIXELS
;
u
int8_t
*
p_y1
,
*
p_y2
=
p_source
->
Y_PIXELS
;
u
8
*
p_u
=
p_source
->
U_PIXELS
;
u
int8_t
*
p_u
=
p_source
->
U_PIXELS
;
u
8
*
p_v
=
p_source
->
V_PIXELS
;
u
int8_t
*
p_v
=
p_source
->
V_PIXELS
;
int
i_x
,
i_y
;
int
i_x
,
i_y
;
...
@@ -292,12 +292,14 @@ static void I420_IUYV( vout_thread_t *p_vout, picture_t *p_source,
...
@@ -292,12 +292,14 @@ static void I420_IUYV( vout_thread_t *p_vout, picture_t *p_source,
static
void
I420_cyuv
(
vout_thread_t
*
p_vout
,
picture_t
*
p_source
,
static
void
I420_cyuv
(
vout_thread_t
*
p_vout
,
picture_t
*
p_source
,
picture_t
*
p_dest
)
picture_t
*
p_dest
)
{
{
u8
*
p_line1
=
p_dest
->
p
->
p_pixels
+
p_dest
->
p
->
i_lines
*
p_dest
->
p
->
i_pitch
uint8_t
*
p_line1
=
p_dest
->
p
->
p_pixels
+
p_dest
->
p
->
i_lines
*
p_dest
->
p
->
i_pitch
+
p_dest
->
p
->
i_pitch
;
+
p_dest
->
p
->
i_pitch
;
u8
*
p_line2
=
p_dest
->
p
->
p_pixels
+
p_dest
->
p
->
i_lines
*
p_dest
->
p
->
i_pitch
;
uint8_t
*
p_line2
=
p_dest
->
p
->
p_pixels
+
u8
*
p_y1
,
*
p_y2
=
p_source
->
Y_PIXELS
;
p_dest
->
p
->
i_lines
*
p_dest
->
p
->
i_pitch
;
u8
*
p_u
=
p_source
->
U_PIXELS
;
uint8_t
*
p_y1
,
*
p_y2
=
p_source
->
Y_PIXELS
;
u8
*
p_v
=
p_source
->
V_PIXELS
;
uint8_t
*
p_u
=
p_source
->
U_PIXELS
;
uint8_t
*
p_v
=
p_source
->
V_PIXELS
;
int
i_x
,
i_y
;
int
i_x
,
i_y
;
...
@@ -340,10 +342,10 @@ static void I420_cyuv( vout_thread_t *p_vout, picture_t *p_source,
...
@@ -340,10 +342,10 @@ static void I420_cyuv( vout_thread_t *p_vout, picture_t *p_source,
static
void
I420_Y211
(
vout_thread_t
*
p_vout
,
picture_t
*
p_source
,
static
void
I420_Y211
(
vout_thread_t
*
p_vout
,
picture_t
*
p_source
,
picture_t
*
p_dest
)
picture_t
*
p_dest
)
{
{
u
8
*
p_line1
,
*
p_line2
=
p_dest
->
p
->
p_pixels
;
u
int8_t
*
p_line1
,
*
p_line2
=
p_dest
->
p
->
p_pixels
;
u
8
*
p_y1
,
*
p_y2
=
p_source
->
Y_PIXELS
;
u
int8_t
*
p_y1
,
*
p_y2
=
p_source
->
Y_PIXELS
;
u
8
*
p_u
=
p_source
->
U_PIXELS
;
u
int8_t
*
p_u
=
p_source
->
U_PIXELS
;
u
8
*
p_v
=
p_source
->
V_PIXELS
;
u
int8_t
*
p_v
=
p_source
->
V_PIXELS
;
int
i_x
,
i_y
;
int
i_x
,
i_y
;
...
...
modules/video_chroma/i420_yuy2.h
View file @
41a8349d
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* i420_yuy2.h : YUV to YUV conversion module for vlc
* i420_yuy2.h : YUV to YUV conversion module for vlc
*****************************************************************************
*****************************************************************************
* Copyright (C) 2000, 2001 VideoLAN
* Copyright (C) 2000, 2001 VideoLAN
* $Id: i420_yuy2.h,v 1.
1 2002/08/04 17:23:43 sam
Exp $
* $Id: i420_yuy2.h,v 1.
2 2003/08/29 18:58:05 fenrir
Exp $
*
*
* Authors: Samuel Hocevar <sam@zoy.org>
* Authors: Samuel Hocevar <sam@zoy.org>
*
*
...
@@ -132,12 +132,12 @@ movq %%mm1, (%1) # Store YUYV \n\
...
@@ -132,12 +132,12 @@ movq %%mm1, (%1) # Store YUYV \n\
*(p_line1)++ = *(p_y1)++; *(p_line2)++ = *(p_y2)++; \
*(p_line1)++ = *(p_y1)++; *(p_line2)++ = *(p_y2)++; \
#define C_YUV420_Y211( ) \
#define C_YUV420_Y211( ) \
*(p_line1)++ = *(p_y1); ((u
16*)p_y1)++;
\
*(p_line1)++ = *(p_y1); ((u
int16_t*)p_y1)++;
\
*(p_line2)++ = *(p_y2); ((u
16*)p_y2)++;
\
*(p_line2)++ = *(p_y2); ((u
int16_t*)p_y2)++;
\
*(p_line1)++ = *(p_line2)++ = *(p_u) - 0x80; ((u
16*)p_u)++;
\
*(p_line1)++ = *(p_line2)++ = *(p_u) - 0x80; ((u
int16_t*)p_u)++;
\
*(p_line1)++ = *(p_y1); ((u
16*)p_y1)++;
\
*(p_line1)++ = *(p_y1); ((u
int16_t*)p_y1)++;
\
*(p_line2)++ = *(p_y2); ((u
16*)p_y2)++;
\
*(p_line2)++ = *(p_y2); ((u
int16_t*)p_y2)++;
\
*(p_line1)++ = *(p_line2)++ = *(p_v) - 0x80; ((u
16*)p_v)++;
\
*(p_line1)++ = *(p_line2)++ = *(p_v) - 0x80; ((u
int16_t*)p_v)++;
\
#endif
#endif
modules/video_chroma/i422_yuy2.c
View file @
41a8349d
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* i422_yuy2.c : YUV to YUV conversion module for vlc
* i422_yuy2.c : YUV to YUV conversion module for vlc
*****************************************************************************
*****************************************************************************
* Copyright (C) 2000, 2001 VideoLAN
* Copyright (C) 2000, 2001 VideoLAN
* $Id: i422_yuy2.c,v 1.
2 2002/11/20 13:37:36 sam
Exp $
* $Id: i422_yuy2.c,v 1.
3 2003/08/29 18:58:05 fenrir
Exp $
*
*
* Authors: Samuel Hocevar <sam@zoy.org>
* Authors: Samuel Hocevar <sam@zoy.org>
*
*
...
@@ -136,10 +136,10 @@ static int Activate( vlc_object_t *p_this )
...
@@ -136,10 +136,10 @@ static int Activate( vlc_object_t *p_this )
static
void
I422_YUY2
(
vout_thread_t
*
p_vout
,
picture_t
*
p_source
,
static
void
I422_YUY2
(
vout_thread_t
*
p_vout
,
picture_t
*
p_source
,
picture_t
*
p_dest
)
picture_t
*
p_dest
)
{
{
u
8
*
p_line
=
p_dest
->
p
->
p_pixels
;
u
int8_t
*
p_line
=
p_dest
->
p
->
p_pixels
;
u
8
*
p_y
=
p_source
->
Y_PIXELS
;
u
int8_t
*
p_y
=
p_source
->
Y_PIXELS
;
u
8
*
p_u
=
p_source
->
U_PIXELS
;
u
int8_t
*
p_u
=
p_source
->
U_PIXELS
;
u
8
*
p_v
=
p_source
->
V_PIXELS
;
u
int8_t
*
p_v
=
p_source
->
V_PIXELS
;
int
i_x
,
i_y
;
int
i_x
,
i_y
;
...
@@ -173,10 +173,10 @@ static void I422_YUY2( vout_thread_t *p_vout, picture_t *p_source,
...
@@ -173,10 +173,10 @@ static void I422_YUY2( vout_thread_t *p_vout, picture_t *p_source,
static
void
I422_YVYU
(
vout_thread_t
*
p_vout
,
picture_t
*
p_source
,
static
void
I422_YVYU
(
vout_thread_t
*
p_vout
,
picture_t
*
p_source
,
picture_t
*
p_dest
)
picture_t
*
p_dest
)
{
{
u
8
*
p_line
=
p_dest
->
p
->
p_pixels
;
u
int8_t
*
p_line
=
p_dest
->
p
->
p_pixels
;
u
8
*
p_y
=
p_source
->
Y_PIXELS
;
u
int8_t
*
p_y
=
p_source
->
Y_PIXELS
;
u
8
*
p_u
=
p_source
->
U_PIXELS
;
u
int8_t
*
p_u
=
p_source
->
U_PIXELS
;
u
8
*
p_v
=
p_source
->
V_PIXELS
;
u
int8_t
*
p_v
=
p_source
->
V_PIXELS
;
int
i_x
,
i_y
;
int
i_x
,
i_y
;
...
@@ -210,10 +210,10 @@ static void I422_YVYU( vout_thread_t *p_vout, picture_t *p_source,
...
@@ -210,10 +210,10 @@ static void I422_YVYU( vout_thread_t *p_vout, picture_t *p_source,
static
void
I422_UYVY
(
vout_thread_t
*
p_vout
,
picture_t
*
p_source
,
static
void
I422_UYVY
(
vout_thread_t
*
p_vout
,
picture_t
*
p_source
,
picture_t
*
p_dest
)
picture_t
*
p_dest
)
{
{
u
8
*
p_line
=
p_dest
->
p
->
p_pixels
;
u
int8_t
*
p_line
=
p_dest
->
p
->
p_pixels
;
u
8
*
p_y
=
p_source
->
Y_PIXELS
;
u
int8_t
*
p_y
=
p_source
->
Y_PIXELS
;
u
8
*
p_u
=
p_source
->
U_PIXELS
;
u
int8_t
*
p_u
=
p_source
->
U_PIXELS
;
u
8
*
p_v
=
p_source
->
V_PIXELS
;
u
int8_t
*
p_v
=
p_source
->
V_PIXELS
;
int
i_x
,
i_y
;
int
i_x
,
i_y
;
...
@@ -257,10 +257,10 @@ static void I422_IUYV( vout_thread_t *p_vout, picture_t *p_source,
...
@@ -257,10 +257,10 @@ static void I422_IUYV( vout_thread_t *p_vout, picture_t *p_source,
static
void
I422_cyuv
(
vout_thread_t
*
p_vout
,
picture_t
*
p_source
,
static
void
I422_cyuv
(
vout_thread_t
*
p_vout
,
picture_t
*
p_source
,
picture_t
*
p_dest
)
picture_t
*
p_dest
)
{
{
u
8
*
p_line
=
p_dest
->
p
->
p_pixels
+
p_dest
->
p
->
i_lines
*
p_dest
->
p
->
i_pitch
;
u
int8_t
*
p_line
=
p_dest
->
p
->
p_pixels
+
p_dest
->
p
->
i_lines
*
p_dest
->
p
->
i_pitch
;
u
8
*
p_y
=
p_source
->
Y_PIXELS
;
u
int8_t
*
p_y
=
p_source
->
Y_PIXELS
;
u
8
*
p_u
=
p_source
->
U_PIXELS
;
u
int8_t
*
p_u
=
p_source
->
U_PIXELS
;
u
8
*
p_v
=
p_source
->
V_PIXELS
;
u
int8_t
*
p_v
=
p_source
->
V_PIXELS
;
int
i_x
,
i_y
;
int
i_x
,
i_y
;
...
@@ -297,10 +297,10 @@ static void I422_cyuv( vout_thread_t *p_vout, picture_t *p_source,
...
@@ -297,10 +297,10 @@ static void I422_cyuv( vout_thread_t *p_vout, picture_t *p_source,
static
void
I422_Y211
(
vout_thread_t
*
p_vout
,
picture_t
*
p_source
,
static
void
I422_Y211
(
vout_thread_t
*
p_vout
,
picture_t
*
p_source
,
picture_t
*
p_dest
)
picture_t
*
p_dest
)
{
{
u
8
*
p_line
=
p_dest
->
p
->
p_pixels
+
p_dest
->
p
->
i_lines
*
p_dest
->
p
->
i_pitch
;
u
int8_t
*
p_line
=
p_dest
->
p
->
p_pixels
+
p_dest
->
p
->
i_lines
*
p_dest
->
p
->
i_pitch
;
u
8
*
p_y
=
p_source
->
Y_PIXELS
;
u
int8_t
*
p_y
=
p_source
->
Y_PIXELS
;
u
8
*
p_u
=
p_source
->
U_PIXELS
;
u
int8_t
*
p_u
=
p_source
->
U_PIXELS
;
u
8
*
p_v
=
p_source
->
V_PIXELS
;
u
int8_t
*
p_v
=
p_source
->
V_PIXELS
;
int
i_x
,
i_y
;
int
i_x
,
i_y
;
...
...
modules/video_chroma/i422_yuy2.h
View file @
41a8349d
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* i422_yuy2.h : YUV to YUV conversion module for vlc
* i422_yuy2.h : YUV to YUV conversion module for vlc
*****************************************************************************
*****************************************************************************
* Copyright (C) 2002 VideoLAN
* Copyright (C) 2002 VideoLAN
* $Id: i422_yuy2.h,v 1.
1 2002/08/04 17:23:43 sam
Exp $
* $Id: i422_yuy2.h,v 1.
2 2003/08/29 18:58:05 fenrir
Exp $
*
*
* Authors: Samuel Hocevar <sam@zoy.org>
* Authors: Samuel Hocevar <sam@zoy.org>
*
*
...
@@ -83,10 +83,10 @@ movq %%mm1, 8(%0) # Store high UYVY \n\
...
@@ -83,10 +83,10 @@ movq %%mm1, 8(%0) # Store high UYVY \n\
*(p_line)++ = *(p_y)++; \
*(p_line)++ = *(p_y)++; \
#define C_YUV422_Y211( p_line, p_y, p_u, p_v ) \
#define C_YUV422_Y211( p_line, p_y, p_u, p_v ) \
*(p_line)++ = *(p_y); ((u
16*)p_y)++;
\
*(p_line)++ = *(p_y); ((u
int16_t*)p_y)++;
\
*(p_line)++ = *(p_u) - 0x80; ((u
16*)p_u)++;
\
*(p_line)++ = *(p_u) - 0x80; ((u
int16_t*)p_u)++;
\
*(p_line)++ = *(p_y); ((u
16*)p_y)++;
\
*(p_line)++ = *(p_y); ((u
int16_t*)p_y)++;
\
*(p_line)++ = *(p_v) - 0x80; ((u
16*)p_v)++;
\
*(p_line)++ = *(p_v) - 0x80; ((u
int16_t*)p_v)++;
\
#endif
#endif
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment