correct email address
[platform/core/uifw/libtdm.git] / src / tdm_helper.c
index c7e0983..61971e5 100644 (file)
@@ -9,7 +9,7 @@
  *          Taeheon Kim <th908.kim@samsung.com>,
  *          YoungJun Cho <yj44.cho@samsung.com>,
  *          SooChan Lim <sc1.lim@samsung.com>,
- *          Boram Park <sc1.lim@samsung.com>
+ *          Boram Park <boram1288.park@samsung.com>
  *
  * Permission is hereby granted, free of charge, to any person obtaining a
  * copy of this software and associated documentation files (the
@@ -291,6 +291,11 @@ tdm_helper_dump_buffer(tbm_surface_h buffer, const char *file)
                strncat(p, ext, 3);
                p += 3;
                *p = '\0';
+       } else {
+               len = strnlen(file, TDM_PATH_LEN - 1);
+               strncat(p, file, len);
+               p += len;
+               *p = '\0';
        }
 
        tdm_helper_get_buffer_full_size(buffer, &bw, &bh);
@@ -326,13 +331,6 @@ tdm_helper_dump_buffer(tbm_surface_h buffer, const char *file)
                                                         info.planes[1].size, NULL,
                                                         0);
                break;
-       case TBM_FORMAT_YUYV:
-       case TBM_FORMAT_UYVY:
-               _tdm_helper_dump_raw((const char*)temp,
-                                                        info.planes[0].ptr,
-                                                        info.planes[0].size, NULL, 0,
-                                                        NULL, 0);
-               break;
        default:
                TDM_ERR("can't dump %c%c%c%c buffer", FOURCC_STR(info.format));
                tbm_surface_unmap(buffer);
@@ -383,22 +381,6 @@ tdm_helper_clear_buffer_color(tbm_surface_h buffer, tdm_pos *pos, unsigned int c
                memset((char*)info.planes[0].ptr, 0x10, info.planes[0].stride * info.height);
                memset((char*)info.planes[1].ptr, 0x80, info.planes[1].stride * (info.height >> 1));
                break;
-       case TBM_FORMAT_YUYV: {
-               int *ibuf = (int*)info.planes[0].ptr;
-               int i, size = info.planes[0].stride * info.height / 4;
-
-               for (i = 0 ; i < size ; i++)
-                       ibuf[i] = 0x10801080;
-       }
-       break;
-       case TBM_FORMAT_UYVY: {
-               int *ibuf = (int*)info.planes[0].ptr;
-               int i, size = info.planes[0].stride * info.height / 4;
-
-               for (i = 0 ; i < size ; i++)
-                       ibuf[i] = 0x80108010; /* YUYV -> 0xVYUY */
-       }
-       break;
        default:
                TDM_ERR("can't clear %c%c%c%c buffer", FOURCC_STR(info.format));
                break;
@@ -1095,4 +1077,4 @@ tdm_helper_output_vblank_timer_expired(tdm_output *output)
        TDM_RETURN_VAL_IF_FAIL(private_output != NULL, -1);
 
        return private_output->vblank_timeout_timer_expired;
-}
\ No newline at end of file
+}