summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJiyong <jiyong.min@samsung.com>2024-09-26 17:05:05 +0900
committerJiyong <jiyong.min@samsung.com>2024-09-26 17:07:38 +0900
commit29a6d8b6bf1ab89c1c007776714666bcfdc896d2 (patch)
treebee02d973bf3cd9d3eb5f3853c4faad4c75522a1
parenta9c0693b8f8ef0fe74cf1d3738fcf3b4ff3540d9 (diff)
downloadlibmm-evas-renderer-tizen_9.0.tar.gz
libmm-evas-renderer-tizen_9.0.tar.bz2
libmm-evas-renderer-tizen_9.0.zip
Change-Id: I142b7d18043dbc25277b1fb8786e6c080a046030
-rw-r--r--packaging/libmm-evas-renderer.spec2
-rw-r--r--src/mm_evas_renderer.c15
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)