Alchemy 0.0.9999
Alchemy is a C++ library for multimedia file management.
Loading...
Searching...
No Matches
Public Member Functions | List of all members
Alchemy::Media::Flags::Codec Class Referencefinal

The flags for the codec. More...

#include <codec.hxx>

Inheritance diagram for Alchemy::Media::Flags::Codec:
Inheritance graph
[legend]
Collaboration diagram for Alchemy::Media::Flags::Codec:
Collaboration graph
[legend]

Public Member Functions

 Codec (const std::string &flags)
 Constructor.
 
 Codec (const Codec &other)=default
 Copy constructor.
 
 Codec (Codec &&other) noexcept=default
 Move constructor.
 
Codecoperator= (const Codec &other)=default
 Copy assignment operator.
 
Codecoperator= (Codec &&other) noexcept=default
 Move assignment operator.
 
 ~Codec () noexcept=default
 Default destructor.
 
bool EncodeSupported () const
 Checks if the codec supports encoding.
 
bool DecodeSupported () const
 Checks if the codec supports decoding.
 
bool LossySupported () const
 Checks if the codec supports lossy encoding.
 
bool LosslessSupported () const
 Checks if the codec supports lossless encoding.
 
StormByte::Multimedia::Media::Type Type () const
 Gets the codec type.
 
Base::PointerType Clone () const override
 Creates a copy of the object.
 
Base::PointerType Move () override
 Moves the object.
 

Detailed Description

The flags for the codec.

Constructor & Destructor Documentation

◆ Codec() [1/3]

Alchemy::Media::Flags::Codec::Codec ( const std::string &  flags)

Constructor.

Parameters
flagsThe flags.

◆ Codec() [2/3]

Alchemy::Media::Flags::Codec::Codec ( const Codec other)
default

Copy constructor.

Parameters
otherThe Codec object to copy.

◆ Codec() [3/3]

Alchemy::Media::Flags::Codec::Codec ( Codec &&  other)
defaultnoexcept

Move constructor.

Parameters
otherThe Codec object to move.

Member Function Documentation

◆ Clone()

Base::PointerType Alchemy::Media::Flags::Codec::Clone ( ) const
override

Creates a copy of the object.

Returns
A pointer to the copy of the object.

◆ DecodeSupported()

bool Alchemy::Media::Flags::Codec::DecodeSupported ( ) const

Checks if the codec supports decoding.

Returns
True if the codec supports decoding, false otherwise.

◆ EncodeSupported()

bool Alchemy::Media::Flags::Codec::EncodeSupported ( ) const

Checks if the codec supports encoding.

Returns
True if the codec supports encoding, false otherwise.

◆ LosslessSupported()

bool Alchemy::Media::Flags::Codec::LosslessSupported ( ) const

Checks if the codec supports lossless encoding.

Returns
True if the codec supports lossless encoding, false otherwise.

◆ LossySupported()

bool Alchemy::Media::Flags::Codec::LossySupported ( ) const

Checks if the codec supports lossy encoding.

Returns
True if the codec supports lossy encoding, false otherwise.

◆ Move()

Base::PointerType Alchemy::Media::Flags::Codec::Move ( )
override

Moves the object.

Returns
A pointer to the moved object.

◆ operator=() [1/2]

Codec & Alchemy::Media::Flags::Codec::operator= ( Codec &&  other)
defaultnoexcept

Move assignment operator.

Parameters
otherThe Codec object to move.
Returns
A reference to this object.

◆ operator=() [2/2]

Codec & Alchemy::Media::Flags::Codec::operator= ( const Codec other)
default

Copy assignment operator.

Parameters
otherThe Codec object to copy.
Returns
A reference to this object.

◆ Type()

StormByte::Multimedia::Media::Type Alchemy::Media::Flags::Codec::Type ( ) const

Gets the codec type.

Returns
The codec type.

The documentation for this class was generated from the following file: