#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
#include <ctype.h>
#include <string.h>
#include <errno.h>
#include <unistd.h>
#include <cmml.h>
Defines | |
#define | BUFSIZE 100000 |
Functions | |
void | PrintUsage (char *prog) |
int | read_stream (CMML *cmml, const CMML_Stream *stream, void *user_data) |
int | read_head (CMML *cmml, const CMML_Head *head, void *user_data) |
int | read_clip (CMML *cmml, const CMML_Clip *clip, void *user_data) |
int | main (int argc, char *argv[]) |
Variables | |
int | verbose |
Usage: cmml-validate [Options] filename Validate a CMML file. Possible options: -i clip_id, --id clip_id Start parsing from the named clip. -s seconds, --sec seconds Start parsing from the given seconds offset -u utc, --utc utc Start parsing from the given utc time -b, --verbose Output parsed file to stdout -h, --help Display this help information -v, --version Display version information
View source code at: cmml-validate.c
|
the size of the print buffer |
|
PrintUsage: prints out help on how to use this program
|
|
read_stream: the callback for a stream element
|
|
read_head: the callback for a head element
|
|
read_clip: the callback for a clip element
|
|
main function of cmml-validate, which opens the CMML file, seeks to any given offsets, registers the callbacks, and then steps through the file in chunks of BUFSIZE size, during which the callbacks get activated as the relevant elements get parsed.
|
|
verbose: turns on printing of parsed CMML file |