| 45 | using namespace xn; |
| 46 | |
| 47 | void printUsage(const char* argv0) |
| 48 | { |
| 49 | printf("usage: %s <inputFile> <outputFile> [OPTIONS]\n", argv0); |
| 50 | printf("Supported options:\n"); |
| 51 | printf("\n"); |
| 52 | printf(" --nodes=NODES\n"); |
| 53 | printf(" A comma-separated list of nodes names to be taken from input file.\n"); |
| 54 | printf(" For example: Depth1,Image2.\n"); |
| 55 | printf("\n"); |
| 56 | printf(" --types=TYPES\n"); |
| 57 | printf(" A comma-separated list of nodes types to be taken from input file.\n"); |
| 58 | printf(" For example: Depth,Image.\n"); |
| 59 | printf("\n"); |
| 60 | printf(" --primary-node=NAME\n"); |
| 61 | printf(" Name of primary node (used for start/end setting). For example: Depth1.\n"); |
| 62 | printf("\n"); |
| 63 | printf(" --primary-node-type=TYPE\n"); |
| 64 | printf(" Type of primary node (used for start/end setting). For example: Depth.\n"); |
| 65 | printf("\n"); |
| 66 | printf(" --start-frame=FRAME\n"); |
| 67 | printf(" A frame to seek to before recording starts. Seeking will be performed on\n"); |
| 68 | printf(" primary node. For example: 3.\n"); |
| 69 | printf("\n"); |
| 70 | printf(" --end-frame=FRAME\n"); |
| 71 | printf(" Last frame to be recorded from primary node. For example: 752.\n"); |
| 72 | printf("\n"); |
| 73 | } |
| 74 | |
| 75 | int main(int argc, char* argv[]) |
| 76 | { |