00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038 #ifndef TRANSPORT_TRANSPORTOPTS_C_DEFINED
00039 #define TRANSPORT_TRANSPORTOPTS_C_DEFINED
00040
00041 #include "Transport/TransportOpts.H"
00042
00043 #include "Component/ModelOptionDef.H"
00044 #include "Image/Dims.H"
00045 #include "Raster/RasterFileFormat.H"
00046
00047 const ModelOptionCateg MOC_INPUT = {
00048 MOC_SORTPRI_2, "Input Reading/Formatting Options" };
00049
00050 const ModelOptionCateg MOC_OUTPUT = {
00051 MOC_SORTPRI_2, "Output Writing/Formatting Options" };
00052
00053 const ModelOptionDef OPT_ShowInputDetails =
00054 { MODOPT_FLAG, "ShowInputDetails", &MOC_INPUT, OPTEXP_CORE,
00055 "Request that detailed information be printed about the input source "
00056 "(for example, if input is coming from a camera, then try to print "
00057 "details about the capabilities of that camera, its vendor and model, "
00058 ".etc)",
00059 "show-input-details", '\0', "", "false" };
00060
00061
00062 const ModelOptionDef OPT_InputRasterFileFormat =
00063 { MODOPT_ARG(RasterFileFormat), "InputRasterFileFormat", &MOC_INPUT, OPTEXP_CORE,
00064 "Input file format",
00065 "input-format", '\0', "<PNM|PNG|PFM|YUV422|YUV420P|RAWIMAGE|JPEG|Auto>", "Auto" };
00066
00067
00068 const ModelOptionDef OPT_InputYuvDims =
00069 { MODOPT_ARG(Dims), "InputYuvDims", &MOC_INPUT, OPTEXP_CORE,
00070 "NOTE: This option is DEPRECATED; see the documentation of "
00071 "--in=raster and --out=rawvideo for the preferred approach, in "
00072 "which image dimensions are encoded into the filename. This "
00073 "option is a deprecated approach to specifying the dimensions of "
00074 "raw video frames. The dimensions must be supplied externally as "
00075 "raw video frame files do not encode the dimensions in the file "
00076 "internally. Note that this option does not rescale the input "
00077 "frames at all, it just supplies the native size of the input "
00078 "frames (for rescaling, use --rescale-input).",
00079 "yuv-dims", '\0', "<w>x<h>", "640x480" };
00080
00081
00082 const ModelOptionDef OPT_InputYuvDimsLoose =
00083 { MODOPT_FLAG, "InputYuvDimsLoose", &MOC_INPUT, OPTEXP_CORE,
00084 "Allow loose correspondence between the dimensions of raw yuv "
00085 "video frames and the corresponding file size. Normally it is a "
00086 "hard error if these values mismatch, but this option can be "
00087 "used to allow file sizes larger than the expected data size.",
00088 "yuv-dims-loose", '\0', "", "false" };
00089
00090
00091 const ModelOptionDef OPT_InputDpxGamma =
00092 { MODOPT_ARG(float), "InputDpxGamma", &MOC_INPUT, OPTEXP_CORE,
00093 "Gamma value to use when performing color correction of dpx images.",
00094 "dpx-gamma", '\0', "<float>", "0.6" };
00095
00096
00097 const ModelOptionDef OPT_InputDpxSigmoidContrast =
00098 { MODOPT_ARG(float), "InputDpxSigmoidContrast", &MOC_INPUT, OPTEXP_CORE,
00099 "Sigmoid contrast to use when performing color correction of dpx images.",
00100 "dpx-sigmoid-contrast", '\0', "<float>", "10.0" };
00101
00102
00103 const ModelOptionDef OPT_InputDpxSigmoidThreshold =
00104 { MODOPT_ARG(float), "InputDpxSigmoidThreshold", &MOC_INPUT, OPTEXP_CORE,
00105 "Sigmoid threshold to use when performing color correction of dpx images.",
00106 "dpx-sigmoid-threshold", '\0', "<float>", "0.1" };
00107
00108
00109 const ModelOptionDef OPT_InputDpxSrcClipLo =
00110 { MODOPT_ARG(float), "InputDpxSrcClipLo", &MOC_INPUT, OPTEXP_CORE,
00111 "Clamp smaller values to this value when performing color "
00112 "correction of dpx images.",
00113 "dpx-src-clip-lo", '\0', "<float>", "0.0" };
00114
00115
00116 const ModelOptionDef OPT_InputDpxSrcClipHi =
00117 { MODOPT_ARG(float), "InputDpxSrcClipHi", &MOC_INPUT, OPTEXP_CORE,
00118 "Clamp larger values to this value when performing color "
00119 "correction of dpx images.",
00120 "dpx-src-clip-hi", '\0', "<float>", "5351.0" };
00121
00122
00123 const ModelOptionDef OPT_OutputRasterFileFormat =
00124 { MODOPT_ARG(RasterFileFormat), "OutputRasterFileFormat", &MOC_OUTPUT, OPTEXP_CORE,
00125 "Output file format",
00126 "output-format", '\0', "<PNM|PNG|PFM|YUV422|YUV420P|RAWIMAGE|Auto>", "PNM" };
00127
00128
00129
00130
00131
00132
00133
00134 #endif // TRANSPORT_TRANSPORTOPTS_C_DEFINED