video: driver: Enable Interlace for enc input buffer size calc

Gralloc / Camera allocates encoder input buffers calculated
assuming interlace enbalement. This causes driver and gralloc
enc input buffer size mismatch. Modify driver for time being,
as wrokaround to calulate enc input buffer size assuming
interlace is enabled.

Change-Id: I5f2726d46e301178d9f6bc505a27b37460aa8f41
Signed-off-by: Akshata Sahukar <asahukar@codeaurora.org>
This commit is contained in:
Akshata Sahukar
2021-06-21 16:07:05 -07:00
parent 2fc3c64665
commit bf8e7db0e7

View File

@@ -291,7 +291,7 @@ u32 msm_vidc_encoder_input_size(struct msm_vidc_inst *inst)
f = &inst->fmts[INPUT_PORT];
size = VIDEO_RAW_BUFFER_SIZE(f->fmt.pix_mp.pixelformat,
f->fmt.pix_mp.width,
f->fmt.pix_mp.height, false);
f->fmt.pix_mp.height, true);
return size;
}