Module av

Summary

Members Descriptions
namespacescy::av
namespacescy::av::legacy

namespace scy::av

Summary

Members Descriptions
classscy::av::DeviceManager
classscy::av::DeviceManagerFactory
classscy::av::DeviceWatcher
classscy::av::FakeDeviceManager
classscy::av::FLVMetadataInjector
classscy::av::FormatRegistry
classscy::av::FPSCounter An FPS counter based on the simple moving average (SMA) algorithm.
classscy::av::FPSLimiter
classscy::av::ICapture
classscy::av::IDeviceManager
classscy::av::IEncoder This is the abstract class for all encoders.
classscy::av::LinuxDeviceManager
classscy::av::MacDeviceManager
classscy::av::MacDeviceWatcher
classscy::av::RealtimePacketQueue This class emits media packets based on their realtime pts value.
structscy::av::AudioCodec
structscy::av::AudioPacket
structscy::av::Codec
structscy::av::Device Represents a system audio, video or render device.
structscy::av::EncoderOptions
structscy::av::EncoderState
structscy::av::Format
structscy::av::MediaPacket
structscy::av::VideoCodec
structscy::av::VideoPacket

class scy::av::DeviceManager

class scy::av::DeviceManager
  : public scy::av::IDeviceManager

Summary

Members Descriptions
public DeviceManager()
public virtual ~DeviceManager()
public virtual bool initialize() Initialization.
public virtual void uninitialize()
public virtual int getCapabilities() Capabilities.
public virtual bool getAudioInputDevices(std::vector<Device> & devices) Device enumeration.
public virtual bool getAudioOutputDevices(std::vector<Device> & devices)
public virtual bool getAudioInputDevice(Device& out,const std::string & name,int id)
public virtual bool getAudioInputDevice(Device& out,int id)
public virtual bool getAudioOutputDevice(Device& out,const std::string & name,int id)
public virtual bool getAudioOutputDevice(Device& out,int id)
public virtual bool getVideoCaptureDevices(std::vector<Device> & devs)
public virtual bool getVideoCaptureDevice(Device& out,const std::string & name,int id)
public virtual bool getVideoCaptureDevice(Device& out,int id) Returns the video capture device at the given system index.
public virtual bool getDefaultAudioInputDevice(Device& device)
public virtual bool getDefaultAudioOutputDevice(Device& device)
public virtual bool getDefaultVideoCaptureDevice(Device& device)
public inline bool initialized() const
public virtual void print(std::ostream & ost)
protected virtual bool getDefaultAudioDevice(bool input,Device& device)
protected virtual bool getAudioDevices(bool input,std::vector<Device> & devs)
protected virtual bool getAudioDevice(bool input,Device& out,const std::string & name,int id)
protected virtual bool getAudioDevice(bool input,Device& out,int id)
protected void setInitialized(bool initialized)
protected void setWatcher(DeviceWatcher* watcher)
protectedDeviceWatcher* watcher()

Members

public DeviceManager()

public virtual ~DeviceManager()

public virtual bool initialize()

Initialization.

public virtual void uninitialize()

public virtual int getCapabilities()

Capabilities.

public virtual bool getAudioInputDevices(std::vector<Device> & devices)

Device enumeration.

public virtual bool getAudioOutputDevices(std::vector<Device> & devices)

public virtual bool getAudioInputDevice(Device& out,const std::string & name,int id)

public virtual bool getAudioInputDevice(Device& out,int id)

public virtual bool getAudioOutputDevice(Device& out,const std::string & name,int id)

public virtual bool getAudioOutputDevice(Device& out,int id)

public virtual bool getVideoCaptureDevices(std::vector<Device> & devs)

public virtual bool getVideoCaptureDevice(Device& out,const std::string & name,int id)

public virtual bool getVideoCaptureDevice(Device& out,int id)

Returns the video capture device at the given system index.

public virtual bool getDefaultAudioInputDevice(Device& device)

public virtual bool getDefaultAudioOutputDevice(Device& device)

public virtual bool getDefaultVideoCaptureDevice(Device& device)

public inline bool initialized() const

public virtual void print(std::ostream & ost)

protected virtual bool getDefaultAudioDevice(bool input,Device& device)

