Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
8b6f1205
Commit
8b6f1205
authored
Jul 26, 2004
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/access/screen.c: force RV24 capture on win32 for now (otherwise colors are screwed up).
parent
e7a3faac
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
modules/access/screen.c
modules/access/screen.c
+9
-7
No files found.
modules/access/screen.c
View file @
8b6f1205
...
...
@@ -106,7 +106,6 @@ static int Open( vlc_object_t *p_this )
p_demux
->
p_sys
=
p_sys
=
malloc
(
sizeof
(
demux_sys_t
)
);
memset
(
p_sys
,
0
,
sizeof
(
demux_sys_t
)
);
if
(
InitCapture
(
p_demux
)
!=
VLC_SUCCESS
)
{
free
(
p_sys
);
...
...
@@ -178,7 +177,7 @@ static int Demux( demux_t *p_demux )
static
int
InitCapture
(
demux_t
*
p_demux
)
{
demux_sys_t
*
p_sys
=
p_demux
->
p_sys
;
int
i_chroma
;
int
i_chroma
,
i_bits_per_pixel
;
BITMAPINFO
bmi
;
...
...
@@ -198,9 +197,8 @@ static int InitCapture( demux_t *p_demux )
return
VLC_EGENERIC
;
}
p_sys
->
fmt
.
video
.
i_bits_per_pixel
=
GetDeviceCaps
(
p_sys
->
hdc_src
,
BITSPIXEL
);
switch
(
p_sys
->
fmt
.
video
.
i_bits_per_pixel
)
i_bits_per_pixel
=
GetDeviceCaps
(
p_sys
->
hdc_src
,
BITSPIXEL
);
switch
(
i_bits_per_pixel
)
{
case
8
:
/* FIXME: set the palette */
i_chroma
=
VLC_FOURCC
(
'R'
,
'G'
,
'B'
,
'2'
);
break
;
...
...
@@ -220,11 +218,15 @@ static int InitCapture( demux_t *p_demux )
return
VLC_EGENERIC
;
}
#if 1
/* For now we force RV24 because of chroma inversion in the other cases*/
i_chroma
=
VLC_FOURCC
(
'R'
,
'V'
,
'2'
,
'4'
);
i_bits_per_pixel
=
24
;
#endif
es_format_Init
(
&
p_sys
->
fmt
,
VIDEO_ES
,
i_chroma
);
p_sys
->
fmt
.
video
.
i_width
=
GetDeviceCaps
(
p_sys
->
hdc_src
,
HORZRES
);
p_sys
->
fmt
.
video
.
i_height
=
GetDeviceCaps
(
p_sys
->
hdc_src
,
VERTRES
);
p_sys
->
fmt
.
video
.
i_bits_per_pixel
=
GetDeviceCaps
(
p_sys
->
hdc_src
,
BITSPIXEL
);
p_sys
->
fmt
.
video
.
i_bits_per_pixel
=
i_bits_per_pixel
;
/* Create the bitmap info header */
bmi
.
bmiHeader
.
biSize
=
sizeof
(
BITMAPINFOHEADER
);
...
...
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