33 lines
453 B
C++
33 lines
453 B
C++
#include <cassert>
|
|
#include "Stream.hpp"
|
|
|
|
namespace Av
|
|
{
|
|
|
|
Stream::Stream(AVStream* stream)
|
|
: _stream(stream)
|
|
{
|
|
assert(_stream != nullptr);
|
|
assert(_stream->codec != nullptr);
|
|
}
|
|
|
|
CodecContext
|
|
Stream::getCodecContext()
|
|
{
|
|
return _stream->codec;
|
|
}
|
|
|
|
Dictionary
|
|
Stream::getMetadata(void)
|
|
{
|
|
return Dictionary(_stream->metadata);
|
|
}
|
|
|
|
bool
|
|
Stream::hasAttachedPic(void) const
|
|
{
|
|
return (_stream->disposition & AV_DISPOSITION_ATTACHED_PIC);
|
|
}
|
|
|
|
} // namespace Av
|