Home
last modified time | relevance | path

Searched refs:ndkUsage (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/media/jni/
Dandroid_media_ImageWriter.cpp378 jint hardwareBufferFormat, jint dataSpace, jlong ndkUsage) { in ImageWriter_init() argument
502 if (!(ndkUsage == -1 && isFormatOpaque(surfaceHalFormat))) { in ImageWriter_init()
503 if (ndkUsage == -1) { in ImageWriter_init()
504 ndkUsage = GRALLOC_USAGE_SW_WRITE_OFTEN; in ImageWriter_init()
506 res = native_window_set_usage(anw.get(), ndkUsage); in ImageWriter_init()
509 __FUNCTION__, static_cast<unsigned int>(ndkUsage), in ImageWriter_init()
Dandroid_media_ImageReader.cpp381 jint maxImages, jlong ndkUsage, jint nativeHalFormat, jint dataSpace) { in ImageReader_init() argument
404 android_hardware_HardwareBuffer_convertToGrallocUsageBits(ndkUsage); in ImageReader_init()