kernels/linux-2.4.0/drivers/usb/ov511.c
/* Returns number of bits per pixel (regardless of where they are located; planar or
 * not), or zero for unsupported format.
 */
Returns number of bits per pixel (regardless of where they are located; planar or
not), or zero for unsupported format.
Returns number of bits per pixel ( regardless of where they are located ; planar or not ) or zero for unsupported format .
static int ov511_get_depth(int palette)
{
	switch (palette) {
	case VIDEO_PALETTE_GREY:    return 8;
	case VIDEO_PALETTE_RGB565:  return 16;
	case VIDEO_PALETTE_RGB24:   return 24;  
	case VIDEO_PALETTE_YUV422:  return 16;
	case VIDEO_PALETTE_YUYV:    return 16;
	case VIDEO_PALETTE_YUV420:  return 24;
	case VIDEO_PALETTE_YUV422P: return 24; 
	default:		    return 0;  
	}
}
static int ov511_get_depth ( int palette ) { switch ( palette ) { case VIDEO_PALETTE_GREY : return 8 ; case VIDEO_PALETTE_RGB565 : return 16 ; case VIDEO_PALETTE_RGB24 : return 24 ; case VIDEO_PALETTE_YUV422 : return 16 ; case VIDEO_PALETTE_YUYV : return 16 ; case VIDEO_PALETTE_YUV420 : return 24 ; case VIDEO_PALETTE_YUV422P : return 24 ; default : return 0 ; } }
Returns number of bits per pixel (regardless of where they are located; planar or
 not), or zero for unsupported format.
Returns number of bits per pixel ( regardless of where they are located ; planar or not ) or zero for unsupported format .
/* Planar */ /* Invalid format */