static const char *dump_prefix[2] = {"png", "yuv"};
int tdm_dump_enable;
-static int *tdm_helper_dump_count;
-static char *tdm_helper_dump_path;
INTERN unsigned long
tdm_helper_get_time_in_millis(void)
EXTERN void
tdm_helper_dump_start(char *dumppath, int *count)
{
- if (tdm_helper_dump_count != NULL) {
- TDM_DBG("tdm_helper_dump is already started.");
- return;
- }
-
if (dumppath == NULL || count == NULL) {
TDM_DBG("tdm_helper_dump dumppath or count is null.");
return;
}
- 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_DBG("tdm_helper_dump start.(path : %s)", dumppath);
}
EXTERN void
tdm_helper_dump_stop(void)
{
- tdm_helper_dump_path = NULL;
- tdm_helper_dump_count = NULL;
-
tdm_dump_enable = 0;
TDM_DBG("tdm_helper_dump stop.");