ICameraCapturePreviewSink::OnFrameAvailable method for Windows Phone 8
Collapse the table of content
Expand the table of content

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

format [in]

Type: DXGI_FORMAT

The memory layout for the pixels in each frame.

width [in]

Type: UINT

The width of the frame (in pixels).

height [in]

Type: UINT

The height of the frame (in pixels).

pixels [in]

Type: BYTE*

Pointer to the frame data.

This method does not return a value.

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

Minimum supported phone

Windows Phone 8

Header

Windows.Phone.Media.Capture.Native.h

Namespace

Windows::Phone::Media::Capture

Show:
© 2017 Microsoft