void
dump_InfoFrame(void)
{
    BYTE INFOFRAME[31] ;
    int i ;
    if((it660x_debug_flag&0x1)==0){
        return 0;
    }


    if( GetAVIInfoFrame(INFOFRAME) )
    {
        printk("GetAVIInfoFrame():") ;
        for( i = 0 ; i <= (3+(INFOFRAME[2] & 0x1F)) ; i++ )
        {
            printk(" %02X",(int)INFOFRAME[i]) ;
        }
        printk("\n") ;
    }
    else
    {
        printk("Cannot get AVI Infoframe()\n") ;
    }

    if( GetAudioInfoFrame(INFOFRAME) )
    {
        printk("GetAudioInfoFrame():") ;
        for( i = 0 ; i <= (3+(INFOFRAME[2] & 0x1F)) ; i++ )
        {
            printk(" %02X",(int)INFOFRAME[i]) ;
        }
        printk("\n") ;
    }
    else
    {
        printk("Cannot get audio infoframe.\n") ;
    }


    if( GetVENDORSPECInfoFrame(INFOFRAME) )
    {
        printk("GetVENDORSPECInfoFrame():") ;
        for( i = 0 ; i <= (3+(INFOFRAME[2] & 0x1F)) ; i++ )
        {
            printk(" %02X",(int)INFOFRAME[i]) ;
        }
        printk("\n") ;
    }
    else
    {
        printk("Cannot GetVENDORSPECInfoFrame()\n") ;
    }
}
Esempio n. 2
0
void
dump_InfoFrame()
{
    xdata BYTE INFOFRAME[31] ;
    int i ;


    if( GetAVIInfoFrame(INFOFRAME) )
    {
        printf("GetAVIInfoFrame():") ;
        for( i = 0 ; i <= (3+(INFOFRAME[2] & 0x1F)) ; i++ )
        {
            printf(" %02X",(int)INFOFRAME[i]) ;
        }
        printf("\n") ;
    }
    else
    {
        printf("Cannot get AVI Infoframe()\n") ;
    }

    if( GetAudioInfoFrame(INFOFRAME) )
    {
        printf("GetAudioInfoFrame():") ;
        for( i = 0 ; i <= (3+(INFOFRAME[2] & 0x1F)) ; i++ )
        {
            printf(" %02X",(int)INFOFRAME[i]) ;
        }
        printf("\n") ;
    }
    else
    {
        printf("Cannot get audio infoframe.\n") ;
    }


    if( GetVENDORSPECInfoFrame(INFOFRAME) )
    {
        printf("GetVENDORSPECInfoFrame():") ;
        for( i = 0 ; i <= (3+(INFOFRAME[2] & 0x1F)) ; i++ )
        {
            printf(" %02X",(int)INFOFRAME[i]) ;
        }
        printf("\n") ;
    }
    else
    {
        printf("Cannot GetVENDORSPECInfoFrame()\n") ;
    }
}