]> git.vomp.tv Git - vompclient.git/commitdiff
Use qpu only for SD content, minor fix in osdopenvg header for non accelearted image... 0-5-0
authorMarten Richter <marten.richter@freenet.de>
Sat, 11 Mar 2017 09:45:06 +0000 (10:45 +0100)
committerMarten Richter <marten.richter@freenet.de>
Sat, 11 Mar 2017 09:45:06 +0000 (10:45 +0100)
osdopenvg.h
videoomx.cc

index 77d75cb9ca81739f3567b291c78be945dc67957c..c462e147bbdb508258f8b88548de51030706fcd9 100644 (file)
@@ -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();
index abe91dbbd6c34530c0f5a56d5369b8e25121ebd8..31fcf5f34aaed028f235e20229088bd0f7f88bf9 100644 (file)
@@ -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;