public class VideoConfig
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static float |
BPP
BPP(Bits Per Pixel)
(0.050/0.075/0.100/0.125/0.150/0.175/0.200/0.225/0.25)
|
static int |
captureFps
エンコード時のFPS
|
static int |
FPS_MAX |
static int |
FPS_MIN |
static long |
maxDuration
最大録画時間[ミリ秒], 負数=制限なし
|
static int |
maxRepeats
負は回数制限なし, 1以上なら指定回数繰り返し
|
static long |
repeatInterval
繰り返し休止時間[ミリ秒](とりあえず60秒)
|
| Constructor and Description |
|---|
VideoConfig() |
| Modifier and Type | Method and Description |
|---|---|
float |
bpp()
現在のBPP設定を取得
|
static int |
getBitrate(int width,
int height)
ビットレートを計算[bps]
|
static int |
getBitrate(int width,
int height,
int frameRate)
ビットレートを計算[bps]
|
static int |
getBitrate(int width,
int height,
int frameRate,
float bpp)
ビットレートを計算[bps]
|
static int |
getCaptureFps() |
static int |
getIFrame() |
static int |
getSizeRate(int width,
int height)
概略ファイルサイズを計算[バイト/分]
|
static void |
setBPP(float bpp)
BPPをセット
|
static void |
setBPP(int width,
int height,
int bitrate)
BPPを計算
|
static void |
setIFrame(float iframe_interval) |
public static float BPP
public static final int FPS_MIN
public static final int FPS_MAX
public static int captureFps
public static long maxDuration
public static long repeatInterval
public static int maxRepeats
public static int getCaptureFps()
public static void setIFrame(float iframe_interval)
public static final int getIFrame()
public static int getBitrate(int width,
int height)
width - height - public static int getBitrate(int width,
int height,
int frameRate)
width - height - frameRate - public static int getBitrate(int width,
int height,
int frameRate,
float bpp)
width - height - frameRate - bpp - public static void setBPP(int width,
int height,
int bitrate)
width - height - bitrate - public static void setBPP(float bpp)
throws java.lang.IllegalArgumentException
bpp - [0.05,0.3]java.lang.IllegalArgumentExceptionpublic float bpp()
public static int getSizeRate(int width,
int height)
width - height -