~f0ma/cuneiform-linux/devel

« back to all changes in this revision

Viewing changes to cuneiform_src/Kern/cline/sources/src/main/clinemain.cpp

  • Committer: Stanislav Ivanov
  • Date: 2017-06-07 15:03:51 UTC
  • Revision ID: ivstdm@gmail.com-20170607150351-dlzbzl54zvs57z57
New command line interface with multipage support and input image filtering.
Alpha state. No checks for build in other platform. Tests is missing.
Magick++ and C++0x is requried.

Show diffs side-by-side

added added

removed removed

Lines of Context:
81
81
extern int size_class_hline;
82
82
 
83
83
CLINE_FUNC void CLINE_Reset() {
84
 
        if (!LDPUMA_Skip(MemStat) && LDPUMA_IsActive()) {
85
 
                FILE* f = fopen("clstat.res", "w");
86
 
                fprintf(f, "Interval -   %d\n", pMyMem->pInvMas.m_count * len_inv_mas);
87
 
                fprintf(f, "Event    -   %d\n", pMyMem->pEventMas.m_count
 
84
    
 
85
    if (pLCont == NULL) return;
 
86
//      if (!LDPUMA_Skip(MemStat) && LDPUMA_IsActive()) {
 
87
//              FILE* f = fopen("clstat.res", "w");
 
88
#ifdef _DEBUG
 
89
        printf("CLINE_Reset memory:\n");
 
90
        
 
91
        printf("Interval -   %d\n", pMyMem->pInvMas.m_count * len_inv_mas);
 
92
                printf("Event    -   %d\n", pMyMem->pEventMas.m_count
88
93
                                * len_event_mas);
89
 
                fprintf(f, "Comp     -   %d\n", pMyMem->pCompMas.m_count * len_comp_mas);
90
 
                fprintf(f, "Cupoint  -   %d\n", pMyMem->pCupointMas.m_count
 
94
                printf("Comp     -   %d\n", pMyMem->pCompMas.m_count * len_comp_mas);
 
95
                printf("Cupoint  -   %d\n", pMyMem->pCupointMas.m_count
91
96
                                * len_cupoint_mas);
92
 
                fprintf(f, "Line     -   %d\n", pMyMem->pLineMas.m_count * len_line_mas);
93
 
                fprintf(f, "HLine    -   %d\n", pMyMem->pHLineMas.m_count
 
97
                printf("Line     -   %d\n", pMyMem->pLineMas.m_count * len_line_mas);
 
98
                printf("HLine    -   %d\n", pMyMem->pHLineMas.m_count
94
99
                                * len_hline_mas);
95
 
                fprintf(f, "All Mem  -   %d\n", pMyMem->pInvMas.m_count * len_inv_mas
 
100
                printf("All Mem  -   %d\n", pMyMem->pInvMas.m_count * len_inv_mas
96
101
                                * size_class_inv + pMyMem->pEventMas.m_count * len_event_mas
97
102
                                * size_class_event + pMyMem->pCompMas.m_count * len_comp_mas
98
103
                                * size_class_comp + pMyMem->pCupointMas.m_count
99
104
                                * len_cupoint_mas * size_class_cupoint
100
105
                                + pMyMem->pLineMas.m_count * len_line_mas * size_class_line
101
106
                                + pMyMem->pHLineMas.m_count * len_hline_mas * size_class_hline);
102
 
                fclose(f);
103
 
        }
 
107
#endif
 
108
//              fclose(f);
 
109
//      }
104
110
 
105
111
        pLCont->FastDel();
106
112
        pMainCont = NULL;