forked from google/spatial-media
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathparser.h
56 lines (45 loc) · 1.36 KB
/
parser.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/*****************************************************
** Command line parser class for
** spatial-media
**
** Created : Sat September 3rd 2016 5:22 pm EST
** by : Varol Okan
** Copyright : (c) Varol Okan
** License : LGPL
**
******************************************************/
#ifndef __PARSER_H__
#define __PARSER_H__
#include <string>
namespace SpatialMedia
{
class Parser
{
public:
typedef enum { SM_NONE, SM_TOP_BOTTOM, SM_LEFT_RIGHT } enMode;
Parser ( );
virtual ~Parser ( );
void parseCommandLine ( int, char *a[] );
std::string &getInFile ( );
std::string &getOutFile ( );
bool getInject ( );
enMode getStereoMode ( );
int *getCrop ( );
bool getSpatialAudio( );
protected:
void printHelp ( );
private:
std::string m_strInFile;
std::string m_strOutFile;
bool m_bInject;
enMode m_StereoMode;
int m_crop[6];
bool m_bSpatialAudio;
// -c CROP, --crop CROP crop region. Must specify 6 integers in the form of
// "w:h:f_w:f_h:x:y" where w=CroppedAreaImageWidthPixels
// h=CroppedAreaImageHeightPixels f_w=FullPanoWidthPixels
// f_h=FullPanoHeightPixels x=CroppedAreaLeftPixels
// y=CroppedAreaTopPixels
};
};
#endif // __PARSER_H__