video: driver: fix line and dpb buffers for enc
- Removed internal bufsize hack to increase bufsize by 100MB. - update enc internal buf size adn count macros to align with video fw macro definitions. P4 cl: 28472789 and 28496178 Change-Id: I30a4d043a07c6e890d58f4138590f112d192080a Signed-off-by: Akshata Sahukar <asahukar@codeaurora.org>
This commit is contained in:
@@ -270,7 +270,7 @@ static u32 msm_vidc_encoder_bin_size_iris2(struct msm_vidc_inst *inst)
|
||||
static u32 msm_vidc_encoder_comv_size_iris2(struct msm_vidc_inst* inst)
|
||||
{
|
||||
u32 size = 0;
|
||||
u32 width, height, num_ref;
|
||||
u32 width, height, num_ref = 0, num_recon = 0;
|
||||
struct v4l2_format* f;
|
||||
|
||||
if (!inst || !inst->core) {
|
||||
@@ -284,13 +284,15 @@ static u32 msm_vidc_encoder_comv_size_iris2(struct msm_vidc_inst* inst)
|
||||
|
||||
if (inst->codec == MSM_VIDC_H264) {
|
||||
// TODO: replace zeros with appropriate variables
|
||||
HFI_IRIS2_ENC_RECON_BUF_COUNT(num_ref, 0, 0, 0, 0, 0,
|
||||
HFI_IRIS2_ENC_RECON_BUF_COUNT(num_recon, 0, 0, 0, 0, 0,
|
||||
HFI_CODEC_ENCODE_AVC);
|
||||
num_ref = num_recon - 1;
|
||||
HFI_BUFFER_COMV_H264E(size, width, height, num_ref);
|
||||
} else if (inst->codec == MSM_VIDC_HEVC) {
|
||||
// TODO: replace zeros with appropriate variables
|
||||
HFI_IRIS2_ENC_RECON_BUF_COUNT(num_ref, 0, 0, 0, 0, 0,
|
||||
HFI_IRIS2_ENC_RECON_BUF_COUNT(num_recon, 0, 0, 0, 0, 0,
|
||||
HFI_CODEC_ENCODE_HEVC);
|
||||
num_ref = num_recon - 1;
|
||||
HFI_BUFFER_COMV_H265E(size, width, height, num_ref);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user