From: Tae-Young Chung Date: Mon, 14 Nov 2022 02:58:20 +0000 (+0900) Subject: Change default value of MV_3D_DEPTH_MODE in json to '1', X-Git-Tag: accepted/tizen/unified/20230113.091231~14^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=323deebb2bf8413e952e4f8b5faf9ce3ce020093;p=platform%2Fcore%2Fapi%2Fmediavision.git Change default value of MV_3D_DEPTH_MODE in json to '1', and add error return when the mode is MV_3D_DEPTH_MODE_NONE [Issue type] update and bug fix Change-Id: I23d73be70123c07ae7d2bd931207e9f4e90ff5b3 Signed-off-by: Tae-Young Chung --- diff --git a/media-vision-config.json b/media-vision-config.json index 136ab1b..abd55a3 100644 --- a/media-vision-config.json +++ b/media-vision-config.json @@ -256,7 +256,7 @@ { "name" : "MV_3D_DEPTH_MODE", "type" : "integer", - "value" : 0 + "value" : 1 }, { "name" : "MV_3D_DEPTH_WIDTH", diff --git a/mv_3d/3d/src/Mv3d.cpp b/mv_3d/3d/src/Mv3d.cpp index 6cd83b7..4bbee8c 100644 --- a/mv_3d/3d/src/Mv3d.cpp +++ b/mv_3d/3d/src/Mv3d.cpp @@ -156,6 +156,11 @@ namespace mv3d int Mv3d::Prepare() { + if (mMode == MV_3D_DEPTH_MODE_NONE) { + LOGE("Invalid Operation. Set proper MV_3D_DEPTH_MODE"); + return MEDIA_VISION_ERROR_INVALID_OPERATION; + } + if (!mDfsAdaptor) { LOGE("Invalid Opertation. Do Configure first."); return MEDIA_VISION_ERROR_INVALID_OPERATION;