|
| | PluginVideoDecoder (const PluginCodec_Definition *defn) |
| |
| virtual bool | SetOption (const char *optionName, const char *optionValue) |
| | Set an individual option of the given name. More...
|
| |
| virtual size_t | GetOutputDataSize () |
| | Get the required output buffer size to be passed into Transcode. More...
|
| |
| virtual bool | CanOutputImage (unsigned width, unsigned height, PluginCodec_RTP &rtp, unsigned &flags) |
| |
| virtual unsigned | OutputImage (unsigned char *planes[3], int raster[3], unsigned width, unsigned height, PluginCodec_RTP &rtp, unsigned &flags) |
| |
| | PluginVideoCodec (const PluginCodec_Definition *defn) |
| |
| virtual int | GetStatistics (char *bufferPtr, unsigned bufferSize) |
| | Gather any statistics as a string into the provide buffer. More...
|
| |
| virtual size_t | GetRawFrameSize (unsigned width, unsigned height) |
| |
| __inline unsigned | GetMaxWidth () const |
| |
| __inline unsigned | GetMaxHeight () const |
| |
| __inline unsigned | GetWidth () const |
| |
| __inline unsigned | GetHeight () const |
| |
| virtual | ~PluginCodec () |
| |
| virtual bool | Construct () |
| | Complete construction of the plug in codec. More...
|
| |
| virtual bool | Transcode (const void *fromPtr, unsigned &fromLen, void *toPtr, unsigned &toLen, unsigned &flags)=0 |
| | Convert from one media format to another. More...
|
| |
| virtual bool | SetInstanceID (const char *, unsigned) |
| |
| virtual bool | GetActiveOptions (PluginCodec_OptionMap &) |
| | Get options that are "active" and may be different from the last SetOptions() call. More...
|
| |
| virtual bool | SetOptions (const char *const *options) |
| | Set all the options for the codec. More...
|
| |
| virtual bool | OnChangedOptions () |
| | Callback for if any options are changed. More...
|
| |
| template<typename T > |
| bool | SetOptionUnsigned (T &oldValue, const char *optionValue, unsigned minimum, unsigned maximum=UINT_MAX) |
| |
| bool | SetOptionUnsigned (unsigned &oldValue, const char *optionValue, unsigned minimum, unsigned maximum=UINT_MAX) |
| |
| template<typename T > |
| bool | SetOptionBoolean (T &oldValue, const char *optionValue) |
| |
| bool | SetOptionBoolean (bool &oldValue, const char *optionValue) |
| |
| bool | SetOptionBit (int &oldValue, unsigned bit, const char *optionValue) |
| |
| bool | SetOptionBit (unsigned &oldValue, unsigned bit, const char *optionValue) |
| |
|
| enum | { DefaultWidth = 352,
DefaultHeight = 288
} |
| |
typedef
PluginCodec_MediaFormat< NAME > | MediaFormat |
| |
| static bool | Terminate () |
| |
| template<class CodecClass > |
| static void * | Create_s (const PluginCodec_Definition *defn) |
| |
| static void | Destroy_s (const PluginCodec_Definition *, void *context) |
| |
| static int | Transcode_s (const PluginCodec_Definition *, void *context, const void *fromPtr, unsigned *fromLen, void *toPtr, unsigned *toLen, unsigned int *flags) |
| |
| static int | GetOutputDataSize_s (const PluginCodec_Definition *, void *context, const char *, void *, unsigned *) |
| |
| static int | ToNormalised_s (const PluginCodec_Definition *defn, void *, const char *, void *parm, unsigned *len) |
| |
| static int | ToCustomised_s (const PluginCodec_Definition *defn, void *, const char *, void *parm, unsigned *len) |
| |
| static int | GetActiveOptions_s (const PluginCodec_Definition *, void *context, const char *, void *parm, unsigned *parmLen) |
| |
| static int | FreeOptions_s (const PluginCodec_Definition *, void *, const char *, void *parm, unsigned *len) |
| |
| static int | GetOptions_s (const struct PluginCodec_Definition *codec, void *, const char *, void *parm, unsigned *len) |
| |
| static int | SetOptions_s (const PluginCodec_Definition *, void *context, const char *, void *parm, unsigned *len) |
| |
| static int | ValidForProtocol_s (const PluginCodec_Definition *defn, void *, const char *, void *parm, unsigned *len) |
| |
| static int | SetInstanceID_s (const PluginCodec_Definition *, void *context, const char *, void *parm, unsigned *len) |
| |
| static int | GetStatistics_s (const PluginCodec_Definition *, void *context, const char *, void *parm, unsigned *len) |
| |
| static int | Terminate_s (const PluginCodec_Definition *, void *context, const char *, void *, unsigned *) |
| |
static struct
PluginCodec_ControlDefn * | GetControls () |
| |
| static unsigned | String2Unsigned (const std::string &str) |
| |
| static void | AppendUnsigned2String (unsigned value, std::string &str) |
| |
| static void | Unsigned2String (unsigned value, std::string &str) |
| |
| static void | Change (const char *value, PluginCodec_OptionMapBase &original, PluginCodec_OptionMapBase &changed, const char *option) |
| |
| static void | Change (unsigned value, PluginCodec_OptionMapBase &original, PluginCodec_OptionMapBase &changed, const char *option) |
| |
| static void | ClampMax (unsigned maximum, PluginCodec_OptionMapBase &original, PluginCodec_OptionMapBase &changed, const char *option, bool forceIfZero=false) |
| |
| static void | ClampMin (unsigned minimum, PluginCodec_OptionMapBase &original, PluginCodec_OptionMapBase &changed, const char *option) |
| |
| static unsigned | GetMacroBlocks (unsigned width, unsigned height) |
| |
| static bool | ClampResolution (unsigned &width, unsigned &height, unsigned &maxFrameSize) |
| |
| static bool | ClampResolution (PluginCodec_OptionMapBase &original, PluginCodec_OptionMapBase &changed, unsigned maxWidth, unsigned maxHeight, unsigned &maxMacroBlocks, const char *widthKey=PLUGINCODEC_OPTION_FRAME_WIDTH, const char *heightKey=PLUGINCODEC_OPTION_FRAME_HEIGHT, const char *maxWidthKey=PLUGINCODEC_OPTION_MAX_RX_FRAME_WIDTH, const char *maxHeightKey=PLUGINCODEC_OPTION_MAX_RX_FRAME_HEIGHT, const char *minWidthKey=PLUGINCODEC_OPTION_MIN_RX_FRAME_WIDTH, const char *minHeightKey=PLUGINCODEC_OPTION_MIN_RX_FRAME_HEIGHT) |
| |
| | PluginCodec (const PluginCodec_Definition *defn) |
| |