diff options
author | Hyunil <hyunil46.park@samsung.com> | 2020-01-02 13:21:20 +0900 |
---|---|---|
committer | Hyunil Park <hyunil46.park@samsung.com> | 2020-01-02 04:51:40 +0000 |
commit | 7972b2198e6978520c048b264a72f91bda1f782e (patch) | |
tree | 01ff2a0f2e788793bb1edc3380b1eb7f4648356f | |
parent | e102cde00b64375fcd6872e99d90a71f22637f13 (diff) | |
download | libmm-evas-renderer-tizen_5.5.tar.gz libmm-evas-renderer-tizen_5.5.tar.bz2 libmm-evas-renderer-tizen_5.5.zip |
Add YUYV format for camera preview renderingtizen_5.5
Change-Id: I9096fe6293edd2c8e7e439d7b0a6977b9090e656
Signed-off-by: Hyunil <hyunil46.park@samsung.com>
-rw-r--r-- | packaging/libmm-evas-renderer.spec | 2 | ||||
-rw-r--r-- | src/mm_evas_renderer.c | 6 |
2 files changed, 7 insertions, 1 deletions
diff --git a/packaging/libmm-evas-renderer.spec b/packaging/libmm-evas-renderer.spec index 8ac41b0..8f99331 100644 --- a/packaging/libmm-evas-renderer.spec +++ b/packaging/libmm-evas-renderer.spec @@ -1,6 +1,6 @@ Name: libmm-evas-renderer Summary: Multimedia Framework Evas Renderer Library -Version: 0.0.23 +Version: 0.0.24 Release: 0 Group: Multimedia/Libraries License: Apache-2.0 diff --git a/src/mm_evas_renderer.c b/src/mm_evas_renderer.c index 4231401..ca40bfc 100644 --- a/src/mm_evas_renderer.c +++ b/src/mm_evas_renderer.c @@ -213,6 +213,9 @@ static gboolean _check_rendering_packet(mm_evas_info *evas_info) case TBM_FORMAT_YUV420: s_fmt = "TBM_FORMAT_YUV420"; break; + case TBM_FORMAT_YUYV: + s_fmt = "TBM_FORMAT_YUYV"; + break; default: s_fmt = "unknown"; break; @@ -1103,6 +1106,9 @@ static int _mm_evas_renderer_make_flush_buffer(mm_evas_info *evas_info) 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; + case TBM_FORMAT_YUYV: + memcpy(dst_info.planes[0].ptr, src_info.planes[0].ptr, src_info.planes[0].size); + break; default: LOGW("unsupported format"); break; |