Home
last modified time | relevance | path

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

/frameworks/base/media/jni/
Dandroid_media_ImageWriter.cpp771 static bool usingRGBAToJpegOverride(int32_t bufferFormat, int32_t writerCtxFormat) { in usingRGBAToJpegOverride() argument
772 return writerCtxFormat == HAL_PIXEL_FORMAT_BLOB && bufferFormat == HAL_PIXEL_FORMAT_RGBA_8888; in usingRGBAToJpegOverride()
775 static int32_t applyFormatOverrides(int32_t bufferFormat, int32_t writerCtxFormat) in applyFormatOverrides() argument
779 if (usingRGBAToJpegOverride(bufferFormat, writerCtxFormat)) { in applyFormatOverrides()
782 return bufferFormat; in applyFormatOverrides()
Dandroid_media_ImageReader.cpp369 static bool usingRGBAToJpegOverride(int32_t bufferFormat, int32_t readerCtxFormat) { in usingRGBAToJpegOverride() argument
370 return readerCtxFormat == HAL_PIXEL_FORMAT_BLOB && bufferFormat == HAL_PIXEL_FORMAT_RGBA_8888; in usingRGBAToJpegOverride()
373 static int32_t applyFormatOverrides(int32_t bufferFormat, int32_t readerCtxFormat) in applyFormatOverrides() argument
377 if (usingRGBAToJpegOverride(bufferFormat, readerCtxFormat)) { in applyFormatOverrides()
380 return bufferFormat; in applyFormatOverrides()