protected virtual bool getAudioDevices(bool input,std::vector<Device> & devs)

protected virtual bool getAudioDevice(bool input,Device& out,const std::string & name,int id)

protected virtual bool getAudioDevice(bool input,Device& out,int id)

protected void setInitialized(bool initialized)

protected void setWatcher(DeviceWatcher* watcher)

protectedDeviceWatcher* watcher()

class scy::av::DeviceManagerFactory

Summary

Members Descriptions

Members

class scy::av::DeviceWatcher

Summary

Members Descriptions
public inline explicit DeviceWatcher(IDeviceManager*)
public inline virtual ~DeviceWatcher()
public inline virtual bool start()
public inline virtual void stop()

Members

public inline explicit DeviceWatcher(IDeviceManager*)

public inline virtual ~DeviceWatcher()

public inline virtual bool start()

public inline virtual void stop()

class scy::av::FakeDeviceManager

class scy::av::FakeDeviceManager
  : public scy::av::IDeviceManager

Summary

Members Descriptions
public inline FakeDeviceManager()
public inline virtual bool initialize() Initialization.
public inline virtual void uninitialize()
public inline virtual int getCapabilities() Capabilities.
public inline virtual bool getMicrophones(std::vector<Device> & devs)
public inline virtual bool getSpeakers(std::vector<Device> & devs)
public inline virtual bool getMicrophone(const std::string & name,Device& out)
public inline virtual bool getSpeaker(const std::string & name,Device& out)
public inline virtual bool getCameras(std::vector<Device> & devs)
public inline virtual bool getDefaultCamera(Device& device)
public inline void setMicrophones(const std::vector<Device> & devices)
public inline void setSpeakers(const std::vector<Device> & devices)
public inline void setCameras(const std::vector<Device> & devices)
public inline virtual bool getCamera(const std::string & name,Device& out)
public inline bool getAudioDevice(bool input,const std::string & name,Device& out)

Members

public inline FakeDeviceManager()

public inline virtual bool initialize()

Initialization.

public inline virtual void uninitialize()

public inline virtual int getCapabilities()

Capabilities.

public inline virtual bool getMicrophones(std::vector<Device> & devs)

public inline virtual bool getSpeakers(std::vector<Device> & devs)

public inline virtual bool getMicrophone(const std::string & name,Device& out)

public inline virtual bool getSpeaker(const std::string & name,Device& out)

public inline virtual bool getCameras(std::vector<Device> & devs)

public inline virtual bool getDefaultCamera(Device& device)

public inline void setMicrophones(const std::vector<Device> & devices)

public inline void setSpeakers(const std::vector<Device> & devices)

public inline void setCameras(const std::vector<Device> & devices)

public inline virtual bool getCamera(const std::string & name,Device& out)

public inline bool getAudioDevice(bool input,const std::string & name,Device& out)

class scy::av::FLVMetadataInjector

class scy::av::FLVMetadataInjector
  : public scy::PacketProcessor

This class implements a packetizer which appends correct stream headers and modifies the timestamp of FLV packets so Adobe's Flash Player will play our videos mid-stream.

This adapter is useful for multicast situations where we don't have the option of restarting the encoder stream.

Summary

Members Descriptions
publicPacketSignalemitter
public IPacketizer(this-> emitter)
public _format(format)
public _initial(true)
public _modifyingStream(false)
public _waitingForKeyframe(false)
public inline _timestampOffset(0) const
public inline virtual void onStreamStateChange(constPacketStreamState& state) whenever the stream is restarted.
public inline virtual void process(IPacket& packet)
public inline virtual void fastUpdateTimestamp(char * buf,std::uint32_t timestamp)
public inline virtual bool fastIsFLVHeader(char * buf) Caution: this method does not check buffer size.
public inline virtual bool fastIsFLVKeyFrame(char * buf) Caution: this method does not check buffer size.
public inline virtual void writeFLVHeader(BitWriter& writer)
public inline std::int64_t doubleToInt(double d)
public inline virtual void writeAMFSring(BitWriter& writer,const char * val) AMF Helpers.
public inline virtual void writeAMFDouble(BitWriter& writer,double val)
public inline virtual void writeAMFBool(BitWriter& writer,bool val)
protectedFormat_format
protected bool _initial
protected bool _modifyingStream
protected bool _waitingForKeyframe
protected std::uint32_t _timestampOffset
protectedlegacy::FPSCounter_fpsCounter

