PARP Research Group Universidad de Murcia


QVYUV4MPEG2WriterBlock Class Reference
[Block programming]

Video source class for reading many video file formats, webcams and digital cameras. More...

#include <QVYUV4MPEG2WriterBlock>

Inherits QVProcessingBlock.

List of all members.

Public Slots

void processTrigger (QString name)
 Process trigger activations in the block.

Public Member Functions

void iterate ()
 Function to be defined in subclasses with processing code.

Detailed Description

Video source class for reading many video file formats, webcams and digital cameras.

This block can be linked to a block object producing an output image, to store the flow of images in a video file in the uncompressed YUV4MPEG2 format.

To use it, create a QVYUV4MPEG2WriterBlock object in the main function, and link a RGB image from a block, to store each output image from the block in a video file.

int main(int argc, char *argv[])
        {
        [...]
        // The following block should have a property named 'Output image' containing an RGB image.
        MyBlock myBlock("My block");
        [...]
        QVYUV4MPEG2WriterBlock recorder("Video recorder");
        player.linkProperty("Output image", recorder);
        [...]
        }

You can tune the number of frames per second and the name of the file to store the video through the user command line, setting values for the properties FPS and Record file name in the video record object.

Once the object reads the first image frame changing those values will have no effect.

Definition at line 59 of file qvyuv4mpeg2writerblock.h.


Member Function Documentation

void QVYUV4MPEG2WriterBlock::iterate (  )  [virtual]

Function to be defined in subclasses with processing code.

This function should contain the code to process data, that will be executed continuously until block is finished.

Reimplemented from QVProcessingBlock.

Definition at line 105 of file qvyuv4mpeg2writerblock.cpp.

void QVYUV4MPEG2WriterBlock::processTrigger ( QString  name  )  [virtual, slot]

Process trigger activations in the block.

Triggers are just named actions that can be called upon a QVProcessingBlock to change it's state, initialize itself, or whatever action the programmer considers convenient, in a completely asynchronous manner.

When added to a block, they will depict a button in the corresponding property widget in the interface, that will do a call to QVProcessingBlock::processTrigger() function when pressed. Use addTrigger to add triggers to a block, and redefine this function to capture their activations.

See also:
QVProcessingBlock::addTrigger()
Parameters:
name the name of the trigger that was activated.

Reimplemented from QVProcessingBlock.

Definition at line 61 of file qvyuv4mpeg2writerblock.cpp.


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



QVision framework. PARP research group. Copyright © 2007, 2008, 2009, 2010, 2011.