HttpEncoder Class Reference

Low-level class for using ffmpeg to decode movie files. More...

#include <Media/HttpEncoder.H>

Inheritance diagram for HttpEncoder:
Inheritance graph
[legend]
Collaboration diagram for HttpEncoder:
Collaboration graph
[legend]

List of all members.

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 ()

Detailed Description

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.


Member Function Documentation

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().


The documentation for this class was generated from the following files:
Generated on Sun May 8 08:43:22 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3