From: Marten Richter Date: Sat, 11 Mar 2017 09:45:06 +0000 (+0100) Subject: Use qpu only for SD content, minor fix in osdopenvg header for non accelearted image... X-Git-Tag: 0-5-0^0 X-Git-Url: https://git.vomp.tv/gitweb/?a=commitdiff_plain;h=8899a7d78d73df7d22d0dfc154a9ad5231d37d6e;p=vompclient.git Use qpu only for SD content, minor fix in osdopenvg header for non accelearted image decoding case --- 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;