クラス | |
| class | Buffer |
| interface | Callback |
| class | Format |
| enum | PayloadType |
| enum | UncompEncodingType |
公開メンバ関数 | |
| boolean | isStreaming () |
| void | startStream (Format format, int txw, int txh, boolean decoding, Callback cb) throws OwliftException |
| void | stopStream () |
| UncompEncodingType | getUncompEncodingType () |
| int | getVersion () |
| void | setPostRecFrame (int w, int h, int sdw) |
| DecodeType | getDecodeType () |
| void | setDecodeType (DecodeType type) |
UVC Function class.
| DecodeType getDecodeType | ( | ) |
デコードタイプを取得します。
| UncompEncodingType getUncompEncodingType | ( | ) |
非圧縮ペイロードのエンコーディング形式を取得します。
startStream() を実行するまで確定しません。
| int getVersion | ( | ) |
デバイスのUVCバージョンを取得します。
| boolean isStreaming | ( | ) |
ストリーミング実行中かどうかを判断します。
| void setDecodeType | ( | DecodeType | type | ) |
デコードタイプを設定します。
| type | デコードタイプ |
| void setPostRecFrame | ( | int | w, |
| int | h, | ||
| int | sdw | ||
| ) |
Callback.recvBuffer() が呼ばれた後に録画する場合の フレームのサイズを設定することができます。
OwliftMediaRecorder.setVideoPostRecvBuffer()
startStream()で設定するtxw(受信バッファの解像度の幅)、txh(受信バッファの解像度の高さ)より小さい値を 設定する必要があります。
Callback.recvBuffer() 実行中ににBufferのデータを変更する ことで変更後の値(サイズ変更含む)を録画することができます。 OwliftMediaRecorder#start() の前に実行してください。
| w | 録画する幅。 |
| h | 録画する高さ。 |
| sdw | ストライド。 |
| void startStream | ( | Format | format, |
| int | txw, | ||
| int | txh, | ||
| boolean | decoding, | ||
| Callback | cb | ||
| ) | throws OwliftException |
ストリーミングを開始します。
| format | 画像フォーマット。 |
| txw | 受信バッファの解像度の幅。 Format.getWidth() 以上である必要があります。 |
| txh | 受信バッファの解像度の高さ。 Format.getHeight() 以上である必要があります。 |
| decoding | true のときフレームをRGB565形式にデコードします。 false のときUSBデバイスから取得されたフレームをそのまま取得します。 false のとき、txw,txh は無視されます。また、OwliftMediaRecorder は利用できなくなります。 false のとき取得されるフレームは、USBデバイスから取得されたデータそのままなので、 USB通信でエラーやパケット落ちが発生しているときは、デコードできない壊れたデータが 取得されることがあります。 ライブラリ外部でデコードするときはデコード時にエラーが発生する可能性を考慮してください。 |
| cb | コールバック用インターフェース。 |
| void stopStream | ( | ) |
ストリーミングを停止します。
|
Copyright (C) 2016 Infinitegra, INC. All Rights Reserved. |
Generated by
|