TvTrackInfo.Builder.SetVideoPixelAspectRatio(Single) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets the pixel aspect ratio (the ratio of a pixel's width to its height) of the video.
[Android.Runtime.Register("setVideoPixelAspectRatio", "(F)Landroid/media/tv/TvTrackInfo$Builder;", "", ApiSince=23)]
public Android.Media.TV.TvTrackInfo.Builder SetVideoPixelAspectRatio(float videoPixelAspectRatio);
[<Android.Runtime.Register("setVideoPixelAspectRatio", "(F)Landroid/media/tv/TvTrackInfo$Builder;", "", ApiSince=23)>]
member this.SetVideoPixelAspectRatio : single -> Android.Media.TV.TvTrackInfo.Builder
Parameters
- videoPixelAspectRatio
- Single
The pixel aspect ratio of the video.
Returns
- Attributes
Remarks
Sets the pixel aspect ratio (the ratio of a pixel's width to its height) of the video. Valid only for TvTrackInfo.TYPE_VIDEO tracks.
This is needed for applications to be able to scale the video properly for some video formats such as 720x576 4:3 and 720x576 16:9 where pixels are not square. By default, applications assume the value of 1.0 (square pixels), so it is not necessary to set the pixel aspect ratio for most video formats.
Android reference for android.media.tv.TvTrackInfo.Builder.setVideoPixelAspectRatio.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.