From 8899a7d78d73df7d22d0dfc154a9ad5231d37d6e Mon Sep 17 00:00:00 2001 From: Marten Richter Date: Sat, 11 Mar 2017 10:45:06 +0100 Subject: [PATCH] Use qpu only for SD content, minor fix in osdopenvg header for non accelearted image decoding case --- osdopenvg.h | 5 ++++- videoomx.cc | 9 ++++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/osdopenvg.h b/osdopenvg.h index 77d75cb..c462e14 100644 --- a/osdopenvg.h +++ b/osdopenvg.h @@ -77,7 +77,10 @@ struct OpenVGResponse{ }; -class OsdOpenVG : public OsdVector, public Thread_TYPE, public EGLPictureCreator +class OsdOpenVG : public OsdVector, public Thread_TYPE +#ifdef PICTURE_DECODER_OMX + , public EGLPictureCreator +#endif { public: OsdOpenVG(); diff --git a/videoomx.cc b/videoomx.cc index abe91db..31fcf5f 100644 --- a/videoomx.cc +++ b/videoomx.cc @@ -1448,7 +1448,14 @@ int VideoOMX::AllocateCodecsOMX() imagefilter.nParams[0]=3;//??? imagefilter.nParams[1]=0;//default frame interval imagefilter.nParams[2]=0;// frame rate - imagefilter.nParams[3]=1;//use qpels //whatever this is from mpeg? + if (demux->getHorizontalSize() <= 720){ + imagefilter.nParams[3] = 1;//use qpus + } + else + { + imagefilter.nParams[3] = 0;//use qpus + } + switch (deinterlace) { case 1: imagefilter.eImageFilter=OMX_ImageFilterDeInterlaceLineDouble; break; -- 2.39.5