Exemplo n.º 1
0
void CDXVADecoderVC1::SetExtraData (BYTE* pDataIn, UINT nSize)
{
	m_PictureParams.wPicWidthInMBminus1				= m_pFilter->PictWidth()  - 1;
	m_PictureParams.wPicHeightInMBminus1			= m_pFilter->PictHeight() - 1;
	m_PictureParams.bMacroblockWidthMinus1			= 15;
	m_PictureParams.bMacroblockHeightMinus1			= 15;
	m_PictureParams.bBlockWidthMinus1				= 7;
	m_PictureParams.bBlockHeightMinus1				= 7;
	m_PictureParams.bBPPminus1						= 7;

	m_PictureParams.bMVprecisionAndChromaRelation	= 0;
	m_PictureParams.bChromaFormat					= VC1_CHROMA_420;

	m_PictureParams.bPicScanFixed					= 0;	// Use for status reporting sections 3.8.1 and 3.8.2
	m_PictureParams.bPicReadbackRequests			= 0;

	m_PictureParams.bRcontrol						= 0;
	m_PictureParams.bPicExtrapolation				= 0;

	m_PictureParams.bPicDeblocked					= 2;	// TODO ???
	m_PictureParams.bPicOBMC						= 0;
	m_PictureParams.bPicBinPB						= 0;	// TODO
	m_PictureParams.bMV_RPS							= 0;	// TODO

	m_PictureParams.bReservedBits					= 0;

	// iWMV9 - i9IRU - iOHIT - iINSO - iWMVA - 0 - 0 - 0		| Section 3.2.5
	m_PictureParams.bBidirectionalAveragingMode	= (1 << 7) |
												  (GetConfigIntraResidUnsigned()    <<6) |	// i9IRU
												  (GetConfigResidDiffAccelerator()  <<5);	// iOHIT
}
Exemplo n.º 2
0
void TDXVADecoderVC1::SetExtraData(BYTE* pDataIn, UINT nSize)
{
    m_PictureParams.bMacroblockWidthMinus1           = 15;
    m_PictureParams.bMacroblockHeightMinus1          = 15;
    m_PictureParams.bBlockWidthMinus1                = 7;
    m_PictureParams.bBlockHeightMinus1               = 7;
    m_PictureParams.bBPPminus1                       = 7;

    m_PictureParams.bChromaFormat                    = VC1_CHROMA_420;

    m_PictureParams.bPicScanFixed                    = 0;    // Use for status reporting sections 3.8.1 and 3.8.2
    m_PictureParams.bPicReadbackRequests             = 0;

    m_PictureParams.bPicBinPB                        = 0;    // TODO
    m_PictureParams.bMV_RPS                          = 0;    // TODO

    m_PictureParams.bReservedBits                    = 0;

    // iWMV9 - i9IRU - iOHIT - iINSO - iWMVA - 0 - 0 - 0        | Section 3.2.5
    m_PictureParams.bBidirectionalAveragingMode = (1 << 7) |
            (GetConfigIntraResidUnsigned()    << 6) |   // i9IRU
            (GetConfigResidDiffAccelerator()  << 5);   // iOHIT
}