vlc_linux/vlc-3.0.16/modules/access/dshow/dshow.cpp
/*
 * get fourcc priority from arbritary preference, the higher the better
 */
get fourcc priority from arbritary preference, the higher the better
get fourcc priority from arbritary preference the higher the better
static int GetFourCCPriority( int i_fourcc )
{
    switch( i_fourcc )
    {
    case VLC_CODEC_I420:
    case VLC_CODEC_FL32:
        return 9;
    case VLC_CODEC_YV12:
    case VLC_FOURCC('a','r','a','w'):
        return 8;
    case VLC_CODEC_RGB24:
        return 7;
    case VLC_CODEC_YUYV:
    case VLC_CODEC_RGB32:
    case VLC_CODEC_RGBA:
        return 6;
    }
    return 0;
}
static int GetFourCCPriority ( int i_fourcc ) { switch ( i_fourcc ) { case VLC_CODEC_I420 : case VLC_CODEC_FL32 : return 9 ; case VLC_CODEC_YV12 : case VLC_FOURCC ( ' ' , ' ' , ' ' , ' ' ) : return 8 ; case VLC_CODEC_RGB24 : return 7 ; case VLC_CODEC_YUYV : case VLC_CODEC_RGB32 : case VLC_CODEC_RGBA : return 6 ; } return 0 ; }
get fourcc priority from arbritary preference, the higher the better
get fourcc priority from arbritary preference the higher the better