Change-Id: I8287bc0eca5198ade708b26a585cd6c88bc2bd66
TDM_WARNING_IF_FAIL(ret == TDM_ERROR_NONE);
/* dump buffer */
- _tdm_layer_dump_buffer(layer, buffer);
+ if (tdm_dump_enable)
+ _tdm_layer_dump_buffer(layer, buffer);
if (ret == TDM_ERROR_NONE) {
/* FIXME: should save to pending_buffer first. And after committing
static const char *dump_prefix[2] = {"png", "yuv"};
+int tdm_dump_enable;
static int *tdm_helper_dump_count;
static char *tdm_helper_dump_path;
tdm_helper_dump_count = count;
tdm_helper_dump_path = dumppath;
+ tdm_dump_enable = 1;
+
TDM_DBG("tdm_helper_dump start.(path : %s)", tdm_helper_dump_path);
}
tdm_helper_dump_path = NULL;
tdm_helper_dump_count = NULL;
+ tdm_dump_enable = 0;
+
TDM_DBG("tdm_helper_dump stop.");
}
extern pthread_mutex_t tdm_mutex_check_lock;
extern int tdm_mutex_locked;
+extern int tdm_dump_enable;
int
tdm_helper_get_dump_count(void);