diff options
author | Jiyong <jiyong.min@samsung.com> | 2024-09-26 17:05:05 +0900 |
---|---|---|
committer | Jiyong <jiyong.min@samsung.com> | 2024-09-26 17:07:38 +0900 |
commit | 29a6d8b6bf1ab89c1c007776714666bcfdc896d2 (patch) | |
tree | bee02d973bf3cd9d3eb5f3853c4faad4c75522a1 | |
parent | a9c0693b8f8ef0fe74cf1d3738fcf3b4ff3540d9 (diff) | |
download | libmm-evas-renderer-tizen_9.0.tar.gz libmm-evas-renderer-tizen_9.0.tar.bz2 libmm-evas-renderer-tizen_9.0.zip |
Add tbm_debug.h header and missing spacestizen_9.0_m2_releaseaccepted/tizen/unified/x/asan/20241013.235523accepted/tizen/unified/x/20241006.082009accepted/tizen/unified/toolchain/20241022.122747accepted/tizen/unified/toolchain/20241022.122251accepted/tizen/unified/20241004.041825accepted/tizen/9.0/unified/20241030.233953tizen_9.0tizenaccepted/tizen_unified_x_asanaccepted/tizen_unified_xaccepted/tizen_unified_toolchainaccepted/tizen_unifiedaccepted/tizen_9.0_unified
Change-Id: I142b7d18043dbc25277b1fb8786e6c080a046030
-rw-r--r-- | packaging/libmm-evas-renderer.spec | 2 | ||||
-rw-r--r-- | src/mm_evas_renderer.c | 15 |
2 files changed, 9 insertions, 8 deletions
diff --git a/packaging/libmm-evas-renderer.spec b/packaging/libmm-evas-renderer.spec index 6b28d8c..ef7abaa 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.28 +Version: 0.0.29 Release: 0 Group: Multimedia/Libraries License: Apache-2.0 diff --git a/src/mm_evas_renderer.c b/src/mm_evas_renderer.c index 5231c13..c75d9ea 100644 --- a/src/mm_evas_renderer.c +++ b/src/mm_evas_renderer.c @@ -28,6 +28,7 @@ #include <mm_error.h> #include <tbm_surface.h> #include <tbm_surface_internal.h> +#include <tbm_debug.h> #include "mm_evas_renderer_private.h" @@ -272,7 +273,7 @@ static void _mm_evas_renderer_surface_set(mm_evas_info *evas_info) #ifdef _INTERNAL_DEBUG_ int ret2 = 0; - if ((g_cnt_out%5 == 0) && (g_cnt_out < 500)) + if ((g_cnt_out % 5 == 0) && (g_cnt_out < 500)) ret2 = __dump_surf(evas_info->pkt_info[cur_idx].tbm_surf); if (ret2) LOGW("__dump_surf() is failed"); @@ -401,22 +402,22 @@ static int __dump_pkt(media_packet_h pkt, int width, int height) if (plane_num == 2) { /* hw codec(NV12) */ media_packet_get_video_plane_data_ptr(pkt, 1, (void **)&data); media_packet_get_video_stride_width(pkt, 1, &stride_width); - for (i = 0; i < height/2; i++) { + for (i = 0; i < height / 2; i++) { fwrite(data, width, 1, fp); data += stride_width; } } else if (plane_num == 3) { /* sw codec(YUV420) */ media_packet_get_video_plane_data_ptr(pkt, 1, (void **)&data); media_packet_get_video_stride_width(pkt, 1, &stride_width); - for (i = 0; i < height/2; i++) { - fwrite(data, width/2, 1, fp); + for (i = 0; i < height / 2; i++) { + fwrite(data, width / 2, 1, fp); data += stride_width; } LOGI("[1]stride : %d, %d", stride_width, stride_height); media_packet_get_video_plane_data_ptr(pkt, 2, (void **)&data); media_packet_get_video_stride_width(pkt, 2, &stride_width); - for (i = 0; i < height/2; i++) { - fwrite(data, width/2, 1, fp); + for (i = 0; i < height / 2; i++) { + fwrite(data, width / 2, 1, fp); data += stride_width; } LOGI("[2]stride : %d, %d", stride_width, stride_height); @@ -1329,7 +1330,7 @@ void mm_evas_renderer_write(media_packet_h packet, void *data) #ifdef _INTERNAL_DEBUG_ int ret2 = 0; - if ((g_cnt_in%10 == 0) && (g_cnt_in < 500)) + if ((g_cnt_in % 10 == 0) && (g_cnt_in < 500)) ret2 = __dump_pkt(packet, handle->w, handle->h); if (ret2) |