3 #ifndef VIDEO_STREAMER_VIDEODECODER_TASK_HPP 4 #define VIDEO_STREAMER_VIDEODECODER_TASK_HPP 6 #include "video_streamer/VideoDecoderBase.hpp" 9 #include "libavcodec/avcodec.h" 10 #include "libswscale/swscale.h" 39 base::samples::frame::Frame *
frame;
40 RTT::extras::ReadOnlyPointer<base::samples::frame::Frame>
ro_ptr;
48 VideoDecoder(std::string
const& name =
"video_streamer::VideoDecoder", TaskCore::TaskState initial_state = Stopped);
55 VideoDecoder(std::string
const& name, RTT::ExecutionEngine* engine, TaskCore::TaskState initial_state = Stopped);
RTT::extras::ReadOnlyPointer< base::samples::frame::Frame > ro_ptr
Definition: VideoDecoder.hpp:40
AVFrame * yuv_picture
Definition: VideoDecoder.hpp:36
AVPacket avpkt
Definition: VideoDecoder.hpp:37
base::samples::frame::Frame * frame
Definition: VideoDecoder.hpp:39
Definition: VideoDecoder.hpp:12
friend class VideoDecoderBase
Definition: VideoDecoder.hpp:30
AVFrame * rgb_picture
Definition: VideoDecoder.hpp:35
void stopHook()
Definition: VideoDecoder.cpp:167
The task context provides and requires services. It uses an ExecutionEngine to perform its functions...
Definition: VideoDecoder.hpp:28
AVCodecContext * c
Definition: VideoDecoder.hpp:34
void WriteFrame()
Definition: VideoDecoder.cpp:93
AVCodec * codec
Definition: VideoDecoder.hpp:33
void cleanupHook()
Definition: VideoDecoder.cpp:188
~VideoDecoder()
Definition: VideoDecoder.cpp:30
bool configureHook()
The following lines are template definitions for the various state machine.
Definition: VideoDecoder.cpp:40
SwsContext * sws_context
Definition: VideoDecoder.hpp:38
VideoDecoder(std::string const &name="video_streamer::VideoDecoder", TaskCore::TaskState initial_state=Stopped)
Definition: VideoDecoder.cpp:16
void updateHook()
Definition: VideoDecoder.cpp:120