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
78e0aba1
Commit
78e0aba1
authored
Mar 31, 2009
by
Antoine Cellerier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Report interlacing in debug output.
parent
095f0837
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
40 additions
and
1 deletion
+40
-1
modules/access/v4l2.c
modules/access/v4l2.c
+40
-1
No files found.
modules/access/v4l2.c
View file @
78e0aba1
...
...
@@ -1940,7 +1940,7 @@ static int OpenVideoDev( vlc_object_t *p_obj, demux_sys_t *p_sys, bool b_demux )
fmt
.
fmt
.
pix
.
width
=
p_sys
->
i_width
;
fmt
.
fmt
.
pix
.
height
=
p_sys
->
i_height
;
fmt
.
fmt
.
pix
.
field
=
V4L2_FIELD_
INTERLACED
;
fmt
.
fmt
.
pix
.
field
=
V4L2_FIELD_
NONE
;
/* Test and set Chroma */
fmt
.
fmt
.
pix
.
pixelformat
=
0
;
...
...
@@ -2008,6 +2008,45 @@ static int OpenVideoDev( vlc_object_t *p_obj, demux_sys_t *p_sys, bool b_demux )
p_sys
->
i_width
=
fmt
.
fmt
.
pix
.
width
;
p_sys
->
i_height
=
fmt
.
fmt
.
pix
.
height
;
/* Check interlacing */
if
(
v4l2_ioctl
(
i_fd
,
VIDIOC_G_FMT
,
&
fmt
)
<
0
)
{;}
switch
(
fmt
.
fmt
.
pix
.
field
)
{
case
V4L2_FIELD_NONE
:
msg_Dbg
(
p_demux
,
"Interlacing setting: progressive"
);
break
;
case
V4L2_FIELD_TOP
:
msg_Dbg
(
p_demux
,
"Interlacing setting: top field only"
);
break
;
case
V4L2_FIELD_BOTTOM
:
msg_Dbg
(
p_demux
,
"Interlacing setting: bottom field only"
);
break
;
case
V4L2_FIELD_INTERLACED
:
msg_Dbg
(
p_demux
,
"Interlacing setting: interleaved (bottom top if M/NTSC, top bottom otherwise)"
);
break
;
case
V4L2_FIELD_SEQ_TB
:
msg_Dbg
(
p_demux
,
"Interlacing setting: sequential top bottom"
);
break
;
case
V4L2_FIELD_SEQ_BT
:
msg_Dbg
(
p_demux
,
"Interlacing setting: sequential bottom top"
);
break
;
case
V4L2_FIELD_ALTERNATE
:
msg_Dbg
(
p_demux
,
"Interlacing setting: alternate fields"
);
break
;
case
V4L2_FIELD_INTERLACED_TB
:
msg_Dbg
(
p_demux
,
"Interlacing setting: interleaved top bottom"
);
break
;
case
V4L2_FIELD_INTERLACED_BT
:
msg_Dbg
(
p_demux
,
"Interlacing setting: interleaved bottom top"
);
break
;
default:
msg_Warn
(
p_demux
,
"Interlacing setting: unknown type (%d)"
,
fmt
.
fmt
.
pix
.
field
);
break
;
}
if
(
fmt
.
fmt
.
pix
.
field
!=
V4L2_FIELD_NONE
)
msg_Warn
(
p_demux
,
"Interlaced inputs haven't been tested. Please report any issue."
);
/* Look up final fourcc */
p_sys
->
i_fourcc
=
0
;
for
(
int
i
=
0
;
v4l2chroma_to_fourcc
[
i
].
i_fourcc
!=
0
;
i
++
)
...
...
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