Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
c51a81d4
Commit
c51a81d4
authored
May 19, 2004
by
damienf
Browse files
- added support for UYVY chroma for directx direct vout render
parent
beb4664f
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/video_output/directx/directx.c
View file @
c51a81d4
...
...
@@ -1624,6 +1624,7 @@ static int UpdatePictureStruct( vout_thread_t *p_vout, picture_t *p_pic,
p_pic
->
i_planes
=
3
;
break
;
case
VLC_FOURCC
(
'U'
,
'Y'
,
'V'
,
'Y'
):
case
VLC_FOURCC
(
'Y'
,
'U'
,
'Y'
,
'2'
):
p_pic
->
p
->
p_pixels
=
p_pic
->
p_sys
->
ddsd
.
lpSurface
;
...
...
src/video_output/vout_pictures.c
View file @
c51a81d4
...
...
@@ -2,7 +2,7 @@
* vout_pictures.c : picture management functions
*****************************************************************************
* Copyright (C) 2000-2004 VideoLAN
* $Id
: vout_pictures.c,v 1.47 2004/02/27 14:01:35 fenrir Exp
$
* $Id$
*
* Authors: Vincent Seguin <seguin@via.ecp.fr>
* Samuel Hocevar <sam@zoy.org>
...
...
@@ -518,6 +518,7 @@ void vout_InitFormat( video_frame_format_t *p_format, vlc_fourcc_t i_chroma,
break
;
case
FOURCC_I422
:
case
FOURCC_YUY2
:
case
FOURCC_UYVY
:
p_format
->
i_bits_per_pixel
=
16
;
p_format
->
i_bits_per_pixel
=
16
;
break
;
...
...
@@ -659,6 +660,7 @@ void vout_InitPicture( vlc_object_t *p_this, picture_t *p_pic,
p_pic
->
i_planes
=
1
;
break
;
case
FOURCC_UYVY
:
case
FOURCC_YUY2
:
p_pic
->
p
->
i_lines
=
i_height
;
p_pic
->
p
->
i_pitch
=
i_width
*
2
;
...
...
Write
Preview
Supports
Markdown
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