1
0
Fork 0
mirror of https://github.com/followmsi/android_kernel_google_msm.git synced 2024-11-06 23:17:41 +00:00

msm: vidc: No need to allocate metadata by default

If metadata is not enabled by client, there is no need
to enable it by default.

Change-Id: I6d5bd1c04dcdf78549afac57bcaceb82602da270
Signed-off-by: Deepak Verma <dverma@codeaurora.org>
This commit is contained in:
Deepak Verma 2014-02-25 16:37:07 +05:30 committed by Artem Borisov
parent b4cae04f14
commit c5aa9f6b0e
2 changed files with 2 additions and 5 deletions
drivers/video/msm/vidc/1080p/ddl

View file

@ -1,4 +1,4 @@
/* Copyright (c) 2010-2013, The Linux Foundation. All rights reserved.
/* Copyright (c) 2010-2014, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
@ -199,8 +199,6 @@ void ddl_set_default_decoder_metadata_buffer_size(struct ddl_decoder_data
u32 flag = decoder->meta_data_enable_flag;
u32 suffix = 0, size = 0;
if (!flag) {
output_buf_req->meta_buffer_size =
DDL_SECURE_METADATA_DEFAULT_SIZE;
decoder->suffix = 0;
return;
}

View file

@ -1,4 +1,4 @@
/* Copyright (c) 2010-2013, The Linux Foundation. All rights reserved.
/* Copyright (c) 2010-2014, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
@ -19,7 +19,6 @@
#define DDL_METADATA_EXTRAPAD_SIZE 256
#define DDL_METADATA_HDR_SIZE 20
#define DDL_METADATA_EXTRADATANONE_SIZE 24
#define DDL_SECURE_METADATA_DEFAULT_SIZE 8192
#define DDL_METADATA_ALIGNSIZE(x) ((x) = (((x) + 0x7) & ~0x7))
#define DDL_METADATA_MANDATORY \
(VCD_METADATA_DATANONE | VCD_METADATA_QCOMFILLER)