media: Fix getting image grid parameter

For HEIF HW encode, the framework does need to always call
set_parameter for OMX_IndexParamVideoAndroidImageGrid. However,
it queries same index to check the supported configuration.
Also, it indicates appropriate codec based on mime type.
Component, thereafter, always enables grid when mime type is HEIC
and provides tile related info back - based on actual frame width
and height - when queried by the frameworks.
Bugnizer ID: 138397508
Required frameworks change:
https://keystone-qcom-review.googlesource.com/c/platform/frameworks/av/+/244139

Change-Id: I6f64ab936f33bd797ea4af88dac4caf42b1f0862
Signed-off-by: Govindaraj Rajagopal <grajagop@codeaurora.org>
5 files changed