|
AvTranscoder
0.9.4
C++APIforLibav/FFmpeg
|
#include <VideoReader.hpp>
Public Member Functions | |
| ~VideoReader () | |
| void | updateOutput (const size_t width, const size_t height, const std::string &pixelFormat) |
| Update width, height and pixelFormat of the output. More... | |
| const VideoProperties * | getSourceVideoProperties () const |
| VideoReader (const std::string &filename, const size_t videoStreamIndex=0) | |
| VideoReader (InputFile &inputFile, const size_t videoStreamIndex=0) | |
| size_t | getOutputWidth () const |
| size_t | getOutputHeight () const |
| size_t | getOutputNbComponents () const |
| size_t | getOutputBitDepth () const |
| AVPixelFormat | getOutputPixelFormat () const |
Public Member Functions inherited from avtranscoder::IReader | |
| IReader (const std::string &filename, const size_t streamIndex=0, const int channelIndex=-1) | |
| Create a new InputFile and prepare to read the stream at the given index. More... | |
| IReader (InputFile &inputFile, const size_t streamIndex=0, const int channelIndex=-1) | |
| Get the existing InputFile and prepare to read the stream at the given index. More... | |
| virtual | ~IReader ()=0 |
| Frame * | readNextFrame () |
| Frame * | readPrevFrame () |
| Frame * | readFrameAt (const size_t frame) |
| const StreamProperties * | getSourceProperties () const |
| Get the properties of the source stream read. More... | |
| void | continueWithGenerator (const bool continueWithGenerator=true) |
| Set the reader state to generate data (ie silence or black) when there is no more data to decode. More... | |
Private Member Functions | |
| void | init () |
Private Attributes | |
| const VideoProperties * | _videoStreamProperties |
| Properties of the source video stream read (no ownership, has link) More... | |
| size_t | _outputWidth |
| size_t | _outputHeight |
| PixelProperties | _outputPixelProperties |
Additional Inherited Members | |
Protected Attributes inherited from avtranscoder::IReader | |
| InputFile * | _inputFile |
| const StreamProperties * | _streamProperties |
| IDecoder * | _decoder |
| IDecoder * | _generator |
| IDecoder * | _currentDecoder |
| Link to _inputDecoder or _generator. More... | |
| Frame * | _srcFrame |
| Frame * | _dstFrame |
| ITransform * | _transform |
| size_t | _streamIndex |
| int | _channelIndex |
Definition at line 13 of file VideoReader.hpp.
| avtranscoder::VideoReader::VideoReader | ( | const std::string & | filename, |
| const size_t | videoStreamIndex = 0 |
||
| ) |
Definition at line 12 of file VideoReader.cpp.
References init().
| avtranscoder::VideoReader::VideoReader | ( | InputFile & | inputFile, |
| const size_t | videoStreamIndex = 0 |
||
| ) |
Definition at line 22 of file VideoReader.cpp.
References init().
| avtranscoder::VideoReader::~VideoReader | ( | ) |
Definition at line 61 of file VideoReader.cpp.
References avtranscoder::IReader::_decoder, avtranscoder::IReader::_dstFrame, avtranscoder::IReader::_generator, avtranscoder::IReader::_srcFrame, and avtranscoder::IReader::_transform.
|
inline |
Definition at line 36 of file VideoReader.hpp.
|
inline |
Definition at line 34 of file VideoReader.hpp.
Referenced by Window::displayAtFrame(), Window::displayNextFrame(), Window::displayPrevFrame(), main(), and Window::Window().
|
inline |
Definition at line 35 of file VideoReader.hpp.
Referenced by Window::displayAtFrame(), Window::displayNextFrame(), and Window::displayPrevFrame().
|
inline |
Definition at line 37 of file VideoReader.hpp.
Referenced by init(), and updateOutput().
|
inline |
Definition at line 33 of file VideoReader.hpp.
Referenced by Window::displayAtFrame(), Window::displayNextFrame(), Window::displayPrevFrame(), main(), and Window::Window().
|
inline |
Definition at line 41 of file VideoReader.hpp.
Referenced by Window::displayInformations().
|
private |
Definition at line 32 of file VideoReader.cpp.
References avtranscoder::IReader::_currentDecoder, avtranscoder::IReader::_decoder, avtranscoder::IReader::_dstFrame, avtranscoder::IReader::_generator, avtranscoder::IReader::_inputFile, _outputHeight, _outputWidth, avtranscoder::IReader::_srcFrame, avtranscoder::IReader::_streamIndex, avtranscoder::IReader::_streamProperties, avtranscoder::IReader::_transform, _videoStreamProperties, avtranscoder::InputFile::activateStream(), avtranscoder::InputFile::analyse(), getOutputPixelFormat(), avtranscoder::InputFile::getProperties(), avtranscoder::InputFile::getStream(), avtranscoder::FileProperties::getStreamPropertiesWithIndex(), avtranscoder::InputStream::getVideoCodec(), avtranscoder::VideoCodec::getVideoFrameDesc(), and avtranscoder::IDecoder::setupDecoder().
Referenced by VideoReader().
| void avtranscoder::VideoReader::updateOutput | ( | const size_t | width, |
| const size_t | height, | ||
| const std::string & | pixelFormat | ||
| ) |
Update width, height and pixelFormat of the output.
Definition at line 70 of file VideoReader.cpp.
References avtranscoder::IReader::_dstFrame, _outputHeight, _outputPixelProperties, _outputWidth, and getOutputPixelFormat().
Referenced by main().
|
private |
Definition at line 52 of file VideoReader.hpp.
Referenced by init(), and updateOutput().
|
private |
Definition at line 53 of file VideoReader.hpp.
Referenced by updateOutput().
|
private |
Definition at line 51 of file VideoReader.hpp.
Referenced by init(), and updateOutput().
|
private |
Properties of the source video stream read (no ownership, has link)
Definition at line 47 of file VideoReader.hpp.
Referenced by init().