- switch( p_vdec->p_fifo->i_fourcc )
- {
- case VLC_FOURCC( 'I', '4', '2', '0' ):
- i_chroma = VLC_FOURCC( 'I', '4', '2', '0' );
- p_vdec->i_raw_size = bih->biWidth * bih->biHeight * 3 / 2;
- break;
- case VLC_FOURCC( 'I', '4', '2', '2' ):
- i_chroma = VLC_FOURCC( 'I', '4', '2', '2' );
- p_vdec->i_raw_size = bih->biWidth * bih->biHeight * 2;
- break;
- case VLC_FOURCC( 'Y', 'U', 'Y', '2' ):
- i_chroma = VLC_FOURCC( 'Y', 'U', 'Y', '2' );
- p_vdec->i_raw_size = bih->biWidth * bih->biHeight * 2;
- break;
- default:
- msg_Err( p_vdec->p_fifo, "invalid codec=%4.4s", (char*)&p_vdec->p_fifo->i_fourcc );
- return( VLC_EGENERIC );
- }
-