Skip to content
Permalink
Browse files

[mmalrenderer] experimental: Allow deinterlace with software decode

  • Loading branch information
popcornmix committed Aug 16, 2015
1 parent c76c45a commit cf9443633017b91185a4dee93a57f8bca57a8569
Showing with 9 additions and 0 deletions.
  1. +9 −0 xbmc/cores/VideoPlayer/VideoRenderers/HwDecRender/MMALRenderer.cpp
@@ -628,6 +628,13 @@ bool CMMALRenderer::Supports(EDEINTERLACEMODE mode)

bool CMMALRenderer::Supports(EINTERLACEMETHOD method)
{
if (m_format == RENDER_FMT_YUV420P)
{
if (method == VS_INTERLACEMETHOD_DEINTERLACE_HALF)
return true;
else
return false;
}
if (method == VS_INTERLACEMETHOD_AUTO)
return true;
if (method == VS_INTERLACEMETHOD_MMAL_ADVANCED)
@@ -662,6 +669,8 @@ bool CMMALRenderer::Supports(ESCALINGMETHOD method)

EINTERLACEMETHOD CMMALRenderer::AutoInterlaceMethod()
{
if (m_format == RENDER_FMT_YUV420P)
return VS_INTERLACEMETHOD_DEINTERLACE_HALF;
return m_sourceWidth * m_sourceHeight <= 576 * 720 ? VS_INTERLACEMETHOD_MMAL_ADVANCED : VS_INTERLACEMETHOD_MMAL_BOB;
}

0 comments on commit cf94436

Please sign in to comment.
You can’t perform that action at this time.