Merge "msm: vidc: Fix minimum supported resolution for HW HEIC encode"

This commit is contained in:
qctecmdr Service 2018-08-24 12:24:01 -07:00 committed by Gerrit - the friendly Code Review server
commit 63aa86f319

View File

@ -2431,10 +2431,10 @@ bool heic_encode_session_supported(struct msm_vidc_inst *inst)
n_bframes == 0 &&
n_pframes == 0) {
if (inst->grid_enable > 0) {
if (!(inst->prop.height[CAPTURE_PORT] ==
inst->prop.width[CAPTURE_PORT] &&
inst->prop.width[CAPTURE_PORT] ==
HEIC_GRID_DIMENSION))
if (inst->prop.width[CAPTURE_PORT] <
HEIC_GRID_DIMENSION ||
inst->prop.height[CAPTURE_PORT] <
HEIC_GRID_DIMENSION)
return false;
}
return true;