Tuesday, August 7, 2012

[android-developers] MediaCodec Video Scaling Mode Configuration

Hello All,

In working with the Jelly Bean Released MediaCodec API, I have been decoding a video file and rendering it to a SurfaceView. This seems to work fine, but the VIDEO_SCALING_MODE_SCALE_TO_FIT appears to be non-anamorphic (aspect ratio not conserved). The other scaling option, MediaCodec.VIDEO_SCALING_MODE_SCALE_TO_FIT_WITH_CROPPING, looks to be anamorphic but crops the larger dimension as suggested in its name.

Is there any way to force a scaling mode which scales anamorphically (aspect ration maintained) to produce the largest video size for a given surface?

Thanks, Steve

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate