#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/GUI/AVVideoDecoder.hpp>
Public Member Functions | |
| AVVideoDecoder () | |
| ~AVVideoDecoder () | |
| int | open (Bambu_StreamInfo const &info) |
| int | open (AVCodecParameters const ¶meters) |
| int | decode (Bambu_Sample const &sample) |
| int | decode (AVPacket const &packet) |
| int | flush () |
| void | close () |
| bool | toWxImage (wxImage &image, wxSize const &size) |
| bool | toWxBitmap (wxBitmap &bitmap, wxSize const &size) |
| wxSize | decoded_frame_size () const |
Private Attributes | |
| AVCodecContext * | codec_ctx_ = nullptr |
| AVFrame * | frame_ = nullptr |
| SwsContext * | sws_ctx_ = nullptr |
| bool | got_frame_ = false |
| int | width_ { 0 } |
| std::vector< uint8_t > | bits_ |
| AVVideoDecoder::AVVideoDecoder | ( | ) |
References codec_ctx_.
| AVVideoDecoder::~AVVideoDecoder | ( | ) |
References codec_ctx_, frame_, and sws_ctx_.
| void AVVideoDecoder::close | ( | ) |
| int AVVideoDecoder::decode | ( | AVPacket const & | packet | ) |
References codec_ctx_, frame_, and got_frame_.
| int AVVideoDecoder::decode | ( | Bambu_Sample const & | sample | ) |
References __Bambu_Sample::buffer, codec_ctx_, frame_, got_frame_, and __Bambu_Sample::size.
Referenced by wxMediaCtrl3::PlayFfmpeg(), and wxMediaCtrl3::PlayThread().
|
inline |
References frame_, and got_frame_.
Referenced by wxMediaCtrl3::PlayFfmpeg().
| int AVVideoDecoder::flush | ( | ) |
References codec_ctx_, frame_, and got_frame_.
| int AVVideoDecoder::open | ( | AVCodecParameters const & | parameters | ) |
References codec_ctx_, and frame_.
| int AVVideoDecoder::open | ( | Bambu_StreamInfo const & | info | ) |
References AVC1, codec_ctx_, frame_, and __Bambu_StreamInfo::sub_type.
Referenced by wxMediaCtrl3::PlayFfmpeg(), and wxMediaCtrl3::PlayThread().
| bool AVVideoDecoder::toWxBitmap | ( | wxBitmap & | bitmap, |
| wxSize const & | size ) |
References bits_, frame_, got_frame_, sws_ctx_, and width_.
Referenced by wxMediaCtrl3::PlayFfmpeg(), and wxMediaCtrl3::PlayThread().
| bool AVVideoDecoder::toWxImage | ( | wxImage & | image, |
| wxSize const & | size ) |
References bits_, frame_, got_frame_, sws_ctx_, and width_.
Referenced by wxMediaCtrl3::PlayFfmpeg(), and wxMediaCtrl3::PlayThread().
|
private |
Referenced by toWxBitmap(), and toWxImage().
|
private |
Referenced by AVVideoDecoder(), ~AVVideoDecoder(), decode(), decode(), flush(), open(), and open().
|
private |
Referenced by ~AVVideoDecoder(), decode(), decode(), decoded_frame_size(), flush(), open(), open(), toWxBitmap(), and toWxImage().
|
private |
Referenced by decode(), decode(), decoded_frame_size(), flush(), toWxBitmap(), and toWxImage().
|
private |
Referenced by ~AVVideoDecoder(), toWxBitmap(), and toWxImage().
|
private |
Referenced by toWxBitmap(), and toWxImage().