当前位置: 首页>>代码示例>>Java>>正文


Java CaptureFailure类代码示例

本文整理汇总了Java中android.hardware.camera2.CaptureFailure的典型用法代码示例。如果您正苦于以下问题:Java CaptureFailure类的具体用法?Java CaptureFailure怎么用?Java CaptureFailure使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


CaptureFailure类属于android.hardware.camera2包,在下文中一共展示了CaptureFailure类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: onCaptureFailed

import android.hardware.camera2.CaptureFailure; //导入依赖的package包/类
@Override
public void onCaptureFailed(@NonNull CameraCaptureSession session,
                            @NonNull CaptureRequest request,
                            @NonNull CaptureFailure failure) {
  super.onCaptureFailed(session, request, failure);
  this.session = null;
  switch (failure.getReason()) {
    case CaptureFailure.REASON_ERROR:
      Timber.e("Capture failed: REASON_ERROR");
      break;
    case CaptureFailure.REASON_FLUSHED:
      Timber.e("Capture failed: REASON_FLUSHED");
      break;
    default:
      Timber.e("Capture failed: UNKNOWN");
      break;
  }
}
 
开发者ID:zugaldia,项目名称:android-robocar,代码行数:19,代码来源:CaptureCallback.java

示例2: onCaptureFailed

import android.hardware.camera2.CaptureFailure; //导入依赖的package包/类
@Override
public void onCaptureFailed(@NonNull CameraCaptureSession session, @NonNull CaptureRequest request, @NonNull CaptureFailure failure) {
    if(request.getTag() == "FOCUS_TAG") {
        Log.d(TAG, "Manual AF failure: "+failure);
        mAutoFocusCallback.onAutoFocus(false);
    }
}
 
开发者ID:EzequielAdrianM,项目名称:Camera2Vision,代码行数:8,代码来源:Camera2Source.java

示例3: onCaptureFailed

import android.hardware.camera2.CaptureFailure; //导入依赖的package包/类
@Override
public void onCaptureFailed(CameraCaptureSession session, CaptureRequest request,
                            CaptureFailure failure) {
    int requestId = (int) request.getTag();
    synchronized (mCameraStateLock) {
        mJpegResultQueue.remove(requestId);
        mRawResultQueue.remove(requestId);
        finishedCaptureLocked();
    }
    showToast("Capture failed!");
}
 
开发者ID:OkayCamera,项目名称:OkayCamera-Android,代码行数:12,代码来源:Camera2RawFragment.java

示例4: onCaptureFailed

import android.hardware.camera2.CaptureFailure; //导入依赖的package包/类
@Override
public void onCaptureFailed(CameraCaptureSession session,
                            CaptureRequest request,
                            CaptureFailure failure) {
  getBus()
    .post(new PictureTakenEvent(new RuntimeException("generic camera2 capture failure")));
}
 
开发者ID:commonsguy,项目名称:cwac-cam2,代码行数:8,代码来源:CameraTwoEngine.java

示例5: onCaptureFailed

import android.hardware.camera2.CaptureFailure; //导入依赖的package包/类
@Override
public void onCaptureFailed(
    CameraCaptureSession session, CaptureRequest request, CaptureFailure failure) {
  Logging.d(TAG, "Capture failed: " + failure);
}
 
开发者ID:Piasy,项目名称:AppRTC-Android,代码行数:6,代码来源:Camera2Session.java

示例6: onCaptureFailed

import android.hardware.camera2.CaptureFailure; //导入依赖的package包/类
@Override
public void onCaptureFailed(CameraCaptureSession session, CaptureRequest request,
                            CaptureFailure failure) {
    Log.e(TAG, new StringBuilder().append("Capture attempt failed with reason ").append(failure.getReason()).toString());
}
 
开发者ID:cuiml123,项目名称:ideal-camera,代码行数:6,代码来源:CameraModelImpl.java

示例7: onCaptureFailed

import android.hardware.camera2.CaptureFailure; //导入依赖的package包/类
@Override
public void onCaptureFailed(CameraCaptureSession session, CaptureRequest request, CaptureFailure failure) {
  // TODO: raise event
}
 
开发者ID:code-mc,项目名称:FacerecognitionFlowpilots,代码行数:5,代码来源:CameraTwoEngine.java

示例8: onCaptureFailed

import android.hardware.camera2.CaptureFailure; //导入依赖的package包/类
@Override
public void onCaptureFailed(@NonNull CameraCaptureSession session, @NonNull CaptureRequest request, @NonNull CaptureFailure failure) {
    super.onCaptureFailed(session, request, failure);
}
 
开发者ID:cattaka,项目名称:AndroidSnippets,代码行数:5,代码来源:Camera2Engine.java


注:本文中的android.hardware.camera2.CaptureFailure类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。