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(array<Byte>).
Assembly: Microsoft.Phone (in Microsoft.Phone.dll)
XMLNS for XAML: Not mapped to an xmlns.
The YCbCrPixelLayout type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | CbOffset | Gets the offset to the first Cb pixel in each row. |
![]() | CbPitch | Gets the pitch between rows of Cb pixels. |
![]() | CbXPitch | Gets the pitch between Cb pixels in each row. |
![]() | CrOffset | Gets the offset to the first Cr pixel in each row. |
![]() | CrPitch | Gets the pitch between rows of Cr pixels. |
![]() | CrXPitch | Gets the pitch between Cr pixels in each row. |
![]() | RequiredBufferSize | Gets the required buffer size for the image. |
![]() | YOffset | Gets the pitch between rows of Y pixels. |
![]() | YPitch | Gets the pitch, in bytes, to the next Y line. |
![]() | YXPitch | Gets the pitch between Y pixels in each row. |
| Name | Description | |
|---|---|---|
![]() | Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
Important 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.



Important Note: