Fawkes API  Fawkes Development Version
scaler.cpp
1 
2 /***************************************************************************
3  * scaler.cpp - Scaler interface
4  *
5  * Generated: Thu Mar 29 11:04:03 2007
6  * Copyright 2005-2007 Tim Niemueller [www.niemueller.de]
7  *
8  ****************************************************************************/
9 
10 /* This program is free software; you can redistribute it and/or modify
11  * it under the terms of the GNU General Public License as published by
12  * the Free Software Foundation; either version 2 of the License, or
13  * (at your option) any later version. A runtime exception applies to
14  * this software (see LICENSE.GPL_WRE file mentioned below for details).
15  *
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19  * GNU Library General Public License for more details.
20  *
21  * Read the full text in the LICENSE.GPL_WRE file in the doc directory.
22  */
23 
24 #include <fvutils/scalers/scaler.h>
25 
26 namespace firevision {
27 #if 0 /* just to make Emacs auto-indent happy */
28 }
29 #endif
30 
31 /** @class Scaler <fvutils/scalers/scaler.h>
32  * Image scaler interface.
33  * Image scalers allow for scaling images by a given factor.
34  * @author Tim Niemueller
35  *
36  * @fn void Scaler::set_scale_factor(float factor)
37  * Set scale factor.
38  * @param factor scale factor
39  *
40  * @fn void Scaler::set_original_dimensions(unsigned int width, unsigned int height)
41  * Set original image dimensions.
42  * @param width image width
43  * @param height height
44  *
45  * @fn void Scaler::set_scaled_dimensions(unsigned int width, unsigned int height)
46  * Set dimenins of scaled image buffer.
47  * @param width image width
48  * @param height height
49  *
50  * @fn void Scaler::set_original_buffer(unsigned char *buffer)
51  * Set original image buffer.
52  * @param buffer YUV 422 planar buffer
53  *
54  * @fn void Scaler::set_scaled_buffer(unsigned char *buffer)
55  * Set scaled image buffer.
56  * @param buffer YUV 422 planar buffer
57  *
58  * @fn void Scaler::scale()
59  * Scale image.
60  *
61  * @fn unsigned int Scaler::needed_scaled_width()
62  * Minimum needed width of scaled image depending on factor and original image width.
63  * @return minimum needed width
64  *
65  * @fn unsigned int Scaler::needed_scaled_height()
66  * Minimum needed height of scaled image depending on factor and original image height.
67  * @return minimum needed height
68  *
69  * @fn float Scaler::get_scale_factor()
70  * Returns the scale factor.
71  * @return the scale factor
72  */
73 
74 /** Virtual empty destructor. */
76 {
77 }
78 
79 } // end namespace firevision
virtual ~Scaler()
Virtual empty destructor.
Definition: scaler.cpp:75