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 );
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