Partager via


CaptureResult.FrameNumber Property

Definition

Get the frame number associated with this result.

public virtual long FrameNumber { [Android.Runtime.Register("getFrameNumber", "()J", "GetGetFrameNumberHandler")] get; }
[<get: Android.Runtime.Register("getFrameNumber", "()J", "GetGetFrameNumberHandler")>]
member this.FrameNumber : int64

Property Value

The frame number

Attributes

Remarks

Get the frame number associated with this result.

Whenever a request has been processed, regardless of failure or success, it gets a unique frame number assigned to its future result/failure.

For the same type of request (capturing from the camera device or reprocessing), this value monotonically increments, starting with 0, for every new result or failure and the scope is the lifetime of the CameraDevice. Between different types of requests, the frame number may not monotonically increment. For example, the frame number of a newer reprocess result may be smaller than the frame number of an older result of capturing new images from the camera device, but the frame number of a newer reprocess result will never be smaller than the frame number of an older reprocess result.

Java documentation for android.hardware.camera2.CaptureResult.getFrameNumber().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

See also