mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
Merge "msm: vidc: Fix minimum supported resolution for HW HEIC encode"
This commit is contained in:
commit
63aa86f319
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user