ICameraCapturePreviewSink::OnFrameAvailable method for Windows Phone 8
July 21, 2014
Applies to: Windows Phone 8 and Windows Phone Silverlight 8.1 only
Performs caller-implemented actions each time a frame from the camera preview is available.
VOID OnFrameAvailable(
[in] DXGI_FORMAT format,
[in] UINT width,
[in] UINT height,
[in] BYTE* pixels
);
Parameters
format [in]
Type: DXGI_FORMATThe memory layout for the pixels in each frame.
width [in]
Type: UINTThe width of the frame (in pixels).
height [in]
Type: UINTThe height of the frame (in pixels).
pixels [in]
Type: BYTE*Pointer to the frame data.
Return value
This method does not return a value.
Remarks
Use this sink by calling the ICameraCaptureDeviceNative::SetPreviewSink method for Windows Phone 8. You can also specify the format of the image data by using the ICameraCaptureDeviceNative::SetPreviewFormat method for Windows Phone 8.
Supported DXGI_FORMAT values include:
DXGI_FORMAT_B8G8R8A8_UNORM
DXGI_FORMAT_B8G8R8X8_UNORM
DXGI_FORMAT_NV12
DXGI_FORMAT_420_OPAQUE
Requirements
Minimum supported phone |
Windows Phone 8 |
Header |
Windows.Phone.Media.Capture.Native.h |
Namespace |
Windows::Phone::Media::Capture |