Remove MEDIA_VISION_COLORSPACE_INVALID case in convertSourceMV2GrayCV() 07/257907/1 accepted/tizen/unified/20210509.123756 submit/tizen/20210507.005054 submit/tizen/20210513.024256 submit/tizen/20210513.034723 submit/tizen/20210513.045159
authorTae-Young Chung <ty83.chung@samsung.com>
Thu, 6 May 2021 07:37:53 +0000 (16:37 +0900)
committerTae-Young Chung <ty83.chung@samsung.com>
Thu, 6 May 2021 07:38:02 +0000 (16:38 +0900)
It is one of colorspace which is not supported.
We don't need to separate it from other not supported error cases.

Change-Id: I2a757ed7338897f5638527aac7c2daec01661386
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
mv_barcode/barcode_detector/src/BarcodeUtils.cpp

index 6f4c7d2..3aca258 100644 (file)
@@ -126,9 +126,6 @@ int convertSourceMV2GrayCV(mv_source_h mvSource, cv::Mat& cvSource)
 
        int conversionType = -1; /* Type of conversion from given colorspace to gray */
        switch(colorspace) {
-       case MEDIA_VISION_COLORSPACE_INVALID:
-               LOGE("Error: mv_source has invalid colorspace.");
-               return MEDIA_VISION_ERROR_INVALID_PARAMETER;
        case MEDIA_VISION_COLORSPACE_Y800:
                channelsNumber = 1;
                /* Without convertion */