Members

publicPacketSignalemitter

public IPacketizer(this-> emitter)

public _format(format)

public _initial(true)

public _modifyingStream(false)

public _waitingForKeyframe(false)

public inline _timestampOffset(0) const

public inline virtual void onStreamStateChange(constPacketStreamState& state)

whenever the stream is restarted.

This method is called by the Packet Stream

public inline virtual void process(IPacket& packet)

This method performs processing on the given packet and emits the result.

Note: If packet processing is async (the packet is not in the current thread scope) then packet data must be copied. Copied data can be freed directly aFter the async call to emit() the outgoing packet.

public inline virtual void fastUpdateTimestamp(char * buf,std::uint32_t timestamp)

Updates the timestamp in the given FLV tag buffer. No more need to copy data with this method. Caution: this method does not check buffer size.

public inline virtual bool fastIsFLVHeader(char * buf)

Caution: this method does not check buffer size.

public inline virtual bool fastIsFLVKeyFrame(char * buf)

Caution: this method does not check buffer size.

public inline virtual void writeFLVHeader(BitWriter& writer)

public inline std::int64_t doubleToInt(double d)

public inline virtual void writeAMFSring(BitWriter& writer,const char * val)

AMF Helpers.

public inline virtual void writeAMFDouble(BitWriter& writer,double val)

public inline virtual void writeAMFBool(BitWriter& writer,bool val)

protectedFormat_format

protected bool _initial

protected bool _modifyingStream

protected bool _waitingForKeyframe

protected std::uint32_t _timestampOffset

protectedlegacy::FPSCounter_fpsCounter

class scy::av::FormatRegistry

Summary

Members Descriptions
public FormatRegistry()
public virtual ~FormatRegistry()
public virtualFormat& get(const std::string & name)
public virtualFormat& getByID(const std::string & id)
public virtualFormat& getOrDefault(const std::string & name)
public virtualFormat& getDefault()
public virtual void registerFormat(constFormat& format)
public virtual bool unregisterFormat(const std::string & name)
public virtual void setDefault(const std::string & name) Sets the default fallback media format.
public virtual bool exists(const std::string & name)
public virtual void clear()
public virtual FormatList formats() const

Members

public FormatRegistry()

public virtual ~FormatRegistry()

public virtualFormat& get(const std::string & name)

public virtualFormat& getByID(const std::string & id)

public virtualFormat& getOrDefault(const std::string & name)

public virtualFormat& getDefault()

If a default has been specified it will be returned, other the format with the highest priority will take precedence.

public virtual void registerFormat(constFormat& format)

Registers the given media format overriding existing media formats of the same name.

public virtual bool unregisterFormat(const std::string & name)

Unregisters the media format matching the given name.

public virtual void setDefault(const std::string & name)

Sets the default fallback media format.

public virtual bool exists(const std::string & name)

public virtual void clear()

public virtual FormatList formats() const

class scy::av::FPSCounter

An FPS counter based on the simple moving average (SMA) algorithm.

Summary

Members Descriptions
public double fps
public std::int64_t frames
public inline FPSCounter()
public inline void reset()
public inline void tick()

Members

public double fps

public std::int64_t frames

public inline FPSCounter()

public inline void reset()

public inline void tick()

class scy::av::FPSLimiter

class scy::av::FPSLimiter
  : public scy::PacketProcessor

This class limits the throughput rate of IPackets in a PacketStream. If the throughput rate exceeds the max specified FPS then packets will be dropped.

Note that revious processors must not fragment packets otherwise this class will not be accurate, and the packet drop rate will be too high.

Summary

Members Descriptions
publicPacketSignalemitter
public inline FPSLimiter(int max,bool videoOnly)
public inline virtual void process(IPacket& packet)
public inline virtual void onStreamStateChange(constPacketStreamState&)
protected int _max
protected bool _videoOnly
protectedlegacy::FPSCounter_counter

Members

publicPacketSignalemitter

public inline FPSLimiter(int max,bool videoOnly)

public inline virtual void process(IPacket& packet)

This method performs processing on the given packet and emits the result.

