Category : android-camera2

Based on NDK camera sample texture-view, I want to create an ImageReader to get preview frames. What I’ve done Create the ImageReader and the camera session: yuvReader_ = new ImageReader(&compatibleCameraRes_, AIMAGE_FORMAT_YUV_420_888); camera_->CreateSession(ANativeWindow_fromSurface(env_, surface), yuvReader_->GetNativeWindow()); void NDKCamera::CreateSession(ANativeWindow* previewWindow, ANativeWindow* yuvWindow) { // Create output from this app’s ANativeWindow, and add into output container requests_[PREVIEW_REQUEST_IDX].outputNativeWindow_ = previewWindow; ..

Read more