RequiredBufferSize Property
Collapse the table of content
Expand the table of content

YCbCrPixelLayout.RequiredBufferSize Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets the required buffer size for the image.

Namespace:  Microsoft.Devices
Assembly:  Microsoft.Phone (in Microsoft.Phone.dll)

'Declaration
Public Property RequiredBufferSize As Integer

Property Value

Type: System.Int32
The required buffer size for the image.

Depending on the implementation by each device, the required size of a YCbCr buffer may be larger than the preview resolution size to allow room for padding. This does not apply to Y or ARGB buffers.

NoteNote:

For YCbCr images, use the RequiredBufferSize property to determine the buffer size rather than calculate it from the camera resolution.

Important noteImportant Note:

This class is not recommended for determining pixel layout on Windows Phone 8. YCbCr data provided by the PhotoCameraGetPreviewBuffer methods follow the NV12 or NV21 format, depending on the version of phone. Apps running on Windows Phone 8 should process YCbCr data according to the NV12 standard rather than use this class to determine pixel the layout. Apps running on phones prior to Windows Phone 8 should process YCbCr data according to the NV21 standard.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Windows Phone

Show:
© 2017 Microsoft