Note: If packet processing is async (the packet is not in the current thread scope) then packet data must be copied. Copied data can be freed directly aFter the async call to emit() the outgoing packet.

public inline virtual void onStreamStateChange(constPacketStreamState&)

Called by the PacketStream to notify when the internal Stream state changes. On receiving the Stopped state, it is the responsibility of the adapter to have ceased all outgoing packet transmission, especially in multi-thread scenarios.

protected int _max

protected bool _videoOnly

protectedlegacy::FPSCounter_counter

class scy::av::ICapture

class scy::av::ICapture
  : public scy::PacketStreamAdapter
  : public scy::async::Startable

Summary

Members Descriptions
publicPacketSignalemitter
public inline ICapture()
public inline virtual ~ICapture()
public void start()
public void stop()
public void getEncoderFormat(Format& iformat) Sets the input format for encoding with this capture device.
public inline virtual void onStreamStateChange(constPacketStreamState&)

Members

publicPacketSignalemitter

public inline ICapture()

public inline virtual ~ICapture()

public void start()

public void stop()

public void getEncoderFormat(Format& iformat)

Sets the input format for encoding with this capture device.

public inline virtual void onStreamStateChange(constPacketStreamState&)

Called by the PacketStream to notify when the internal Stream state changes. On receiving the Stopped state, it is the responsibility of the adapter to have ceased all outgoing packet transmission, especially in multi-thread scenarios.

class scy::av::IDeviceManager

A platform independent interface to enumerate audio and video devices on the system.

Summary

Members Descriptions
publicSignal2< bool &, bool & > DevicesChanged
public inline virtual ~IDeviceManager()
public bool initialize() Initialization.
public void uninitialize()
public bool getAudioInputDevices(std::vector<Device> & devices) Device enumeration.
public bool getAudioOutputDevices(std::vector<Device> & devices)
public bool getAudioInputDevice(Device& out,const std::string & name,int id)
public bool getAudioInputDevice(Device& out,int id)
public bool getAudioOutputDevice(Device& out,const std::string & name,int id)
public bool getAudioOutputDevice(Device& out,int id)
public bool getVideoCaptureDevices(std::vector<Device> & devs)
public bool getVideoCaptureDevice(Device& out,int id)
public bool getVideoCaptureDevice(Device& out,const std::string & name,int id)
public bool getDefaultAudioInputDevice(Device& device)
public bool getDefaultAudioOutputDevice(Device& device)
public bool getDefaultVideoCaptureDevice(Device& device)
public int getCapabilities() Capabilities.
public void print(std::ostream & ost)

Members

publicSignal2< bool &, bool & > DevicesChanged

Signals on DevicesChanged. Arg 1 is true when device is video, false for audio Arg 2 is true when device connects, flase on disconnection

public inline virtual ~IDeviceManager()

public bool initialize()

Initialization.

public void uninitialize()

public bool getAudioInputDevices(std::vector<Device> & devices)

Device enumeration.

public bool getAudioOutputDevices(std::vector<Device> & devices)

public bool getAudioInputDevice(Device& out,const std::string & name,int id)

public bool getAudioInputDevice(Device& out,int id)

public bool getAudioOutputDevice(Device& out,const std::string & name,int id)

public bool getAudioOutputDevice(Device& out,int id)

public bool getVideoCaptureDevices(std::vector<Device> & devs)

public bool getVideoCaptureDevice(Device& out,int id)

public bool getVideoCaptureDevice(Device& out,const std::string & name,int id)

public bool getDefaultAudioInputDevice(Device& device)

public bool getDefaultAudioOutputDevice(Device& device)

public bool getDefaultVideoCaptureDevice(Device& device)

public int getCapabilities()

Capabilities.

public void print(std::ostream & ost)

class scy::av::IEncoder

class scy::av::IEncoder
  : public scy::Stateful< EncoderState >

This is the abstract class for all encoders.

Summary

Members Descriptions
public void initialize()
public void uninitialize()
publicEncoderOptions& options()
public inline virtual bool isNone() const
public inline virtual bool isReady() const
public inline virtual bool isEncoding() const
public inline virtual bool isActive() const
public inline virtual bool isStopped() const
public inline virtual bool isError() const

Members

public void initialize()

public void uninitialize()

