Ticket #12992: 20170803_dave_chiluk_disable_x265_deint.patch

File 20170803_dave_chiluk_disable_x265_deint.patch, 1.1 KB (added by Peter Bennett, 2 years ago)

Dave Chiluk's X265 VDPAU patch

  • mythtv/libs/libmythtv/videoout_vdpau.cpp

    diff --git a/mythtv/libs/libmythtv/videoout_vdpau.cpp b/mythtv/libs/libmythtv/videoout_vdpau.cpp
    index 07f6e6d..676e064 100644
    a b bool VideoOutputVDPAU::SetupDeinterlace(bool interlaced, 
    336336        return false;
    337337
    338338    bool enable = interlaced;
     339
     340    if ( video_codec_id == kCodec_HEVC_VDPAU )
     341    {
     342        LOG(VB_PLAYBACK, LOG_INFO, LOC + "Disabled deinterlacing for HEVC/H.265");
     343        enable = false;
     344    }
     345
    339346    if (enable)
    340347    {
    341348        m_deintfiltername = db_vdisp_profile->GetFilteredDeint(override);
    void VideoOutputVDPAU::DrawSlice(VideoFrame *frame, int /* x */, int /* y */, in 
    652659            case kCodec_VC1_VDPAU:
    653660                vdp_decoder_profile = VDP_DECODER_PROFILE_VC1_ADVANCED;
    654661                break;
     662            case kCodec_HEVC_VDPAU:
     663                vdp_decoder_profile = VDP_DECODER_PROFILE_HEVC_MAIN;
     664                max_refs = 16;
     665                break;
    655666            default:
    656667                LOG(VB_GENERAL, LOG_ERR, LOC +
    657668                    "Codec is not supported.");