LowLagPhotoSequenceControl class

Applies to Windows and Windows Phone

Provides functionality for managing the low shutter lag photo sequence mode on the capture device.

Syntax


var lowLagPhotoSequenceControl = VideoDeviceController.lowLagPhotoSequence;

Attributes

[MarshalingBehavior(Standard)]
[Threading(MTA)]
[Version(0x06030000)]

Members

The LowLagPhotoSequenceControl class has these types of members:

Methods

The LowLagPhotoSequenceControl class has these methods. With C#, Visual Basic, and C++, it also inherits methods from the Object class.

MethodDescription
GetCurrentFrameRate Gets the current frame rate at which pictures can be taken.
GetHighestConcurrentFrameRate Gets the highest frame rate supported when video and photos sequences are being captured concurrently.

 

Properties

The LowLagPhotoSequenceControl class has these properties.

PropertyAccess typeDescription

DesiredThumbnailSize

Read/writeGets or sets the desired size for thumbnails, which is the largest length of the image, either width or height.

HardwareAcceleratedThumbnailSupported

Read-onlyGets a value that specifies if hardware acceleration is supported for thumbnails in photo sequence mode.

MaxPastPhotos

Read-onlyGets the maximum number of past photos that can be stored.

MaxPhotosPerSecond

Read-onlyGets the maximum number of photos that can be taken per second.

PastPhotoLimit

Read/writeGets or sets a value that specifies the number of past photos to store.

PhotosPerSecondLimit

Read/writeGets or sets the number of photos that are taken per second.

Supported

Read-onlyGets a value that specifies if the capture device supports low shutter lag photo sequence mode.

ThumbnailEnabled

Read/writeGets a value that enables and disables thumbnail support in photo sequence mode.

ThumbnailFormat

Read/writeGets or sets the media format for the thumbnails.

 

Remarks

Photo sequence mode takes a rapid sequence of photos. A key scenario for photo sequence is getting photos in the past, that is prior to when the user takes a photo.

You can access the LowLagPhotoSequenceControl for the capture device through MediaCapture.VideoDeviceController.

You can find out if the device supports photo sequence mode by checking LowLagPhotoSequenceControl.Supported.

To initiate photo sequence mode, call MediaCapture.PrepareLowLagPhotoSequenceCaptureAsync. To start capturing photos, call StartAsync. To stop capturing photos, call StopAsync. The app will continue to receive photos from the device until the operation is stopped.

GetCurrentFrameRate specifies the frame rate at which the photos are taken.

PhotoCapturedEventArgs.CaptureTimeOffset can be used to tell whether a frame was in the future, greater than 0, or in the past, less than 0.

If the app wants to limit how many frames it gets per second, it can use LowLagPhotoSequence.PhotosPerSecondLimit. This can be useful in situations where the sensor on the device can handle 30fps, but the app only needs 4fps.

Thumbnails are supported for a low shutter lag single photos and photo sequences.

To enable thumbnails, set ThumbnailEnabled to true.

You can set the desired thumbnail size through DesiredThumbnailSize and set the thumbnail format through ThumbnailFormat.

The number of past photos cannot be more than MaxPastPhotos, which is the maximum number of past photos that is supported by the driver. The number of past photos returned will be the smaller of the following values: PastPhotoLimit, MaxPastPhotos, or the current number of available past photos.

Requirements

Minimum supported client

Windows 8.1 [Windows Store apps only]

Minimum supported server

Windows Server 2012 R2 [Windows Store apps only]

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.Media.Devices
Windows::Media::Devices [C++]

Metadata

Windows.winmd

See also

Object
LowLagPhotoSequenceCapture

 

 

Show:
© 2014 Microsoft