diff options
author | Mahesh Lanka <mlanka@codeaurora.org> | 2018-01-12 10:59:31 +0800 |
---|---|---|
committer | Santhosh Behara <santhoshbehara@codeaurora.org> | 2018-04-05 13:11:02 +0530 |
commit | 97f9efccd079f4e02eac849c75f703ce0e1df38f (patch) | |
tree | 9f9a8d6c9055d410e6e6960a72288ed0cdbe1ee3 | |
parent | 8fca0a2eadc19135a918b949897efaf208ce5427 (diff) | |
download | android_hardware_qcom_sdm845_media-97f9efccd079f4e02eac849c75f703ce0e1df38f.tar.gz android_hardware_qcom_sdm845_media-97f9efccd079f4e02eac849c75f703ce0e1df38f.tar.bz2 android_hardware_qcom_sdm845_media-97f9efccd079f4e02eac849c75f703ce0e1df38f.zip |
mm-video-v4l2: vdec: allow C2D convert from NV12_UBWC to 420SP
Modified the color format check condition to allow C2D convert
from NV12_UBWC to YUV420SP.
Change-Id: I44d553d9eaed28cbc63c8e74b4cc2e588d372849
CRs-Fixed: 2171163
-rw-r--r-- | mm-video-v4l2/vidc/vdec/src/omx_vdec_v4l2.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mm-video-v4l2/vidc/vdec/src/omx_vdec_v4l2.cpp b/mm-video-v4l2/vidc/vdec/src/omx_vdec_v4l2.cpp index 3c84551c..a7544bc4 100644 --- a/mm-video-v4l2/vidc/vdec/src/omx_vdec_v4l2.cpp +++ b/mm-video-v4l2/vidc/vdec/src/omx_vdec_v4l2.cpp @@ -1,5 +1,5 @@ /*-------------------------------------------------------------------------- -Copyright (c) 2010 - 2017, The Linux Foundation. All rights reserved. +Copyright (c) 2010 - 2018, The Linux Foundation. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: @@ -11170,7 +11170,8 @@ bool omx_vdec::allocate_color_convert_buf::update_buffer_req() if (status != false) { if (omx->drv_ctx.output_format != VDEC_YUV_FORMAT_NV12 && - ColorFormat != OMX_COLOR_FormatYUV420Planar) { + (ColorFormat != OMX_COLOR_FormatYUV420Planar && + ColorFormat != OMX_COLOR_FormatYUV420SemiPlanar)) { DEBUG_PRINT_ERROR("update_buffer_req: Unsupported color conversion"); status = false; } else { |