Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
28fb55bc
Commit
28fb55bc
authored
Dec 04, 2003
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/video_output/wingdi.c: fixed gdi output for 24 and 32 bits color depth.
parent
0d90e523
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
6 deletions
+16
-6
modules/video_output/wingdi.c
modules/video_output/wingdi.c
+16
-6
No files found.
modules/video_output/wingdi.c
View file @
28fb55bc
...
...
@@ -2,7 +2,7 @@
* wingdi.c : Win32 / WinCE GDI video output plugin for vlc
*****************************************************************************
* Copyright (C) 2002 VideoLAN
* $Id: wingdi.c,v 1.
7 2003/10/25 00:42:31 sam
Exp $
* $Id: wingdi.c,v 1.
8 2003/12/04 14:48:24 gbazin
Exp $
*
* Authors: Samuel Hocevar <sam@zoy.org>
*
...
...
@@ -155,6 +155,12 @@ static int Init( vout_thread_t *p_vout )
p_vout
->
output
.
pf_setpalette
=
SetPalette
;
break
;
case
24
:
p_vout
->
output
.
i_chroma
=
VLC_FOURCC
(
'R'
,
'V'
,
'2'
,
'4'
);
p_vout
->
output
.
i_rmask
=
0x00ff0000
;
p_vout
->
output
.
i_gmask
=
0x0000ff00
;
p_vout
->
output
.
i_bmask
=
0x000000ff
;
break
;
case
32
:
p_vout
->
output
.
i_chroma
=
VLC_FOURCC
(
'R'
,
'V'
,
'3'
,
'2'
);
p_vout
->
output
.
i_rmask
=
0x00ff0000
;
p_vout
->
output
.
i_gmask
=
0x0000ff00
;
...
...
@@ -460,20 +466,25 @@ static void InitBuffers( vout_thread_t *p_vout )
memset
(
p_info
,
0
,
sizeof
(
BITMAPINFO
)
+
3
*
sizeof
(
RGBQUAD
)
);
p_header
->
biSize
=
sizeof
(
BITMAPINFOHEADER
);
p_header
->
biSizeImage
=
0
;
p_header
->
biPlanes
=
1
;
switch
(
p_vout
->
p_sys
->
i_depth
)
{
case
8
:
p_header
->
biBitCount
=
8
;
p_header
->
biSizeImage
=
i_pixels
;
p_header
->
biCompression
=
BI_RGB
;
/* FIXME: we need a palette here */
break
;
case
24
:
p_header
->
biBitCount
=
24
;
p_header
->
biCompression
=
BI_RGB
;
((
DWORD
*
)
p_info
->
bmiColors
)[
0
]
=
0x00ff0000
;
((
DWORD
*
)
p_info
->
bmiColors
)[
1
]
=
0x0000ff00
;
((
DWORD
*
)
p_info
->
bmiColors
)[
2
]
=
0x000000ff
;
break
;
case
32
:
p_header
->
biBitCount
=
32
;
p_header
->
biSizeImage
=
i_pixels
*
4
;
p_header
->
biCompression
=
BI_BITFIELDS
;
p_header
->
biCompression
=
BI_RGB
;
((
DWORD
*
)
p_info
->
bmiColors
)[
0
]
=
0x00ff0000
;
((
DWORD
*
)
p_info
->
bmiColors
)[
1
]
=
0x0000ff00
;
((
DWORD
*
)
p_info
->
bmiColors
)[
2
]
=
0x000000ff
;
...
...
@@ -481,8 +492,7 @@ static void InitBuffers( vout_thread_t *p_vout )
case
16
:
default:
p_header
->
biBitCount
=
16
;
p_header
->
biSizeImage
=
i_pixels
*
2
;
p_header
->
biCompression
=
BI_BITFIELDS
;
p_header
->
biCompression
=
BI_RGB
;
((
DWORD
*
)
p_info
->
bmiColors
)[
0
]
=
0x00007c00
;
((
DWORD
*
)
p_info
->
bmiColors
)[
1
]
=
0x000003e0
;
((
DWORD
*
)
p_info
->
bmiColors
)[
2
]
=
0x0000001f
;
...
...
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