video: driver: enable transcode stat for decoder

Subscribe and enable HFI_PROP_TRANSCODING_STAT_INFO property
in order to enable transcoding stat for decoder.
This stat is used further by encoder to improve encoder quality
decision for transcode case.
Ideally we want to avoid CAC-BRS multiple times for same encoded bitstream.

When user does recording (1st encode), So we have CAC enabled bitstream.
Now, if user wants to send it via some app.
So, it will be decode -> (optional GPU) -> (2nd) encode

For 2nd encode -> we would like to not apply same CAC. It needs either tuning.
But we don't have a way from bitstream to know whether it went via CAC.

This feature enables to use the stat info received from decoder to fine tune encoding.

Change-Id: Iaf640878f5554b16aad3314ba4e26f99638c43af
Signed-off-by: Mahesh Kumar Sharma <quic_smahesh@quicinc.com>
Šī revīzija ir iekļauta:
Mahesh Kumar Sharma
2022-05-16 18:16:04 -07:00
revīziju iesūtīja Gerrit - the friendly Code Review server
vecāks 094b4c057c
revīzija 8d0a217984
5 mainīti faili ar 22 papildinājumiem un 1 dzēšanām

Parādīt failu

@@ -383,6 +383,7 @@ enum msm_vidc_inst_capability_type {
META_EVA_STATS,
META_ROI_INFO,
META_SALIENCY_INFO,
META_TRANSCODING_STAT_INFO,
META_CAP_MAX,
/* end of metadata caps */
FRAME_WIDTH,