次の方法で共有


OisSample(Int64, Single, Single) Constructor

Definition

Create a new OisSample.

[Android.Runtime.Register(".ctor", "(JFF)V", "", ApiSince=28)]
public OisSample (long timestamp, float xShift, float yShift);
[<Android.Runtime.Register(".ctor", "(JFF)V", "", ApiSince=28)>]
new Android.Hardware.Camera2.Params.OisSample : int64 * single * single -> Android.Hardware.Camera2.Params.OisSample

Parameters

timestamp
Int64

timestamp of the OIS sample.

xShift
Single

shift of the OIS sample in x direction.

yShift
Single

shift of the OIS sample in y direction.

Attributes

Remarks

Create a new OisSample.

OisSample contains the timestamp and the amount of shifts in x and y direction, in pixels, of the OIS sample.

A positive value for a shift in x direction is a shift from left to right in active array coordinate system. For example, if the optical center is (1000, 500) in active array coordinates, a shift of (3, 0) puts the new optical center at (1003, 500).

A positive value for a shift in y direction is a shift from top to bottom in active array coordinate system. For example, if the optical center is (1000, 500) in active array coordinates, a shift of (0, 5) puts the new optical center at (1000, 505).

xShift and yShift must be finite; NaN and infinity is not allowed.

Java documentation for android.hardware.camera2.params.OisSample.OisSample(long, float, float).

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