am d6046a44: EmulatedFakeCamera2: Add shim to work around FORMAT_ZSL.
* commit 'd6046a445fe4e2896cfbd66cf7d5e0545ab34af2': EmulatedFakeCamera2: Add shim to work around FORMAT_ZSL.
This commit is contained in:
@@ -266,6 +266,11 @@ int EmulatedFakeCamera2::allocateStream(
|
|||||||
uint32_t *max_buffers) {
|
uint32_t *max_buffers) {
|
||||||
Mutex::Autolock l(mMutex);
|
Mutex::Autolock l(mMutex);
|
||||||
|
|
||||||
|
// Temporary shim until FORMAT_ZSL is removed
|
||||||
|
if (format == CAMERA2_HAL_PIXEL_FORMAT_ZSL) {
|
||||||
|
format = HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED;
|
||||||
|
}
|
||||||
|
|
||||||
if (format != HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED) {
|
if (format != HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED) {
|
||||||
unsigned int numFormats = sizeof(kAvailableFormats) / sizeof(uint32_t);
|
unsigned int numFormats = sizeof(kAvailableFormats) / sizeof(uint32_t);
|
||||||
unsigned int formatIdx = 0;
|
unsigned int formatIdx = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user