Home
last modified time | relevance | path

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

/frameworks/base/media/jni/
Dandroid_media_ImageReader.cpp1037 int bufFmt = buffer->format; in ImageReader_lockedImageSetup() local
1039 bufFmt = buffer->flexFormat; in ImageReader_lockedImageSetup()
1041 if (imgReaderFmt != bufFmt) { in ImageReader_lockedImageSetup()
1042 if (imgReaderFmt == HAL_PIXEL_FORMAT_YCbCr_420_888 && (bufFmt == in ImageReader_lockedImageSetup()
1043 HAL_PIXEL_FORMAT_YCrCb_420_SP || bufFmt == HAL_PIXEL_FORMAT_YV12)) { in ImageReader_lockedImageSetup()
1046 ctx->setBufferFormat(bufFmt); in ImageReader_lockedImageSetup()
1047 ALOGD("%s: Overriding buffer format YUV_420_888 to %x.", __FUNCTION__, bufFmt); in ImageReader_lockedImageSetup()
1048 } else if (imgReaderFmt == HAL_PIXEL_FORMAT_BLOB && bufFmt == HAL_PIXEL_FORMAT_RGBA_8888) { in ImageReader_lockedImageSetup()
1063 bufFmt, ctx->getBufferFormat()); in ImageReader_lockedImageSetup()
/frameworks/base/core/jni/
Dandroid_hardware_camera2_legacy_LegacyCameraDevice.cpp207 int32_t bufFmt = 0; in produceFrame() local
208 err = anw->query(anw.get(), NATIVE_WINDOW_FORMAT, &bufFmt); in produceFrame()
217 if (bufFmt != pixelFmt) { in produceFrame()
218 if (bufFmt == HAL_PIXEL_FORMAT_RGBA_8888 && pixelFmt == HAL_PIXEL_FORMAT_BLOB) { in produceFrame()
223 ", but received buffer with format %#" PRIx32, __FUNCTION__, pixelFmt, bufFmt); in produceFrame()