1.在 Slideshowview.java
2. @Override
public void apply(GLCanvas canvas) {
int viewWidth = getWidth();
int viewHeight = getHeight();
float initScale = Math.min((float)
viewWidth / mWidth, (float) viewHeight / mHeight);
// M: if special SUB_TYPE, 按原始尺寸显示
/************************************** Edit Start **********************************************/
if (0 !=(mSubType & MediaObject.SUBTYPE_DRM_NO_RIGHT)) {
/***************************************Edit End ***********************************************/
//this logic is familar with that of PositionController.java
float minScale = MediatekFeature.getMinimalScale(viewWidth,
viewHeight, mWidth, mHeight, mSubType);
float tempScaleLimit = MediatekFeature.minScaleLimit(mSubType);
float scaleLimit = tempScaleLimit > 0.0f ?
tempScaleLimit : 2.0f;
minScale = Math.min(scaleLimit, minScale);
initScale = minScale / (1 + SCALE_SPEED);
}
float scale = initScale * (1 + SCALE_SPEED * mProgress);