mv_3d: bug fix 98/292598/1 accepted/tizen/7.0/unified/20230511.180842
authorsangho park <sangho.g.park@samsung.com>
Tue, 18 Apr 2023 07:58:23 +0000 (16:58 +0900)
committerTae-Young Chung <ty83.chung@samsung.com>
Wed, 10 May 2023 05:36:54 +0000 (14:36 +0900)
[Version] : 0.27.49
[Issue type] : bug fix

fix bug for no-stride Y800 image

Change-Id: I6c6671af36303fbf2134b3192cc77d244bbb983a
Signed-off-by: sangho park <sangho.g.park@samsung.com>
mv_3d/3d/src/Mv3d.cpp
mv_common/src/MediaSource.cpp
packaging/capi-media-vision.spec

index 04897bd310534c7dc7e089349b588f189af3bb37..ab434fe4c3f16290699ccdd683d78315ba1737b6 100644 (file)
@@ -215,6 +215,7 @@ void Mv3d::GetBufferFromSource(mv_source_h source, unsigned char *&buffer, unsig
        case MEDIA_VISION_COLORSPACE_I420:
        case MEDIA_VISION_COLORSPACE_NV12:
        case MEDIA_VISION_COLORSPACE_NV21:
+       case MEDIA_VISION_COLORSPACE_Y800:
                type = DFS_DATA_TYPE_UINT8C1;
                break;
        default: //NOT tested
index dd20c07221ea66f299a3c9ab3f173570aefccbb2..b2b07fd27f6a8bb6c2b3feaf852d3c64506139f0 100644 (file)
@@ -127,6 +127,7 @@ bool MediaSource::fill(const unsigned char *buffer, unsigned int bufferSize, uns
                 width, height, this);
        _width = width;
        _height = height;
+       plane.bytePerLine = _width;
 
        LOGD("Assign new colorspace (%i) of the internal buffer image for "
                 "the media source %p",
index 6b4d77d5597bc7e32a109a2a090e9d139201e689..cc2163685904da879a39dd99b155a02cd045b758 100644 (file)
@@ -1,6 +1,6 @@
 Name:        capi-media-vision
 Summary:     Media Vision library for Tizen Native API
-Version:     0.23.48
+Version:     0.23.49
 Release:     0
 Group:       Multimedia/Framework
 License:     Apache-2.0 and BSD-3-Clause