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

jpegdec.cc

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 #include "jpegdec.h"
00012 
00013 JPEGDecode::JPEGDecode(
00014   const Id&              n, 
00015   In<unsigned char>&     byteStreamF,
00016   Out<VYApixel>&         YoutF,
00017   Out<VYApixel>&         UoutF,
00018   Out<VYApixel>&         VoutF,
00019   Out<VYAimageWidth>&    YimgWidthOutF,
00020   Out<VYAimageHeight>&   YimgHeightOutF,
00021   Out<VYAimageWidth>&    UVimgWidthOutF,
00022   Out<VYAimageHeight>&   UVimgHeightOutF,
00023   Out<VYAimageType>&     YUVimgTypeOutF)
00024 :
00025   ProcessNetwork(n),
00026   
00027   byteStreamP(    id("byteStreamP"),    byteStreamF),
00028   YoutP(          id("YoutP"),          YoutF),
00029   UoutP(          id("UoutP"),          UoutF),
00030   VoutP(          id("VoutP"),          VoutF),
00031   YimgWidthOutP(  id("YimgWidthOutP"),  YimgWidthOutF),
00032   YimgHeightOutP( id("YimgHeightOutP"), YimgHeightOutF),
00033   UVimgWidthOutP( id("UVimgWidthOutP"), UVimgWidthOutF),
00034   UVimgHeightOutP(id("UVimgHeightOutP"),UVimgHeightOutF),
00035   YUVimgTypeOutP( id("YUVimgTypeOutP"), YUVimgTypeOutF),
00036   
00037   // Fifo initialization
00038   DQTsegment(         id("DQTsegment")),
00039   DHTsegment(         id("DHTsegment")),
00040   MCUsegment(         id("MCUsegment")),
00041   RestartInterval(    id("RestartInterval")),
00042 
00043   quantizationTableId(id("quantizationTableId")),
00044   huffmanTableId(     id("huffmanTableId")),
00045 
00046   DHTmarker(          id("DHTmarker")),
00047   DQTmarker(          id("DQTmarker")),
00048     
00049   imageDepth(         id("imageDepth")),
00050   imageComponentId(   id("imageComponentId")),
00051   imageX(             id("imageX")),
00052   imageY(             id("imageY")),
00053   imageH(             id("imageH")),
00054   imageV(             id("imageV")),
00055 
00056   scanDepth(          id("scanDepth")),
00057   scanComponentId(    id("scanComponentId")),
00058 
00059   pixels(             id("pixels")),
00060 
00061   // Process initialization
00062   jfif(
00063     id("jfif"), 
00064     byteStreamP,
00065     imageDepth,
00066     imageComponentId,
00067     imageH,
00068     imageV,
00069     imageX,
00070     imageY,
00071     scanDepth,
00072     scanComponentId,
00073     DHTmarker,
00074     DHTsegment,
00075     huffmanTableId,
00076     DQTmarker,
00077     DQTsegment,
00078     quantizationTableId,
00079     RestartInterval,
00080     MCUsegment
00081   ),
00082   decode( 
00083     id("decode"),
00084     MCUsegment,
00085     imageDepth,
00086     imageComponentId,
00087     imageH,
00088     imageV,
00089     scanDepth,
00090     scanComponentId,
00091     DHTmarker, 
00092     DHTsegment,
00093     huffmanTableId,
00094     DQTmarker, 
00095     DQTsegment,
00096     quantizationTableId, 
00097     RestartInterval,
00098     pixels
00099   ),
00100   raster(
00101     id("raster"),
00102     pixels,
00103     imageDepth,
00104     imageComponentId,
00105     imageX,
00106     imageY,
00107     imageH,
00108     imageV,
00109     scanDepth,
00110     scanComponentId,
00111     YoutP, 
00112     UoutP, 
00113     VoutP,
00114     YimgWidthOutP,
00115     YimgHeightOutP,
00116     UVimgWidthOutP,
00117     UVimgHeightOutP,
00118     YUVimgTypeOutP
00119   )
00120 {
00121 }

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