Classes | Functions
core/vidl/vidl_pixel_iterator.h File Reference

Iterators over pixels in a frame. More...

#include "vidl_pixel_format.h"
#include "vidl_frame.h"

Go to the source code of this file.

Classes

class  vidl_pixel_iterator
 Abstract pixel iterator base class. More...

Functions

vidl_pixel_iteratorvidl_make_pixel_iterator (const vidl_frame &frame)
 Pixel iterator factory.
bool vidl_has_pixel_iterator (vidl_pixel_format FMT)
 Return true if the pixel format has a valid pixel iterator implementation.

Detailed Description

Iterators over pixels in a frame.

Author:
Matt Leotta
Date:
16 Jan 2006

This file contains the classes and functions to use pixel iterators in a polymorphic way. Note that pixel iterators are not fast. They are intended to allow for the automatic generation of conversion routines between any pair of pixel formats. Fast conversion functions for specific formats can be written to override the default ones when needed.

Definition in file vidl_pixel_iterator.h.


Function Documentation

bool vidl_has_pixel_iterator ( vidl_pixel_format  FMT)

Return true if the pixel format has a valid pixel iterator implementation.

Definition at line 96 of file vidl_pixel_iterator.cxx.

vidl_pixel_iterator* vidl_make_pixel_iterator ( const vidl_frame frame)

Pixel iterator factory.

Creates a new pixel iterator on the heap The iterator is initialized to the first pixel in the frame

Note:
The user is responsible for deleting the iterator

Definition at line 89 of file vidl_pixel_iterator.cxx.