Main Page | Namespace List | Compound List | File List | Compound Members | File Members

iq.h

Go to the documentation of this file.
00001 /*--------------------------------------------------------------------
00002  *
00003  * (C) Copyright Koninklijke Philips Electronics NV 2006. 
00004  * All rights reserved. This software is licensed under the terms of
00005  * version 2.1 of the GNU Lesser General Public License as published 
00006  * by the Free Software Foundation. For licensing and warranty
00007  * information, see the file COPYING in the main directory.
00008  *
00009  *------------------------------------------------------------------*/
00010 
00011 #ifndef IQ_H
00012 #define IQ_H
00013 
00014 #include "yapi.h"
00015 #include "vya.h"
00016 #include "datatype.h"
00017 
00018 class IQ : public Process
00019 {
00020 public:
00021   //constructors
00022   IQ(
00023     const Id&               n, 
00024     In<Marker>&             markerIn,
00025     In<VYApixel>&           Cin,
00026     In<VYAimageDepth>&      imageDepthIn,
00027     In<VYAimageComponent>&  imageComponentIdIn,
00028     In<VYAimageH>&          imageHIn,
00029     In<VYAimageV>&          imageVIn,
00030     In<VYAimageDepth>&      scanDepthIn,
00031     In<VYAimageComponent>&  scanComponentIdIn,
00032     In<Bits>&               QTableIn,
00033     In<VYAid>&              QTableIdIn,
00034     Out<VYApixel>&          Cout
00035   );
00036 
00037   // type member function
00038   const char* type() const { return "IQ"; }
00039 
00040   // main member function
00041   void main();
00042 
00043 private:
00044   // input ports
00045   InPort<Marker>            markerInP;
00046   InPort<VYApixel>          CinP;
00047   InPort<VYAimageDepth>     imageDepthInP;
00048   InPort<VYAimageComponent> imageComponentIdInP;
00049   InPort<VYAimageH>         imageHInP;
00050   InPort<VYAimageV>         imageVInP;
00051   InPort<VYAimageDepth>     scanDepthInP;
00052   InPort<VYAimageComponent> scanComponentIdInP;
00053   InPort<Bits>              QTableInP;
00054   InPort<VYAid>             QTableIdInP;
00055 
00056   // output ports
00057   OutPort<VYApixel>         CoutP;
00058 
00059   // member functions
00060   void get_size(unsigned int& size);
00061   int load_quant_tables();
00062   
00063   // member variables
00064   unsigned char   QTable[4][64];
00065 };
00066 
00067 #endif

Generated on Wed Feb 15 14:52:45 2006 for jpegdec by doxygen 1.3.2