| 337 | } |
| 338 | |
| 339 | void Camera::startCapture( const std::string& deviceId, int width, int height ) |
| 340 | { |
| 341 | mWidth = width; |
| 342 | mHeight = height; |
| 343 | |
| 344 | /* |
| 345 | jobject javaObject = ci::android::app::CinderNativeActivity::getJavaObject(); |
| 346 | JniHelper::Get()->CallVoidMethod( javaObject, Java::hardware_camera_startCapture, (jint)mWidth, (jint)mHeight ); |
| 347 | */ |
| 348 | |
| 349 | jobject javaObject = ci::android::app::CinderNativeActivity::getJavaObject(); |
| 350 | jstring jstrDeviceId = JniHelper::Get()->NewStringUTF( deviceId ); |
| 351 | JniHelper::Get()->CallVoidMethod( javaObject, Java::hardware_camera_startCapture, jstrDeviceId, (jint)mWidth, (jint)mHeight ); |
| 352 | JniHelper::Get()->DeleteLocalRef( jstrDeviceId ); |
| 353 | |
| 354 | mCapturing = true; |
| 355 | } |
| 356 | |
| 357 | void Camera::stopCapture() |
| 358 | { |
no test coverage detected