libmix: remove fps related code as it won't be used anymore
BZ: 104348
Revert patch#40781: takes fps info to set render mode
Change-Id: I8c93c1f267146d5c34c2e9e0d8601ed63aae8254
Signed-off-by: Dan Liang <dan.liang@intel.com>
Reviewed-on: http://android.intel.com:8080/106696
Reviewed-by: cactus <cactus@intel.com>
Reviewed-by: Feng, Wei <wei.feng@intel.com>
Reviewed-by: Shi, PingX <pingx.shi@intel.com>
Tested-by: Ding, Haitao <haitao.ding@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
diff --git a/videodecoder/VideoDecoderBase.cpp b/videodecoder/VideoDecoderBase.cpp
index 2379eaa..8f95ac2 100755
--- a/videodecoder/VideoDecoderBase.cpp
+++ b/videodecoder/VideoDecoderBase.cpp
@@ -764,17 +764,6 @@
vaStatus = vaInitialize(mVADisplay, &majorVersion, &minorVersion);
CHECK_VA_STATUS("vaInitialize");
- if (mConfigBuffer.frameRate > 45 && mVideoFormatInfo.height >= 1080) {
- // ugly workaround here
- // for fps > 45 and height > 1080, we will force to
- // use surfaceTexture render mode duo to performance issue
- VADisplayAttribute renderMode;
- renderMode.type = VADisplayAttribRenderMode;
- renderMode.value = VA_RENDER_MODE_EXTERNAL_GPU;
- vaStatus = vaSetDisplayAttributes(mVADisplay, &renderMode, 1);
- CHECK_VA_STATUS("vaSetDisplayAttributes");
- }
-
if ((int32_t)profile != VAProfileSoftwareDecoding) {
//We are requesting RT attributes
attrib.type = VAConfigAttribRTFormat;
diff --git a/videodecoder/VideoDecoderDefs.h b/videodecoder/VideoDecoderDefs.h
index 672020c..4f44adf 100644
--- a/videodecoder/VideoDecoderDefs.h
+++ b/videodecoder/VideoDecoderDefs.h
@@ -121,7 +121,6 @@
int32_t size;
int32_t width;
int32_t height;
- int32_t frameRate;
int32_t surfaceNumber;
VAProfile profile;
uint32_t flag;