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
6227263f
Commit
6227263f
authored
Aug 30, 2004
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/access/v4l/v4l.c: in v4l, RGB24 really is BGR24. Changed aspect ratio to 4:3.
parent
8ca6f29c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
modules/access/v4l/v4l.c
modules/access/v4l/v4l.c
+10
-1
No files found.
modules/access/v4l/v4l.c
View file @
6227263f
...
...
@@ -351,6 +351,16 @@ static int Open( vlc_object_t *p_this )
es_format_Init
(
&
fmt
,
VIDEO_ES
,
p_sys
->
i_fourcc
);
fmt
.
video
.
i_width
=
p_sys
->
i_width
;
fmt
.
video
.
i_height
=
p_sys
->
i_height
;
fmt
.
video
.
i_aspect
=
4
*
VOUT_ASPECT_FACTOR
/
3
;
/* Setup rgb mask for RGB formats */
if
(
p_sys
->
i_fourcc
==
VLC_FOURCC
(
'R'
,
'V'
,
'2'
,
'4'
)
)
{
/* This is in BGR format */
fmt
.
video
.
i_bmask
=
0x00ff0000
;
fmt
.
video
.
i_gmask
=
0x0000ff00
;
fmt
.
video
.
i_rmask
=
0x000000ff
;
}
msg_Dbg
(
p_demux
,
"added new video es %4.4s %dx%d"
,
(
char
*
)
&
fmt
.
i_codec
,
fmt
.
video
.
i_width
,
fmt
.
video
.
i_height
);
...
...
@@ -1056,7 +1066,6 @@ static int OpenVideoDev( demux_t *p_demux, char *psz_device )
break
;
}
}
}
else
{
...
...
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