publicEncoderOptions& options()

public inline virtual bool isNone() const

public inline virtual bool isReady() const

public inline virtual bool isEncoding() const

public inline virtual bool isActive() const

public inline virtual bool isStopped() const

public inline virtual bool isError() const

class scy::av::LinuxDeviceManager

class scy::av::LinuxDeviceManager
  : public scy::av::DeviceManager

Summary

Members Descriptions
public LinuxDeviceManager()
public virtual ~LinuxDeviceManager()
public virtual bool getCameras(std::vector<Device> & devs)

Members

public LinuxDeviceManager()

public virtual ~LinuxDeviceManager()

public virtual bool getCameras(std::vector<Device> & devs)

class scy::av::MacDeviceManager

class scy::av::MacDeviceManager
  : public scy::av::DeviceManager

Summary

Members Descriptions
public MacDeviceManager()
public virtual ~MacDeviceManager()
public virtual bool getCameras(std::vector<Device> & devs)

Members

public MacDeviceManager()

public virtual ~MacDeviceManager()

public virtual bool getCameras(std::vector<Device> & devs)

class scy::av::MacDeviceWatcher

class scy::av::MacDeviceWatcher
  : public scy::av::DeviceWatcher

Summary

Members Descriptions
public explicit MacDeviceWatcher(IDeviceManager* dm)
public virtual ~MacDeviceWatcher()
public virtual bool start()
public virtual void stop()

Members

public explicit MacDeviceWatcher(IDeviceManager* dm)

public virtual ~MacDeviceWatcher()

public virtual bool start()

public virtual void stop()

class scy::av::RealtimePacketQueue

class scy::av::RealtimePacketQueue
  : public scy::AsyncPacketQueue< PacketT >

This class emits media packets based on their realtime pts value.

Summary

Members Descriptions
public inline RealtimePacketQueue(int maxSize)
public inline virtual ~RealtimePacketQueue()
public inline std::int64_t realTime() Return the current duration from stream start in microseconds.
protected std::int64_t _startTime
protected inline virtual PacketT * popNext()
protected inline virtual void onStreamStateChange(constPacketStreamState&)

Members

public inline RealtimePacketQueue(int maxSize)

public inline virtual ~RealtimePacketQueue()

public inline std::int64_t realTime()

Return the current duration from stream start in microseconds.

protected std::int64_t _startTime

protected inline virtual PacketT * popNext()

protected inline virtual void onStreamStateChange(constPacketStreamState&)

Called by the PacketStream to notify when the internal Stream state changes. On receiving the Stopped state, it is the responsibility of the adapter to have ceased all outgoing packet transmission, especially in multi-thread scenarios.

struct scy::av::AudioCodec

struct scy::av::AudioCodec
  : public scy::av::Codec

Summary

Members Descriptions
public int channels
public std::string sampleFmt
public AudioCodec() int frameSize; // Frame size (optional value set by encoder/decoder) /// int bufferSize; // Buffer size (optional value set by encoder/decoder)
public AudioCodec(const std::string & name,int channels,int sampleRate,int bitRate,const std::string & sampleFmt)
public AudioCodec(const std::string & name,const std::string & encoder,int channels,int sampleRate,int bitRate,const std::string & sampleFmt)
public virtual ~AudioCodec() AudioCodec(const AudioCodec& r);.
public virtual std::string toString() const
public virtual void print(std::ostream & ost)

Members

public int channels

public std::string sampleFmt

One of: u8, s16, s32, flt, dbl, u8p, s16p, s32p, fltp, dblp

public AudioCodec()

int frameSize; // Frame size (optional value set by encoder/decoder) /// int bufferSize; // Buffer size (optional value set by encoder/decoder)

public AudioCodec(const std::string & name,int channels,int sampleRate,int bitRate,const std::string & sampleFmt)

public AudioCodec(const std::string & name,const std::string & encoder,int channels,int sampleRate,int bitRate,const std::string & sampleFmt)

public virtual ~AudioCodec()

AudioCodec(const AudioCodec& r);.

public virtual std::string toString() const

public virtual void print(std::ostream & ost)

struct scy::av::AudioPacket

struct scy::av::AudioPacket
  : public scy::av::MediaPacket

Summary

