void TvideoCodecLibavcodecDxva::create(void)
{
    nARMode = 1;
    inPosB = 1;
    nDXVAMode = MODE_SOFTWARE;
    pDXVADecoder = NULL;
    sar = AVRational();
    switch (dxvaCodecId) {
        case CODEC_ID_H264_DXVA:
            dxvaParamsp = &DXVA_H264;
            if (isVista()) {
                dxvaParamsp = &DXVA_H264_VISTA;
            }
            break;
        case CODEC_ID_VC1_DXVA:
            dxvaParamsp = &DXVA_VC1;
            break;
            /*case CODEC_ID_MPEG2_DXVA:dxvaParamsp=&DXVA_Mpeg2;break;
            */
    }
}
示例#2
0
文件: frame.cpp 项目: adarovsky/avcpp
Rational VideoFrame::sampleAspectRatio() const
{
    return RAW_GET(sample_aspect_ratio, AVRational());
}