drop rgb24

git-svn-id: svn://code.dyne.org/veejay/trunk@680 eb8d1916-c9e9-0310-b8de-cf0c9472ead5
This commit is contained in:
Niels Elburg
2006-10-28 23:30:19 +00:00
parent d1093220cf
commit d1e01f35f7

View File

@@ -590,15 +590,7 @@ int vj_unicap_configure_device( void *ud, int pixel_format, int w, int h )
for( i = 0; for( i = 0;
SUCCESS( unicap_enumerate_formats( vut->handle, &rgb_spec, &rgb_format, i ) ); i ++ ) SUCCESS( unicap_enumerate_formats( vut->handle, &rgb_spec, &rgb_format, i ) ); i ++ )
{ {
//@ try rgb24 first, its has less bandwidth if( rgb_fourcc == rgb_format.fourcc )
if( rgb24_fourcc == rgb_format.fourcc )
{
veejay_msg(0, "Camera can capture in RGB24" );
vut->rgb = 2;
rgb_format.size.width = w;
rgb_format.size.height = h;
break;
} else if( rgb_fourcc == rgb_format.fourcc )
{ {
veejay_msg(0, "Camera can capture in RGB32"); veejay_msg(0, "Camera can capture in RGB32");
vut->rgb = 1; vut->rgb = 1;