~ubuntu-branches/ubuntu/karmic/photoprint/karmic

« back to all changes in this revision

Viewing changes to imagesource/imagesource_downsample.h

  • Committer: Bazaar Package Importer
  • Author(s): Milan Zamazal
  • Date: 2007-05-01 16:32:13 UTC
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20070501163213-k0gaendx7grjlmk5
Tags: upstream-0.3.5
ImportĀ upstreamĀ versionĀ 0.3.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef IMAGESOURCE_DOWNSAMPLE_H
 
2
#define IMAGESOURCE_DOWNSAMPLE_H
 
3
 
 
4
#include "imagesource.h"
 
5
 
 
6
class ImageSource_Downsample : public ImageSource
 
7
{
 
8
        public:
 
9
        ImageSource_Downsample(ImageSource *source,int xres,int yres);
 
10
        ~ImageSource_Downsample();
 
11
        ISDataType *GetRow(int row);
 
12
        private:
 
13
        bool CalcCoefficients(int srcsize,int dstsize);
 
14
        void DownsampleRow(ISDataType *src,int srcsize,int *dst,int dstsize,int rowfactor);
 
15
        ImageSource *source;
 
16
        float newxres,newyres;
 
17
        float xscale,yscale;
 
18
        int *coeff;
 
19
        int *tmp;
 
20
};
 
21
 
 
22
#endif