Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
mediastreamer2
Commits
aa90f1de
Commit
aa90f1de
authored
Mar 01, 2010
by
Aymeric Moizard
Browse files
MPEG images are very slow: prefer YUYV
parent
0ef21a9a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
src/msv4l2.c
src/msv4l2.c
+5
-5
No files found.
src/msv4l2.c
View file @
aa90f1de
...
...
@@ -161,11 +161,6 @@ static int msv4l2_configure(V4l2State *s){
s
->
int_pix_fmt
=
V4L2_PIX_FMT_YUV420
;
ms_message
(
"v4lv2: YUV420P choosen"
);
break
;
}
else
if
(
v4lv2_try_format
(
s
,
&
fmt
,
V4L2_PIX_FMT_MJPEG
)){
s
->
pix_fmt
=
MS_MJPEG
;
s
->
int_pix_fmt
=
V4L2_PIX_FMT_MJPEG
;
ms_message
(
"v4lv2: MJPEG choosen"
);
break
;
}
else
if
(
v4lv2_try_format
(
s
,
&
fmt
,
V4L2_PIX_FMT_YUYV
)){
s
->
pix_fmt
=
MS_YUYV
;
s
->
int_pix_fmt
=
V4L2_PIX_FMT_YUYV
;
...
...
@@ -176,6 +171,11 @@ static int msv4l2_configure(V4l2State *s){
s
->
int_pix_fmt
=
V4L2_PIX_FMT_RGB24
;
ms_message
(
"v4lv2: RGB24 choosen"
);
break
;
}
else
if
(
v4lv2_try_format
(
s
,
&
fmt
,
V4L2_PIX_FMT_MJPEG
)){
s
->
pix_fmt
=
MS_MJPEG
;
s
->
int_pix_fmt
=
V4L2_PIX_FMT_MJPEG
;
ms_message
(
"v4lv2: MJPEG choosen"
);
break
;
}
else
{
ms_error
(
"Could not find supported pixel format for %ix%i"
,
s
->
vsize
.
width
,
s
->
vsize
.
height
);
}
...
...
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