[ITC][media-vision][ACR-1471][Added enumeration for mv_config_attribute_type_e] 84/216284/2
authorMOHIT MIGLANI <mohit.m@samsung.com>
Wed, 23 Oct 2019 04:00:24 +0000 (09:30 +0530)
committershobhit verma <shobhit.v@samsung.com>
Thu, 24 Oct 2019 03:42:30 +0000 (03:42 +0000)
Change-Id: Icaa5bdb737d87a535a60d13f901f9e220a7fbeaf
Signed-off-by: MOHIT MIGLANI <mohit.m@samsung.com>
src/itc/media-vision/ITs-media-vision-barcode.c
src/itc/media-vision/ITs-media-vision-common.h

index ea1c26fd1e5019c00a0b3460bef03b7bf788ad90..5805a3464b0ec93dac5b3f7c30911ec48fa818ac 100755 (executable)
@@ -79,10 +79,18 @@ bool MvSupportedAttributeCallBack(mv_config_attribute_type_e attribute_type, con
                                g_CallBackHit = true;
                        }
                        break;
+               case MV_ENGINE_CONFIG_ATTR_TYPE_ARRAY_STRING:
+                       if(strlen(g_szArrayStringAttribute) <= 0)
+                       {
+                               strncpy(g_szArrayStringAttribute, attribute_name,  PATHLEN -1);
+                               nCount++;
+                               g_CallBackHit = true;
+                       }
+                       break;
        }
 
 //If all attributes are available quit the loop else wait for availability of others
-       if(nCount >= 4)
+       if(nCount >= 5)
        {
                QuitGmainLoop();
                return false;
index 0251208f889319ec8dad09cd95368dc62e6bc6f6..6c56b4defc36d10a801fb304216283f12604caca 100755 (executable)
@@ -232,6 +232,7 @@ char g_szDoubleAttribute[PATHLEN];
 char g_szIntAttribute[PATHLEN];
 char g_szBoolAttribute[PATHLEN];
 char g_szStringAttribute[PATHLEN];
+char g_szArrayStringAttribute[PATHLEN];
 int nCount;
 mv_rectangle_s g_sRectangle;
 mv_point_s g_sPoint;