onoff = atoi(argv[3]);
- if (onoff == 1 || onoff == 0)
+ if (eina_streq(argv[2], "hwc"))
{
- if (eina_streq(argv[2], "hwc"))
+ if ((onoff != 0) && (onoff != 1))
+ goto arg_err;
+
+ if (!_e_info_client_eldbus_message_with_args("trace_message_hwc", NULL, "i", onoff))
{
- if (!_e_info_client_eldbus_message_with_args("trace_message_hwc", NULL, "i", onoff))
- {
- printf("_e_info_client_eldbus_message_with_args error");
- }
- return;
+ printf("_e_info_client_eldbus_message_with_args error");
}
- else if (eina_streq(argv[2], "prstt"))
+ return;
+ }
+ else if (eina_streq(argv[2], "prstt"))
+ {
+ if ((onoff != 0) && (onoff != 1))
+ goto arg_err;
+
+ if (!_e_info_client_eldbus_message_with_args("trace_message_prstt", NULL, "i", onoff))
{
- if (!_e_info_client_eldbus_message_with_args("trace_message_prstt", NULL, "i", onoff))
- {
- printf("_e_info_client_eldbus_message_with_args error");
- }
- return;
+ printf("_e_info_client_eldbus_message_with_args error");
}
- else if (eina_streq(argv[2], "exsync"))
+ return;
+ }
+ else if (eina_streq(argv[2], "exsync"))
+ {
+ if ((onoff != 0) && (onoff != 1))
+ goto arg_err;
+
+ if (!_e_info_client_eldbus_message_with_args("trace_message_exsync", NULL, "i", onoff))
{
- if (!_e_info_client_eldbus_message_with_args("trace_message_exsync", NULL, "i", onoff))
- {
- printf("_e_info_client_eldbus_message_with_args error");
- }
- return;
+ printf("_e_info_client_eldbus_message_with_args error");
}
- else if (eina_streq(argv[2], "damage"))
+ return;
+ }
+ else if (eina_streq(argv[2], "damage"))
+ {
+ if ((onoff != 0) && (onoff != 1))
+ goto arg_err;
+
+ if (!_e_info_client_eldbus_message_with_args("trace_message_damage", NULL, "i", onoff))
{
- if (!_e_info_client_eldbus_message_with_args("trace_message_damage", NULL, "i", onoff))
- {
- printf("_e_info_client_eldbus_message_with_args error");
- }
- return;
+ printf("_e_info_client_eldbus_message_with_args error");
}
- else if (eina_streq(argv[2], "blur"))
+ return;
+ }
+ else if (eina_streq(argv[2], "blur"))
+ {
+ if ((onoff != 0) && (onoff != 1) && (onoff != 2))
+ goto arg_err;
+
+ if (!_e_info_client_eldbus_message_with_args("trace_message_blur", NULL, "i", onoff))
{
- if (!_e_info_client_eldbus_message_with_args("trace_message_blur", NULL, "i", onoff))
- {
- printf("_e_info_client_eldbus_message_with_args error");
- }
- return;
+ printf("_e_info_client_eldbus_message_with_args error");
}
+ return;
}
arg_err:
static Eina_List *_e_blur_video_capture_hwc_window_hooks = NULL;
static Eina_List *_e_blur_video_capture_blur_hooks = NULL;
static Eina_Bool blur_video_capture_trace = EINA_FALSE;
+static Eina_Bool blur_video_capture_trace_dump = EINA_FALSE;
static Eina_Bool _e_blur_video_capture_start(void);
static Eina_Bool _e_blur_video_capture_stop(void);
E_Blur_Video_Capture_Object *object;
Eina_List *l, *l2;
int comp_w = 0, comp_h = 0;
+ static int dump_count = 0;
+ char dump_name[128];
if (!tbm_surface_queue_can_acquire(video_capture->tqueue, 0)) return;
tsq_err = tbm_surface_queue_acquire(video_capture->tqueue, &tsurface);
EINA_SAFETY_ON_FALSE_RETURN(tsq_err == TBM_SURFACE_QUEUE_ERROR_NONE);
+ if (blur_video_capture_trace_dump)
+ {
+ snprintf(dump_name, sizeof(dump_name), "blur_video_capture_%d", dump_count);
+ tbm_surface_internal_capture_buffer(tsurface, "/tmp", dump_name, "yuv");
+ dump_count++;
+ }
+
EINA_SAFETY_ON_NULL_GOTO(video_capture->source_obj, update);
memset(&ns, 0, sizeof(Evas_Native_Surface));
blur_video_capture_trace = onoff;
INF("Blur Video Capture Debug is %s", onoff?"ON":"OFF");
}
+
+EINTERN void
+e_blur_video_capture_trace_dump_debug(Eina_Bool onoff)
+{
+ if (onoff == blur_video_capture_trace_dump) return;
+ blur_video_capture_trace_dump = onoff;
+ INF("Blur Video Capture Dump Debug is %s", onoff?"ON":"OFF");
+}