public class Size
extends java.lang.Object
implements android.os.Parcelable
Modifier and Type | Field and Description |
---|---|
static android.os.Parcelable.Creator<Size> |
CREATOR |
float[] |
fps |
int |
frame_type
native側のraw_frame_tの値, androusb用,
libuvcは対応していない
|
int |
frameIntervalIndex |
int |
frameIntervalType |
int |
height |
int |
index |
int[] |
intervals |
int |
type
native側のuvc_raw_format_tの値, こっちは主にlibuvc用
9999 is still image
|
int |
width |
Constructor and Description |
---|
Size(int _type,
int _frame_type,
int _index,
int _width,
int _height)
コンストラクタ
|
Size(int _type,
int _frame_type,
int _index,
int _width,
int _height,
int[] _intervals)
コンストラクタ
|
Size(int _type,
int _frame_type,
int _index,
int _width,
int _height,
int _min_intervals,
int _max_intervals,
int _step)
コンストラクタ
|
Size(Size other)
コピーコンストラクタ
|
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
float |
getCurrentFrameRate() |
Size |
set(Size other) |
void |
setCurrentFrameRate(float frameRate) |
java.lang.String |
toString() |
void |
updateFrameRate() |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
public int type
public int frame_type
public int index
public int width
public int height
public int frameIntervalType
public int frameIntervalIndex
public int[] intervals
public float[] fps
public static final android.os.Parcelable.Creator<Size> CREATOR
public Size(int _type, int _frame_type, int _index, int _width, int _height)
_type
- native側のraw_format_tの値, ただし9999は静止画_frame_type
- native側のraw_frame_tの値_index
- _width
- _height
- public Size(int _type, int _frame_type, int _index, int _width, int _height, int _min_intervals, int _max_intervals, int _step)
_type
- native側のraw_format_tの値, ただし9999は静止画_frame_type
- native側のraw_frame_tの値_index
- _width
- _height
- _min_intervals
- _max_intervals
- public Size(int _type, int _frame_type, int _index, int _width, int _height, int[] _intervals)
_type
- native側のraw_format_tの値, ただし9999は静止画_frame_type
- native側のraw_frame_tの値_index
- _width
- _height
- _intervals
- public Size(Size other)
other
- public float getCurrentFrameRate() throws java.lang.IllegalStateException
java.lang.IllegalStateException
public void setCurrentFrameRate(float frameRate)
public int describeContents()
describeContents
in interface android.os.Parcelable
public void writeToParcel(android.os.Parcel dest, int flags)
writeToParcel
in interface android.os.Parcelable
public void updateFrameRate()
public java.lang.String toString()
toString
in class java.lang.Object