Video and image input/output groupClasses and functions to perform image and video input, as well as storage of output image and video files.
More...
|
Classes |
class | QVMPlayerReaderBlock |
| Class to create MPlayer input video reader block components for the QVision application architecture. More...
|
class | QVVideoReaderBlock |
| Virtual base class to create input video reader block components for the QVision application architecture. More...
|
class | QVYUV4MPEG2ReaderBlock |
| Class to create YUV4MPEG2 input video reader block components for the QVision application architecture. More...
|
class | QVYUV4MPEG2WriterBlock |
| Video source class for reading many video file formats, webcams and digital cameras. More...
|
class | QVMPlayerReader |
| Class to read from many video formats and devices, based on the MPlayer application. More...
|
Functions |
bool | writeYUV4MPEG2Header (QFile &file, const int cols, const int rows, const int fps) |
| Create a yuv4mpeg2 video file.
|
bool | writeYUV4MPEG2Frame (QFile &file, const QVImage< uChar, 1 > imageY, const QVImage< uChar, 1 > imageU, const QVImage< uChar, 1 > imageV) |
| Write YUV image frames to a yuv4mpeg2 video file.
|
bool | writeYUV4MPEG2Frame (QFile &file, const QVImage< uChar, 3 > imageRGB) |
| Write RGB image frames to a yuv4mpeg2 video file.
|
bool | writeQVImageToFile (const QString fileName, const QVImage< uChar, 3 > &image) |
| Write the content of a QVImage (RGB) object in an image file.
|
bool | readQVImageFromFile (const QString fileName, QVImage< uChar, 3 > &image) |
| Reads the content of a QVImage (RGB) object from an image file.
|
bool | readYUV4MPEG2Frame (QFile &file, QVImage< uChar > &imageY, QVImage< uChar > &imageU, QVImage< uChar > &imageV) |
| Read YUV image frames from a yuv4mpeg2 video file.
|
bool | readYUV4MPEG2Header (QFile &file, int &cols, int &rows, int &fps) |
| Read yuv4mpeg2 header from a video file.
|
Detailed Description
Classes and functions to perform image and video input, as well as storage of output image and video files.
Function Documentation
bool readQVImageFromFile |
( |
const QString |
fileName, |
|
|
QVImage< uChar, 3 > & |
image | |
|
) |
| | |
Reads the content of a QVImage (RGB) object from an image file.
- Parameters:
-
| fileName | The name of the image file to read from. File format is inferred from fileName suffix. Supported formats: BMP,JPG,PNG,PPM,TIFF,XBM,XPM,GIF,PBM,PGM. |
| image | The image to store in the file. |
- Returns:
- TRUE if success, FALSE otherwise.
Definition at line 73 of file qvio.cpp.
bool readYUV4MPEG2Frame |
( |
QFile & |
file, |
|
|
QVImage< uChar > & |
imageY, |
|
|
QVImage< uChar > & |
imageU, |
|
|
QVImage< uChar > & |
imageV | |
|
) |
| | |
Read YUV image frames from a yuv4mpeg2 video file.
This function retrieves a frame from a video file coded in YUV format. The parameters of this function must be three images to store the three chanels for the YUV image.
See section Reading from YUV4MPEG video files. for further info about the usage of this function.
- Parameters:
-
| file | The input file object. It must be already opened when received as argument by this function. |
| imageY | Image object to contain the Y channel for the YUV image, to store in the video file. |
| imageU | Image object to contain the U channel for the YUV image, to store in the video file. |
| imageV | Image object to contain the V channel for the YUV image, to store in the video file. |
- See also:
- readYUV4MPEG2Header
Definition at line 152 of file qvio.cpp.
Referenced by QVYUV4MPEG2ReaderBlock::grab().
bool readYUV4MPEG2Header |
( |
QFile & |
file, |
|
|
int & |
cols, |
|
|
int & |
rows, |
|
|
int & |
fps | |
|
) |
| | |
Read yuv4mpeg2 header from a video file.
This function reads the header of a video file encoded in yuv4mpeg2 format. This header contains information about the size of the frames in the video file, as well as the number of frames per second of the video sequence.
See section Reading from YUV4MPEG video files. for further info about the usage of this function.
- Parameters:
-
| file | The input file object. It must be already opened when received as argument by this function. |
| cols | (output parameter) Number of cols readed in the header |
| rows | (output parameter) Number of rows readed in the header |
| fps | (output parameter) Video fps readed in the header |
- See also:
- readYUV4MPEG2Frame
Definition at line 111 of file qvio.cpp.
Referenced by QVMPlayerReader::open(), and QVYUV4MPEG2ReaderBlock::open().
bool writeQVImageToFile |
( |
const QString |
fileName, |
|
|
const QVImage< uChar, 3 > & |
image | |
|
) |
| | |
Write the content of a QVImage (RGB) object in an image file.
- Parameters:
-
| fileName | The name of the image file to create. It is overwritten if already exists. File format is inferred from fileName suffix. Supported formats: BMP,JPG,PNG,PPM,TIFF,XBM,XPM. |
| image | The image to store in the file. |
- Returns:
- TRUE if success, FALSE otherwise.
Definition at line 70 of file qvio.cpp.
bool writeYUV4MPEG2Frame |
( |
QFile & |
file, |
|
|
const QVImage< uChar, 3 > |
imageRGB | |
|
) |
| | |
Write RGB image frames to a yuv4mpeg2 video file.
This function stores a frame in a video file from the RGB format. The parameter of this function is an image containing the RGB image. For further information about its usage, see documentation for function writeYUV4MPEG2Header.
See section Writting to YUV4MPEG video files. for further info about the usage of this function.
- Parameters:
-
| file | The input file object. It must be already opened when received as argument by this function. |
| imageRGB | RGB image object, to store in the video file. |
- See also:
- writeYUV4MPEG2Header
Definition at line 56 of file qvio.cpp.
bool writeYUV4MPEG2Frame |
( |
QFile & |
file, |
|
|
const QVImage< uChar, 1 > |
imageY, |
|
|
const QVImage< uChar, 1 > |
imageU, |
|
|
const QVImage< uChar, 1 > |
imageV | |
|
) |
| | |
Write YUV image frames to a yuv4mpeg2 video file.
This is an overloaded version of the function writeYUV4MPEG2Frame(QFile &, const QVImage<uChar,3>) provided for convenience.
This version stores a frame in a video file from the YUV format. The parameters of this function must be three images containing the three chanels for the YUV image. For further information about its usage, see documentation for function writeYUV4MPEG2Header.
See section Writting to YUV4MPEG video files. for further info about the usage of this function.
- Parameters:
-
| file | The input file object. It must be already opened when received as argument by this function. |
| imageY | Image object containing the Y channel for the YUV image, to store in the video file. |
| imageU | Image object containing the Y channel for the YUV image, to store in the video file. |
| imageV | Image object containing the Y channel for the YUV image, to store in the video file. |
- See also:
- writeYUV4MPEG2Header
Definition at line 41 of file qvio.cpp.
Referenced by writeYUV4MPEG2Frame().
bool writeYUV4MPEG2Header |
( |
QFile & |
file, |
|
|
const int |
cols, |
|
|
const int |
rows, |
|
|
const int |
fps | |
|
) |
| | |
|