cpp_marker_detection_example/app/src/main/jni/marker_detection_app.cc
TangoErrorType MarkerDetectionApp::SetupImageBufferManager() {
  if (image_buffer_manager_ == nullptr) {
    TangoErrorType status = TangoSupport_createImageBufferManager(
        TANGO_HAL_PIXEL_FORMAT_YCrCb_420_SP, color_camera_intrinsics_.width,
        color_camera_intrinsics_.height, &image_buffer_manager_);
    if (status != TANGO_SUCCESS) {
      LOGE(
          "MarkerDetectionApp: Failed create image buffer manager "
          "with error code: %d",
          status);
      return status;
    }
  }
  return TANGO_SUCCESS;
}
// Image buffer manager helps to cache image buffers in background.
Image buffer manager helps to cache image buffers in background.
Image buffer manager helps to cache image buffers in background .
TangoErrorType MarkerDetectionApp::SetupImageBufferManager() {
  if (image_buffer_manager_ == nullptr) {
    TangoErrorType status = TangoSupport_createImageBufferManager(
        TANGO_HAL_PIXEL_FORMAT_YCrCb_420_SP, color_camera_intrinsics_.width,
        color_camera_intrinsics_.height, &image_buffer_manager_);
    if (status != TANGO_SUCCESS) {
      LOGE(
          "MarkerDetectionApp: Failed create image buffer manager "
          "with error code: %d",
          status);
      return status;
    }
  }
  return TANGO_SUCCESS;
}
TangoErrorType MarkerDetectionApp :: SetupImageBufferManager ( ) { if ( image_buffer_manager_ == nullptr ) { TangoErrorType status = TangoSupport_createImageBufferManager ( TANGO_HAL_PIXEL_FORMAT_YCrCb_420_SP , color_camera_intrinsics_ . width , color_camera_intrinsics_ . height , & image_buffer_manager_ ) ; if ( status != TANGO_SUCCESS ) { LOGE ( " " " " , status ) ; return status ; } } return TANGO_SUCCESS ; }
Image buffer manager helps to cache image buffers in background.
Image buffer manager helps to cache image buffers in background .