EMIPLIB
Public Member Functions

MIPYUV420FileInput Class Reference

Read uncompressed YUV420P frames from a file. More...

#include <mipyuv420fileinput.h>

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

List of all members.

Public Member Functions

bool open (const std::string &fileName, int width, int height)
 Opens a file.
bool close ()
 Closes the file again and deinitiazes the component.

Detailed Description

This component allow you to read uncompressed, raw YUV420P frames from a file. It only accepts MIPSYSTEMMESSAGE_TYPE_ISTIME system messages as input, and produces a raw YUV420P video message as output.


Member Function Documentation

bool MIPYUV420FileInput::close ( )
bool MIPYUV420FileInput::open ( const std::string &  fileName,
int  width,
int  height 
)

This method opens a file and will assume that each frame has a specific width and height. Each time the push method is called, this will result in (width*height*3)/2 bytes being read from the file, and being interpreted as the data of a single YUV frame.


The documentation for this class was generated from the following file: