Support HAL_PIXEL_FORMAT_BLOB in default gralloc
Test: manual, ran scrcpy with codec2's blob allocator Change-Id: I647ed5b0e9df4920e4a02686185956aa71ee806e
This commit is contained in:
@@ -224,7 +224,11 @@ static int gralloc_alloc(alloc_device_t* dev,
|
||||
case HAL_PIXEL_FORMAT_RAW16:
|
||||
bytesPerPixel = 2;
|
||||
break;
|
||||
case HAL_PIXEL_FORMAT_BLOB:
|
||||
bytesPerPixel = 1;
|
||||
break;
|
||||
default:
|
||||
ALOGE("gralloc_alloc bad format %d", format);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user