Members Descriptions
public std::size_t numSamples
public inline AudioPacket(std::uint8_t * data,std::size_t size,std::size_t numSamples,std::int64_t time)
public inline virtual ~AudioPacket() AudioPacket(const AudioPacket& r) : /// MediaPacket(r) {}.
public inline virtualIPacket* clone() const
public inline virtual std::uint8_t * samples() const
public inline virtual const char * className() const

Members

public std::size_t numSamples

public inline AudioPacket(std::uint8_t * data,std::size_t size,std::size_t numSamples,std::int64_t time)

public inline virtual ~AudioPacket()

AudioPacket(const AudioPacket& r) : /// MediaPacket(r) {}.

public inline virtualIPacket* clone() const

public inline virtual std::uint8_t * samples() const

public inline virtual const char * className() const

struct scy::av::Codec

Summary

Members Descriptions
public std::string name The display name for this codec.
public std::string encoder The encoder name for FFmpeg.
public int sampleRate The sampling rate or RTP clock rate.
public int bitRate The bit rate to encode at.
public int quality Optional quality value, variable range depending on codec.
public bool enabled Weather or not the codec is available for use.
public Codec()
public Codec(const std::string & name,int sampleRate,int bitRate,bool enabled)
public Codec(const std::string & name,const std::string & encoder,int sampleRate,int bitRate,bool enabled)
public virtual ~Codec() Codec(const Codec& r);.
public virtual std::string toString() const
public virtual void print(std::ostream & ost)

Members

public std::string name

The display name for this codec.

public std::string encoder

The encoder name for FFmpeg.

public int sampleRate

The sampling rate or RTP clock rate.

public int bitRate

The bit rate to encode at.

public int quality

Optional quality value, variable range depending on codec.

public bool enabled

Weather or not the codec is available for use.

public Codec()

public Codec(const std::string & name,int sampleRate,int bitRate,bool enabled)

public Codec(const std::string & name,const std::string & encoder,int sampleRate,int bitRate,bool enabled)

public virtual ~Codec()

Codec(const Codec& r);.

public virtual std::string toString() const

public virtual void print(std::ostream & ost)

struct scy::av::Device

Represents a system audio, video or render device.

Summary

Members Descriptions
public std::string type
public int id
public std::string name
public std::string guid
public bool isDefault
public bool isAvailable
public Device()
public Device(const std::string & type,int id,const std::string & name,const std::string & guid,bool isDefault,bool isAvailable)
public void print(std::ostream & os)
public inline bool operator==(constDevice& that) const

Members

public std::string type

public int id

public std::string name

public std::string guid

public bool isDefault

public bool isAvailable

public Device()

public Device(const std::string & type,int id,const std::string & name,const std::string & guid,bool isDefault,bool isAvailable)

public void print(std::ostream & os)

public inline bool operator==(constDevice& that) const

struct scy::av::EncoderOptions

Summary

Members Descriptions
publicFormatiformat
publicFormatoformat
public std::string ifile
public std::string ofile
public long duration
public inline EncoderOptions(constFormat& iformat,constFormat& oformat,const std::string & ifile,const std::string & ofile,long duration)
public inline virtual ~EncoderOptions()

Members

publicFormatiformat

publicFormatoformat

public std::string ifile

public std::string ofile

public long duration

public inline EncoderOptions(constFormat& iformat,constFormat& oformat,const std::string & ifile,const std::string & ofile,long duration)

public inline virtual ~EncoderOptions()

struct scy::av::EncoderState

struct scy::av::EncoderState
  : public scy::State

Summary

Members Descriptions
public inline virtual std::string str(unsigned int id) const

Members

public inline virtual std::string str(unsigned int id) const

struct scy::av::Format

Defines a media container format which is available through the Format Registry for encoding/decoding. A format defined preferred default values for each codec.

Summary

Members Descriptions
public std::string name Base Format Variables.
public std::string id The short name of this format.
publicVideoCodecvideo The video codec.
publicAudioCodecaudio The audio codec.
public int priority The priority this format will be displayed on the list.
public Format() Ctors/Dtors.
public Format(const std::string & name,const std::string & id,constVideoCodec& video,constAudioCodec& audio,int priority)
public Format(const std::string & name,const std::string & id,constVideoCodec& video,int priority)
public Format(const std::string & name,const std::string & id,constAudioCodec& audio,int priority)
public Format(constFormat& r)
publicTypetype() const The format type.
public virtual std::string toString() const
public virtual void print(std::ostream & ost)

