MCPcopy Create free account
hub / github.com/android/ndk-samples / GetNativeWindow

Method GetNativeWindow

camera/basic/src/main/cpp/image_reader.cpp:101–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99}
100
101ANativeWindow* ImageReader::GetNativeWindow(void) {
102 if (!reader_) return nullptr;
103 ANativeWindow* nativeWindow;
104 media_status_t status = AImageReader_getWindow(reader_, &nativeWindow);
105 ASSERT(status == AMEDIA_OK, "Could not get ANativeWindow");
106
107 return nativeWindow;
108}
109
110/**
111 * GetNextImage()

Callers 1

CreateCameraMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected