Classes | |
class | Buffer |
interface | Callback |
class | Format |
enum | PayloadType |
enum | UncompEncodingType |
Public Member Functions | |
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 | ( | ) |
Returns decode type.
UncompEncodingType getUncompEncodingType | ( | ) |
Gets the encoding format of uncompressed payload.
It doesn't fix until calling startStream().
int getVersion | ( | ) |
Returns UVC version of device.
boolean isStreaming | ( | ) |
Tests if this object is streaming.
void setDecodeType | ( | DecodeType | type | ) |
Sets decode type.
type | decode type. |
void setPostRecFrame | ( | int | w, |
int | h, | ||
int | sdw | ||
) |
You can set frame size to record after call Callback.recvBuffer() function.
OwliftMediaRecorder.setVideoPostRecvBuffer()
You must set w, h lower than txw, txh that be set startStream().
You can record picture that change at Callback.recvBuffer().
w | width. |
h | height. |
sdw | stride. |
void startStream | ( | Format | format, |
int | txw, | ||
int | txh, | ||
boolean | decoding, | ||
Callback | cb | ||
) | throws OwliftException |
Starts streaming.
format | Image format. |
txw | width of receiving buffer. It requires greater than or equal the value of Format.getWidth(). |
txh | height of receiving buffer. It requires greater than or equal the value of Format.getHeight(). |
decoding | If sets true, frame data is decoding to RGB565 format. If sets false, frame data is raw data from USB device. and ignored txw and txh. In addition, can't use OwliftMediaRecorder The raw data from USB device has a possibility to get unusual data due to missing packet and/or USB transaction error. In that case, please consider it can't decode normally(may get Error) in any other library and/or applications. |
cb | Callback. |
OwliftException |
void stopStream | ( | ) |
Stops streaming.
Copyright (C) 2016 Infinitegra, INC. All Rights Reserved. |
Generated by
![]() |