本文整理汇总了Java中android.hardware.Camera.PreviewCallback方法的典型用法代码示例。如果您正苦于以下问题:Java Camera.PreviewCallback方法的具体用法?Java Camera.PreviewCallback怎么用?Java Camera.PreviewCallback使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类android.hardware.Camera
的用法示例。
在下文中一共展示了Camera.PreviewCallback方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: MediaRecorderUtil
import android.hardware.Camera; //导入方法依赖的package包/类
public MediaRecorderUtil(Camera.PreviewCallback mCallback, Camera mCamera,
int cameraWidth, int cameraHeight) {
this.mCamera = mCamera;
this.cameraWidth = cameraWidth;
this.cameraHeight = cameraHeight;
this.mCallback = mCallback;
mMediaRecorder = new MediaRecorder();
}
示例2: setPreviewCallback
import android.hardware.Camera; //导入方法依赖的package包/类
public void setPreviewCallback(Camera.PreviewCallback callback) {
previewCallback = callback;
}
示例3: LegacyCameraConnectionFragment
import android.hardware.Camera; //导入方法依赖的package包/类
public LegacyCameraConnectionFragment(
final Camera.PreviewCallback imageListener, final int layout, final Size desiredSize) {
this.imageListener = imageListener;
this.layout = layout;
this.desiredSize = desiredSize;
}
示例4: setPreviewCallback
import android.hardware.Camera; //导入方法依赖的package包/类
public void setPreviewCallback(Camera.PreviewCallback previewCallback) {
this.previewCallback = previewCallback;
if(mCamera != null){
mCamera.setPreviewCallback(previewCallback);
}
}
示例5: actionDetect
import android.hardware.Camera; //导入方法依赖的package包/类
/**
* 开始检测脸
*/
public void actionDetect(Camera.PreviewCallback mActivity) {
if (mCamera != null) {
mCamera.setPreviewCallback(mActivity);
}
}
示例6: setPreviewCallback
import android.hardware.Camera; //导入方法依赖的package包/类
@Override
public void setPreviewCallback(Camera.PreviewCallback cb) {
camera.setPreviewCallback(cb);
}
示例7: setOneShotPreviewCallback
import android.hardware.Camera; //导入方法依赖的package包/类
@Override
public void setOneShotPreviewCallback(Camera.PreviewCallback cb) {
camera.setOneShotPreviewCallback(cb);
}
示例8: setPreviewCallbackWithBuffer
import android.hardware.Camera; //导入方法依赖的package包/类
@Override
public void setPreviewCallbackWithBuffer(Camera.PreviewCallback cb) {
camera.setPreviewCallbackWithBuffer(cb);
}
示例9: setPreviewCallback
import android.hardware.Camera; //导入方法依赖的package包/类
public void setPreviewCallback(Camera.PreviewCallback mPreviewCallback) {
this.mPreviewCallback = mPreviewCallback;
}
示例10: setPreviewCallback
import android.hardware.Camera; //导入方法依赖的package包/类
public void setPreviewCallback(Camera.PreviewCallback _previewCallback) {
previewCallback = _previewCallback;
}
示例11: setOneShotPreviewCallback
import android.hardware.Camera; //导入方法依赖的package包/类
public void setOneShotPreviewCallback(Camera.PreviewCallback callback) {
if(mCamera != null) {
mCamera.setOneShotPreviewCallback(callback);
}
}
示例12: setPreviewCallback
import android.hardware.Camera; //导入方法依赖的package包/类
public void setPreviewCallback(Camera.PreviewCallback callback) {
if(mCamera != null) {
mCamera.setPreviewCallback(callback);
}
}
示例13: setPreviewCallback
import android.hardware.Camera; //导入方法依赖的package包/类
/**
* See <a href="http://developer.android.com/reference/android/hardware/Camera.html#setPreviewCallback%28android.hardware.Camera.PreviewCallback%29">Camera.setPreviewCallback(..)</a>
*/
void setPreviewCallback(Camera.PreviewCallback cb);
示例14: setOneShotPreviewCallback
import android.hardware.Camera; //导入方法依赖的package包/类
/**
* See <a href="http://developer.android.com/reference/android/hardware/Camera.html#setOneShotPreviewCallback%28android.hardware.Camera.PreviewCallback%29">Camera.setOneShotPreviewCallback(..)</a>
*/
void setOneShotPreviewCallback(Camera.PreviewCallback cb);
示例15: setPreviewCallbackWithBuffer
import android.hardware.Camera; //导入方法依赖的package包/类
/**
* See <a href="http://developer.android.com/reference/android/hardware/Camera.html#setPreviewCallbackWithBuffer%28android.hardware.Camera.PreviewCallback%29">Camera.setPreviewCallbackWithBuffer(..)</a>
*/
void setPreviewCallbackWithBuffer(Camera.PreviewCallback cb);