
Low-level class for using ffmpeg to decode movie files. More...
#include <Media/HttpEncoder.H>


Public Member Functions | |
| HttpEncoder (nub::soft_ref< HttpServer > httpServer, const std::string &fname, const std::string &codecname, const int bitrate, const int framerate, const int frameratebase, const Dims &dims, const int bufsz) | |
| virtual int | close () |
| Close any underlying streams; return 0 if OK, non-zero if error. | |
| void | writeRawFrame (const AVFrame *picture) |
| void | writeRGB (const Image< PixRGB< byte > > &img) |
| void | writeVideoFrame (const VideoFrame &frame) |
| virtual void | writeFrame (const GenericFrame &f) |
| Write a frame to the low-level stream. | |
| void | sendEncodedFrames (const int clientFd) |
| void | sendMJPGFrames (const int clientFd) |
| void | run () |
Low-level class for using ffmpeg to decode movie files.
You probably want to use MpegOutputStream instead, which relies on HttpEncoder internally for its implementation but offers a richer, higher-level interface.
Definition at line 76 of file HttpEncoder.H.
| int HttpEncoder::close | ( | ) | [virtual] |
Close any underlying streams; return 0 if OK, non-zero if error.
Implements LowLevelEncoder.
Definition at line 311 of file HttpEncoder.C.
References Range< T >::max(), Range< T >::merge(), and Range< T >::min().
| void HttpEncoder::sendEncodedFrames | ( | const int | clientFd | ) |
send header
Definition at line 590 of file HttpEncoder.C.
| void HttpEncoder::writeFrame | ( | const GenericFrame & | f | ) | [virtual] |
Write a frame to the low-level stream.
Implements LowLevelEncoder.
Definition at line 578 of file HttpEncoder.C.
References GenericFrame::asVideo(), and GenericFrame::nativeType().
1.6.3