summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPradeep Venkatasubbarao2014-11-27 23:44:11 -0600
committerPradeep Venkatasubbarao2014-11-27 23:53:12 -0600
commitd56393c4e1cde702b568f484e4d860a0746bfc0c (patch)
tree0ae55387943e9d1875b7223ac3a9c28d416af9ac /libdce.c
parent4715ea56d8a266e66bc6cef982410c602a19be43 (diff)
downloadhardware-ti-libdce-d56393c4e1cde702b568f484e4d860a0746bfc0c.tar.gz
hardware-ti-libdce-d56393c4e1cde702b568f484e4d860a0746bfc0c.tar.xz
hardware-ti-libdce-d56393c4e1cde702b568f484e4d860a0746bfc0c.zip
[Fix] Support Multiplanar encoder input buffers
An earlier patch to enable Single planar buffers for encoder broke the multiplanar support. This patch fixes this issue. Change-Id: Ide169a43b3df915a969a401e623fdad7f8792faf Signed-off-by: Pradeep Venkatasubbarao <pradeepv@ti.com>
Diffstat (limited to 'libdce.c')
-rw-r--r--libdce.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libdce.c b/libdce.c
index a51e5b3..6b664bd 100644
--- a/libdce.c
+++ b/libdce.c
@@ -654,7 +654,8 @@ static XDAS_Int32 process(void *codec, void *inBufs, void *outBufs,
654 MmRpc_OFFSET((int32_t)inBufs, (int32_t)data_buf), 654 MmRpc_OFFSET((int32_t)inBufs, (int32_t)data_buf),
655 (size_t)*data_buf, (size_t)*data_buf); 655 (size_t)*data_buf, (size_t)*data_buf);
656#ifdef BUILDOS_LINUX 656#ifdef BUILDOS_LINUX
657 if(count == CHROMA_BUF && codec_id == OMAP_DCE_VIDENC2 ){ 657 /*Single planar input buffer for Encoder. No adjustments needed for Multiplanar case*/
658 if(count == CHROMA_BUF && codec_id == OMAP_DCE_VIDENC2 && ((IVIDEO2_BufDesc *)inBufs)->planeDesc[LUMA_BUF].buf == ((IVIDEO2_BufDesc *)inBufs)->planeDesc[CHROMA_BUF].buf){
658 if(((IVIDEO2_BufDesc *)inBufs)->planeDesc[count].memType == XDM_MEMTYPE_RAW || 659 if(((IVIDEO2_BufDesc *)inBufs)->planeDesc[count].memType == XDM_MEMTYPE_RAW ||
659 ((IVIDEO2_BufDesc *)inBufs)->planeDesc[count].memType == XDM_MEMTYPE_TILEDPAGE ) 660 ((IVIDEO2_BufDesc *)inBufs)->planeDesc[count].memType == XDM_MEMTYPE_TILEDPAGE )
660 *data_buf += ((IVIDEO2_BufDesc *)inBufs)->planeDesc[LUMA_BUF].bufSize.bytes; 661 *data_buf += ((IVIDEO2_BufDesc *)inBufs)->planeDesc[LUMA_BUF].bufSize.bytes;