source: 3DVCSoftware/branches/0.1-poznan-univ/source/App/TAppEncoder/encmain.cpp @ 15

Last change on this file since 15 was 2, checked in by hhi, 13 years ago

inital import

  • Property svn:eol-style set to native
File size: 1.2 KB
Line 
1
2
3/** \file     encmain.cpp
4    \brief    Encoder application main
5*/
6
7#include <time.h>
8#include "TAppEncTop.h"
9
10// ====================================================================================================================
11// Main function
12// ====================================================================================================================
13
14int main(int argc, char* argv[])
15{
16  TAppEncTop  cTAppEncTop;
17
18  // print information
19  fprintf( stdout, "\n" );
20  fprintf( stdout, "HM %s based Multiview plus Depth Coder: Encoder Version [%s]", HM_VERSION, NV_VERSION );
21  fprintf( stdout, NVM_ONOS );
22  fprintf( stdout, NVM_COMPILEDBY );
23  fprintf( stdout, NVM_BITS );
24  fprintf( stdout, "\n" );
25
26  // create application encoder class
27  cTAppEncTop.create();
28
29  // parse configuration
30  if(!cTAppEncTop.parseCfg( argc, argv ))
31  {
32    cTAppEncTop.destroy();
33    return 1;
34  }
35
36  // starting time
37  double dResult;
38  long lBefore = clock();
39
40  // call encoding function
41  cTAppEncTop.encode();
42
43  // ending time
44  dResult = (double)(clock()-lBefore) / CLOCKS_PER_SEC;
45  printf("\n Total Time: %12.3f sec.\n", dResult);
46
47  // destroy application encoder class
48  cTAppEncTop.destroy();
49
50  return 0;
51}
52
53
Note: See TracBrowser for help on using the repository browser.