Change flush buffer size for NV12 88/191288/1 accepted/tizen_5.0_unified tizen_5.0 accepted/tizen/5.0/unified/20181102.015020 accepted/tizen/unified/20181015.161510 submit/tizen/20181015.093818 submit/tizen/20181015.233150 submit/tizen_5.0/20181101.000003
authorHyunil <hyunil46.park@samsung.com>
Mon, 15 Oct 2018 09:33:49 +0000 (18:33 +0900)
committerHyunil <hyunil46.park@samsung.com>
Mon, 15 Oct 2018 09:33:49 +0000 (18:33 +0900)
Change-Id: I57cb708a67caa19e7cf83664a8cacece8685ef49
Signed-off-by: Hyunil <hyunil46.park@samsung.com>
packaging/libmm-evas-renderer.spec
src/mm_evas_renderer.c

index bc1d2aa..8dc6e66 100644 (file)
@@ -1,6 +1,6 @@
 Name:       libmm-evas-renderer
 Summary:    Multimedia Framework Evas Renderer Library
-Version:    0.0.22
+Version:    0.0.23
 Release:    0
 Group:      Multimedia/Libraries
 License:    Apache-2.0
index f5eacd5..c72f946 100644 (file)
@@ -1088,6 +1088,7 @@ static int _mm_evas_renderer_make_flush_buffer(mm_evas_info *evas_info)
 
        /* create tbm surface */
        flush_buffer->tbm_surf = tbm_surface_create(evas_info->w, evas_info->h, src_info.format);
+
        if (!flush_buffer->tbm_surf) {
                LOGE("tbm_surf is NULL!!");
                if (tbm_surface_unmap(src_tbm_surf))
@@ -1120,8 +1121,8 @@ static int _mm_evas_renderer_make_flush_buffer(mm_evas_info *evas_info)
                memcpy(dst_info.planes[2].ptr, src_info.planes[2].ptr, src_info.planes[2].size);
                break;
        case TBM_FORMAT_NV12:
-               memcpy(dst_info.planes[0].ptr, src_info.planes[0].ptr, src_info.planes[0].size);
-               memcpy(dst_info.planes[1].ptr, src_info.planes[1].ptr, src_info.planes[1].size);
+               memcpy(dst_info.planes[0].ptr, src_info.planes[0].ptr, src_info.planes[0].stride * src_info.height);
+               memcpy(dst_info.planes[1].ptr, src_info.planes[1].ptr, src_info.planes[0].stride * src_info.height / 2);
                break;
        default:
                LOGW("unsupported format");