YCbCrPixelLayout Class

YCbCrPixelLayout Class

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

Represents the current YCbCr plane layout for GetPreviewBufferYCbCr(Byte[]).

System.Object
  Microsoft.Devices.YCbCrPixelLayout

Namespace:  Microsoft.Devices
Assembly:  Microsoft.Phone (in Microsoft.Phone.dll)
XMLNS for XAML: Not mapped to an xmlns.

public sealed class YCbCrPixelLayout
<YCbCrPixelLayout .../>

The YCbCrPixelLayout type exposes the following members.

  NameDescription
Public methodYCbCrPixelLayoutInitializes a new instance of the YCbCrPixelLayout class.
Top

  NameDescription
Public propertyCbOffsetGets the offset to the first Cb pixel in each row.
Public propertyCbPitchGets the pitch between rows of Cb pixels.
Public propertyCbXPitchGets the pitch between Cb pixels in each row.
Public propertyCrOffsetGets the offset to the first Cr pixel in each row.
Public propertyCrPitchGets the pitch between rows of Cr pixels.
Public propertyCrXPitchGets the pitch between Cr pixels in each row.
Public propertyRequiredBufferSizeGets the required buffer size for the image.
Public propertyYOffsetGets the pitch between rows of Y pixels.
Public propertyYPitchGets the pitch, in bytes, to the next Y line.
Public propertyYXPitchGets the pitch between Y pixels in each row.
Top

  NameDescription
Public methodEquals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

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.

Capabilities

If you use this API in your app, you must specify the following capabilities in the app manifest. Otherwise, your app might not work correctly or it might exit unexpectedly.

ID_CAP_ISV_CAMERA

Windows Phone 8, Windows Phone OS 7.1

For more info, see App capabilities and hardware requirements for Windows Phone 8.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Windows Phone

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Show:
© 2016 Microsoft