Members

public std::string name

Base Format Variables.

The display name of this format.

public std::string id

The short name of this format.

publicVideoCodecvideo

The video codec.

publicAudioCodecaudio

The audio codec.

public int priority

The priority this format will be displayed on the list.

public Format()

Ctors/Dtors.

public Format(const std::string & name,const std::string & id,constVideoCodec& video,constAudioCodec& audio,int priority)

public Format(const std::string & name,const std::string & id,constVideoCodec& video,int priority)

public Format(const std::string & name,const std::string & id,constAudioCodec& audio,int priority)

public Format(constFormat& r)

publicTypetype() const

The format type.

public virtual std::string toString() const

public virtual void print(std::ostream & ost)

struct scy::av::MediaPacket

struct scy::av::MediaPacket
  : public scy::RawPacket

Summary

Members Descriptions
public std::int64_t time
public inline MediaPacket(std::uint8_t * data,std::size_t size,std::int64_t time)
public inline MediaPacket(constMediaPacket& r)
public inline virtual ~MediaPacket()
public inline virtualIPacket* clone() const
public inline virtual const char * className() const

Members

public std::int64_t time

public inline MediaPacket(std::uint8_t * data,std::size_t size,std::int64_t time)

public inline MediaPacket(constMediaPacket& r)

public inline virtual ~MediaPacket()

public inline virtualIPacket* clone() const

public inline virtual const char * className() const

struct scy::av::VideoCodec

struct scy::av::VideoCodec
  : public scy::av::Codec

Summary

Members Descriptions
public int width
public int height
public double fps
public std::string pixelFmt
public VideoCodec()
public VideoCodec(const std::string & name,int width,int height,double fps,int bitRate,int sampleRate,const std::string & pixelFmt)
public VideoCodec(const std::string & name,const std::string & encoder,int width,int height,double fps,int bitRate,int sampleRate,const std::string & pixelFmt)
public VideoCodec(constVideoCodec& r)
public virtual ~VideoCodec()
public virtual std::string toString() const
public virtual void print(std::ostream & ost)

Members

public int width

public int height

public double fps

public std::string pixelFmt

public VideoCodec()

public VideoCodec(const std::string & name,int width,int height,double fps,int bitRate,int sampleRate,const std::string & pixelFmt)

public VideoCodec(const std::string & name,const std::string & encoder,int width,int height,double fps,int bitRate,int sampleRate,const std::string & pixelFmt)

public VideoCodec(constVideoCodec& r)

public virtual ~VideoCodec()

public virtual std::string toString() const

public virtual void print(std::ostream & ost)

struct scy::av::VideoPacket

struct scy::av::VideoPacket
  : public scy::av::MediaPacket

Summary

Members Descriptions
public int width
public int height
public bool iframe
public inline VideoPacket(std::uint8_t * data,std::size_t size,int width,int height,std::int64_t time)
public inline VideoPacket(constVideoPacket& r)
public inline virtual ~VideoPacket()
public inline virtualIPacket* clone() const
public inline virtual const char * className() const

Members

public int width

public int height

public bool iframe

public inline VideoPacket(std::uint8_t * data,std::size_t size,int width,int height,std::int64_t time)

public inline VideoPacket(constVideoPacket& r)

public inline virtual ~VideoPacket()

public inline virtualIPacket* clone() const

public inline virtual const char * className() const

namespace scy::av::legacy

Summary

Members Descriptions
structscy::av::legacy::FPSCounter

struct scy::av::legacy::FPSCounter

Summary

Members Descriptions
public clock_t start
public clock_t end
public std::int64_t frames
public double total
public double fps
public inline FPSCounter()
public inline void tick()
public inline void reset()
public inline bool started()
public inline void startFrame()
public inline double endFrame()

Members

public clock_t start

public clock_t end

public std::int64_t frames

public double total

public double fps

public inline FPSCounter()

public inline void tick()

public inline void reset()

public inline bool started()

public inline void startFrame()

public inline double endFrame()

results matching ""

    No results matching ""