Java 类org.webrtc.videoengine.VideoCaptureAndroid 实例源码

项目:CSipSimple    文件:CameraUtils8.java   
@Override
public void setCallback(VideoCaptureAndroid captureAndroid, int numCaptureBuffers,
        int bufSize,
        Camera camera) {
    // According to Doc addCallbackBuffer belongs to API level 8.
    // But it seems like it works on Android 2.1 as well.
    // At least SE X10 and Milestone
    byte[] buffer = null;
    for (int i = 0; i < numCaptureBuffers; i++) {
        buffer = new byte[bufSize];
        camera.addCallbackBuffer(buffer);
    }

    camera.setPreviewCallbackWithBuffer(captureAndroid);

    ownsBuffers = true;
}
项目:CSipSimple    文件:CameraUtils5.java   
@Override
public void setCallback(VideoCaptureAndroid captureAndroid, int numCaptureBuffers, int bufSize,
        Camera camera) {

    camera.setPreviewCallback(captureAndroid);
}
项目:CSipSimple    文件:CameraUtils3.java   
@Override
public void setCallback(VideoCaptureAndroid captureAndroid, int numCaptureBuffers, int bufSize,
        Camera camera) {
    // TODO Auto-generated method stub

}
项目:CSipSimple    文件:CameraUtilsWrapper.java   
/**
 * Set the callback for video camera. depending on android version it may use the VideoCaptureAndroid as preview call back or use some buffer callback
 * @param captureAndroid the VideoCaptureAndroid instance
 * @param numCaptureBuffers number of capture buffers avail
 * @param bufSize buffer size
 * @param camera camera to use
 */
public abstract void setCallback(VideoCaptureAndroid captureAndroid, int numCaptureBuffers,
        int bufSize, Camera camera);