public class UVCCameraHandlerMultiSurface
extends android.os.Handler
| Modifier and Type | Class and Description |
|---|---|
static interface |
com.serenegiant.usbcameracommon.AbstractUVCCameraHandler.CameraCallback |
| Modifier | Constructor and Description |
|---|---|
protected |
UVCCameraHandlerMultiSurface(com.serenegiant.usbcameracommon.AbstractUVCCameraHandler.CameraThread thread) |
| Modifier and Type | Method and Description |
|---|---|
void |
addCallback(com.serenegiant.usbcameracommon.AbstractUVCCameraHandler.CameraCallback callback) |
void |
addSurface(int surfaceId,
android.view.Surface surface,
boolean isRecordable) |
void |
captureStill() |
void |
captureStill(java.lang.String path) |
protected void |
checkReleased() |
boolean |
checkSupportFlag(long flag) |
void |
close() |
static UVCCameraHandlerMultiSurface |
createHandler(android.app.Activity parent,
CameraViewInterface cameraView,
int width,
int height)
create UVCCameraHandlerMultiSurface, use MediaVideoEncoder, try MJPEG, default bandwidth
|
static UVCCameraHandlerMultiSurface |
createHandler(android.app.Activity parent,
CameraViewInterface cameraView,
int width,
int height,
float bandwidthFactor)
create UVCCameraHandlerMultiSurface, use MediaVideoEncoder, try MJPEG
|
static UVCCameraHandlerMultiSurface |
createHandler(android.app.Activity parent,
CameraViewInterface cameraView,
int encoderType,
int width,
int height)
create UVCCameraHandlerMultiSurface, try MJPEG, default bandwidth
|
static UVCCameraHandlerMultiSurface |
createHandler(android.app.Activity parent,
CameraViewInterface cameraView,
int encoderType,
int width,
int height,
int format)
create UVCCameraHandlerMultiSurface, default bandwidth
|
static UVCCameraHandlerMultiSurface |
createHandler(android.app.Activity parent,
CameraViewInterface cameraView,
int encoderType,
int width,
int height,
int format,
float bandwidthFactor)
create UVCCameraHandlerMultiSurface
|
int |
getHeight() |
int |
getValue(int flag) |
int |
getWidth() |
void |
handleMessage(android.os.Message msg) |
protected boolean |
isCameraThread() |
boolean |
isEqual(android.hardware.usb.UsbDevice device) |
boolean |
isOpened() |
boolean |
isPreviewing() |
boolean |
isRecording() |
protected boolean |
isReleased() |
void |
open(USBMonitor.UsbControlBlock ctrlBlock) |
void |
release() |
void |
removeCallback(com.serenegiant.usbcameracommon.AbstractUVCCameraHandler.CameraCallback callback) |
void |
removeSurface(int surfaceId) |
int |
resetValue(int flag) |
void |
resize(int width,
int height) |
int |
setValue(int flag,
int value) |
void |
startPreview() |
protected void |
startPreview(java.lang.Object surface) |
void |
startRecording() |
void |
stopPreview() |
void |
stopRecording() |
protected void |
updateMedia(java.lang.String path) |
dispatchMessage, dump, getLooper, getMessageName, hasMessages, hasMessages, obtainMessage, obtainMessage, obtainMessage, obtainMessage, obtainMessage, post, postAtFrontOfQueue, postAtTime, postAtTime, postDelayed, removeCallbacks, removeCallbacks, removeCallbacksAndMessages, removeMessages, removeMessages, sendEmptyMessage, sendEmptyMessageAtTime, sendEmptyMessageDelayed, sendMessage, sendMessageAtFrontOfQueue, sendMessageAtTime, sendMessageDelayed, toStringprotected UVCCameraHandlerMultiSurface(com.serenegiant.usbcameracommon.AbstractUVCCameraHandler.CameraThread thread)
public static final UVCCameraHandlerMultiSurface createHandler(android.app.Activity parent, CameraViewInterface cameraView, int width, int height)
parent - cameraView - width - height - public static final UVCCameraHandlerMultiSurface createHandler(android.app.Activity parent, CameraViewInterface cameraView, int width, int height, float bandwidthFactor)
parent - cameraView - width - height - bandwidthFactor - public static final UVCCameraHandlerMultiSurface createHandler(android.app.Activity parent, CameraViewInterface cameraView, int encoderType, int width, int height)
parent - cameraView - encoderType - width - height - public static final UVCCameraHandlerMultiSurface createHandler(android.app.Activity parent, CameraViewInterface cameraView, int encoderType, int width, int height, int format)
parent - cameraView - encoderType - width - height - format - public static final UVCCameraHandlerMultiSurface createHandler(android.app.Activity parent, CameraViewInterface cameraView, int encoderType, int width, int height, int format, float bandwidthFactor)
parent - cameraView - encoderType - 0: use MediaSurfaceEncoder, 1: use MediaVideoEncoder, 2: use MediaVideoBufferEncoderwidth - height - format - either UVCCamera.FRAME_FORMAT_YUYV(0) or UVCCamera.FRAME_FORMAT_MJPEG(1)bandwidthFactor - public void release()
public void resize(int width,
int height)
public void startPreview()
public void addSurface(int surfaceId,
android.view.Surface surface,
boolean isRecordable)
public void removeSurface(int surfaceId)
public void captureStill()
public void captureStill(java.lang.String path)
public int getWidth()
public int getHeight()
public boolean isOpened()
public boolean isPreviewing()
public boolean isRecording()
public boolean isEqual(android.hardware.usb.UsbDevice device)
protected boolean isCameraThread()
protected boolean isReleased()
protected void checkReleased()
public void open(USBMonitor.UsbControlBlock ctrlBlock)
public void close()
protected void startPreview(java.lang.Object surface)
public void stopPreview()
public void startRecording()
public void stopRecording()
public void addCallback(com.serenegiant.usbcameracommon.AbstractUVCCameraHandler.CameraCallback callback)
public void removeCallback(com.serenegiant.usbcameracommon.AbstractUVCCameraHandler.CameraCallback callback)
protected void updateMedia(java.lang.String path)
public boolean checkSupportFlag(long flag)
public int getValue(int flag)
public int setValue(int flag,
int value)
public int resetValue(int flag)
public void handleMessage(android.os.Message msg)
handleMessage in class android.os.Handler