#include <icy/av/codec.h>Inherits:
Codec
Video codec parameters including resolution, frame rate, and pixel format.
int widthint heightdouble fpsstd::string pixelFmt| Return | Name | Description |
|---|---|---|
VideoCodec | Construct a disabled video codec with zeroed parameters. | |
VideoCodec | Construct an anonymous video codec from raw parameters. | |
VideoCodec | Construct a named video codec. | |
VideoCodec | Construct a named video codec with an explicit FFmpeg encoder name. | |
VideoCodec | ||
std::string | toString virtual const | #### Returns |
void | print virtual | Print a multi-line human-readable description to the given stream. |
VideoCodec()Construct a disabled video codec with zeroed parameters.
VideoCodec(int width, int height, double fps, const std::string & pixelFmt, int bitRate, int sampleRate)Construct an anonymous video codec from raw parameters.
width The frame width in pixels.
height The frame height in pixels.
fps The target frame rate in frames per second.
pixelFmt The pixel format string (e.g. "yuv420p").
bitRate The target bit rate in bits per second.
sampleRate The RTP clock rate in Hz.
VideoCodec(const std::string & name, int width, int height, double fps, int bitRate, int sampleRate, const std::string & pixelFmt)Construct a named video codec.
name The codec display name.
width The frame width in pixels.
height The frame height in pixels.
fps The target frame rate in frames per second.
bitRate The target bit rate in bits per second.
sampleRate The RTP clock rate in Hz.
pixelFmt The pixel format string.
VideoCodec(const std::string & name, const std::string & encoder, int width, int height, double fps, int bitRate, int sampleRate, const std::string & pixelFmt)Construct a named video codec with an explicit FFmpeg encoder name.
name The codec display name.
encoder The FFmpeg encoder name (e.g. "libx264").
width The frame width in pixels.
height The frame height in pixels.
fps The target frame rate in frames per second.
bitRate The target bit rate in bits per second.
sampleRate The RTP clock rate in Hz.
pixelFmt The pixel format string.
VideoCodec(const VideoCodec & r)virtual const
virtual std::string toString() constA string in the form "VideoCodec[name:encoder:width:height:fps:pixelFmt:enabled]".
virtual
virtual void print(std::ostream & ost)Print a multi-line human-readable description to the given stream.
ost The output stream to write to.