#include "Media/MediaOpts.H"
#include "Component/ModelOptionDef.H"
#include "Image/Dims.H"
#include "Image/Point2D.H"
#include "Image/Rectangle.H"
#include "Media/FrameRange.H"
#include "Transport/TransportOpts.H"
Go to the source code of this file.
Variables | |
const ModelOptionDef | OPT_InputFrameDims |
Command-line options for FrameSeries, MPEGStream et al. | |
const ModelOptionDef | OPT_OutputFrameDims |
const ModelOptionDef | OPT_OutputPreserveAspect |
const ModelOptionDef | OPT_OutputZoom |
const ModelOptionDef | OPT_ZeroNumberFrames |
const ModelOptionDef | OPT_InputMPEGStreamPreload |
const ModelOptionDef | OPT_InputFrameCrop |
const ModelOptionDef | OPT_InputFrameRange |
const ModelOptionDef | OPT_InputFramesWrap |
const ModelOptionDef | OPT_InputPreserveAspect |
const ModelOptionDef | OPT_InputEchoDest |
const ModelOptionDef | OPT_InputFrameSource |
const ModelOptionDef | OPT_InputOutputComboSpec |
const ModelOptionDef | OPT_OutputFrameRange |
const ModelOptionDef | OPT_OutputFrameSink |
const ModelOptionDef | OPT_WaitForUser |
const ModelOptionDef | OPT_KeepGoing |
const ModelOptionDef | OPT_OutputReplicate |
Definition in file MediaOpts.C.
const ModelOptionDef OPT_InputEchoDest |
{ MODOPT_ARG_STRING, "InputEchoDest", &MOC_INPUT, OPTEXP_CORE, "Specify a destination for carbon-copies of the input frames. " "If more than one --in-echo is given, then the copies are sent " "to each destination in parallel.", "in-echo", '\0', "<raster|display|mpeg|none>", "none" }
Definition at line 161 of file MediaOpts.C.
const ModelOptionDef OPT_InputFrameCrop |
{ MODOPT_ARG(Rectangle), "InputFrameCrop", &MOC_INPUT, OPTEXP_CORE, "Crop input frames, or 0,0,0,0 for no cropping", "crop-input", '\0', "x1,y1,x2,y2", "0,0,0,0" }
Definition at line 120 of file MediaOpts.C.
{ MODOPT_ARG(Dims), "InputFrameDims", &MOC_INPUT, OPTEXP_CORE, "Rescale input frames to fixed dims, or 0x0 for no rescaling", "rescale-input", '\0', "<width>x<height>", "0x0" }
Command-line options for FrameSeries, MPEGStream et al.
Definition at line 72 of file MediaOpts.C.
Referenced by main(), and TigsInputFrameSeries::paramChanged().
const ModelOptionDef OPT_InputFrameRange |
{ MODOPT_ARG(FrameRange), "InputFrameRange", &MOC_INPUT, OPTEXP_CORE, "Input frame range and inter-frame delay or rate. The frame range " "can include optional specifications for the first frame (default " "value=0), last frame (default=MAX), and/or frame step (default=1). " "A fixed framerate can be specified either as an inter-frame interval, " "with a suffix one of {s,ms,us,ns}, or as a frame rate, with a suffix of Hz. " "A variable framerate can be specified with the name of a file (.fl) " "that contains precise frame timing information, with lines of the form:\n" "\t<name> <time>\n" "where:\n" "\t<name> is a string (no spaces) and\n" "\t<time> is the elapsed time from stimulus onset (in ms)\n" "\tthe <time> in the first line should be 0\n" "\tthe <name> in the last line should be END\n" "\tthe <time> in the last line should mark the stimulus end time", "input-frames", 'M', "[[first[-step]]-[last]]@[delay_or_rate]", "0-1-MAX@30Hz" }
Definition at line 126 of file MediaOpts.C.
const ModelOptionDef OPT_InputFramesWrap |
{ MODOPT_FLAG, "InputFramesWrap", &MOC_INPUT, OPTEXP_CORE, "Whether to set the frame number back to the start if we reached the end. " "This needs the --input-frames to be set ", "input-frames-wrap", '\0', "", "false" }
Definition at line 146 of file MediaOpts.C.
const ModelOptionDef OPT_InputMPEGStreamPreload |
{ MODOPT_ARG(bool), "InputMPEGStreamPreload", &MOC_INPUT, OPTEXP_CORE, "Whether to preload the entire mpeg input movie.", "preload-mpeg", '\0', "<true|false>", "false" }
Definition at line 114 of file MediaOpts.C.
const ModelOptionDef OPT_InputOutputComboSpec |
{ MODOPT_ARG_STRING, "InputOutputComboSpec", &MOC_INPUT, OPTEXP_CORE, "Specify both input and output with a single specification. Thus " "--io=type:foo is equivalent to --in=type:foo --out=type:foo. " "NOTE that this will only work if 'type' is valid for both input " "and output; currently that would include 'raster' and 'mpeg', but " "not 'display' (valid for output only) or 'random' (valid for " "input only).", "io", '\0', "<intersection of valid values for --in and --out>", "" }
Definition at line 438 of file MediaOpts.C.
const ModelOptionDef OPT_InputPreserveAspect |
{ MODOPT_FLAG, "InputPreserveAspect", &MOC_INPUT, OPTEXP_CORE, "Preserve input frame aspect ratio if rescaling to fixed dims", "preserve-input-aspect", '\0', "", "false" }
Definition at line 153 of file MediaOpts.C.
const ModelOptionDef OPT_KeepGoing |
{ MODOPT_FLAG, "KeepGoing", &MOC_OUTPUT, OPTEXP_CORE, "Keep going even after input is exhausted", "keep-going", '+', "", "false" }
Definition at line 806 of file MediaOpts.C.
const ModelOptionDef OPT_OutputFrameDims |
{ MODOPT_ARG(Dims), "OutputFrameDims", &MOC_OUTPUT, OPTEXP_CORE, "Rescale output frames to fixed dims, or 0x0 for no rescaling", "rescale-output", '\0', "<width>x<height>", "0x0" }
Definition at line 79 of file MediaOpts.C.
const ModelOptionDef OPT_OutputFrameRange |
{ MODOPT_ARG(FrameRange), "OutputFrameRange", &MOC_OUTPUT, OPTEXP_CORE, "Output frame range and inter-frame delay or rate. See " "--input-frames for details on the expected format. " "Variable rates can be specified as with --input-frames, BUT NOTE " "that some output formats (e.g., movie encoders) may not preserve " "the variable framerate information.", "output-frames", 'R', "[[first[-step]]-[last]]@[delay_or_rate]", "0-1-MAX@30Hz" }
Definition at line 453 of file MediaOpts.C.
const ModelOptionDef OPT_OutputPreserveAspect |
{ MODOPT_FLAG, "OutputPreserveAspect", &MOC_OUTPUT, OPTEXP_CORE, "Preserve output frame aspect ratio if rescaling to fixed dims", "preserve-output-aspect", '\0', "", "false" }
Definition at line 85 of file MediaOpts.C.
const ModelOptionDef OPT_OutputReplicate |
{ MODOPT_ARG(uint), "OutputReplicate", &MOC_OUTPUT, OPTEXP_CORE, "How many times to replicate each output frame. This is useful " "if you want to generate a '15fps' mpeg1 movie; mpeg1 doesn't " "support 15fps, but it does support 30fps so if you use 30fps " "with output replication of 2, then you will effectively end " "up with a 15fps movie.", "output-replicate", '\0', "uint", "1" }
Definition at line 812 of file MediaOpts.C.
const ModelOptionDef OPT_OutputZoom |
{ MODOPT_ARG(int), "OutputZoom", &MOC_OUTPUT, OPTEXP_CORE, "Number of levels for output images to be zoomed larger (for positive " "values) or smaller (for negative values); e.g. a zoom level of -3 would " "reduce the image size by a factor of 8 in both width and height, while " "a zoom level of +4 would increase the image size by a factor of 16 in " "both width and height. This option is similar to --rescale-output, but " "is more useful in the case where you just want to scale the output to " "half its normal size, without having to know exactly what the normal " "size would be. It is also useful in cases where you will be generating " "multiple output streams with different natural sizes; in that case, " "--rescale-output would rescale them all to the same size, while " "--zoom-output lets you apply a uniform zoom to each of them so that " "their relative sizes are maintained.", "zoom-output", '\0', "<int>", "0" }
Definition at line 91 of file MediaOpts.C.
const ModelOptionDef OPT_WaitForUser |
{ MODOPT_FLAG, "WaitForUser", &MOC_OUTPUT, OPTEXP_CORE, "Whether to wait for a keypress after each input/output frame", "wait", '\0', "<true|false>", "false" }
Definition at line 800 of file MediaOpts.C.
const ModelOptionDef OPT_ZeroNumberFrames |
{ MODOPT_ARG(bool), "ZeroNumberFrames", &MOC_INPUT, OPTEXP_CORE, "Force all input and output frames to have the number 000000", "zero-number-frames", '\0', "<true|false>", "false" }
Definition at line 108 of file MediaOpts.C.