Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed the issue that sw codec fails to validate 10-bit type buffer
The function validateBufferSize fails when sw codec allocates buffer with HAL_PIXEL_FORMAT_YCBCR_P010. The reason is that the pixel format will be converted to drm format for allocating buffer, then the format of the handle is assigned to HAL_PIXEL_ format type with i915_private_invert_format, but the descriptor.format is still the pixel format, they must be different when checked in validateBufferSize. So we check the format type after uniformly converting the pixel/HAL format to drm format. Tracked-On: OAM-111243 Signed-off-by: zhangyichix <yichix.zhang@intel.com>
- Loading branch information