00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 #include "jpeg.h"
00012
00013 JPEG::JPEG(
00014 const Id& n,
00015 char* fefile,
00016 char* scfile,
00017 char* befile
00018 )
00019 :
00020 ProcessNetwork(n),
00021
00022
00023 byteStream( id("byteStream")),
00024 Y( id("Y"), 64*1024, 64*1024),
00025 U( id("U"), 64*1024, 64*1024),
00026 V( id("V"), 64*1024, 64*1024),
00027 YimgWidth( id("YimgWidth")),
00028 YimgHeight( id("YimgHeight")),
00029 UVimgWidth( id("UVimgWidth")),
00030 UVimgHeight( id("UVimgHeight")),
00031 YUVimgType( id("YUVimgType")),
00032
00033 scalingArgs( id("scalingArgs")),
00034 YimgWidthOut( id("YimgWidthOut")),
00035 YimgHeightOut( id("YimgHeightOut")),
00036 UVimgWidthOut( id("UVimgWidthOut")),
00037 UVimgHeightOut(id("UVimgHeightOut")),
00038
00039 Yscaled( id("Yscaled")),
00040 Uscaled( id("Uscaled")),
00041 Vscaled( id("Vscaled")),
00042
00043 R( id("R")),
00044 G( id("G")),
00045 B( id("B")),
00046
00047 argumentsIn( id("argumentsIn")),
00048 fileNameIn( id("fileNameIn")),
00049 nrBytesIn( id("nrBytesIn")),
00050
00051 argumentsOut( id("argumentsOut")),
00052 fileNameOut( id("fileNameOut")),
00053 seqInfoOut( id("seqInfoOut")),
00054
00055
00056 frontEnd(
00057 id("frontEnd"),
00058 fileNameIn,
00059 nrBytesIn,
00060 byteStream
00061 ),
00062 jpegDecode(
00063 id("jpegDecode"),
00064 byteStream,
00065 Y,
00066 U,
00067 V,
00068 YimgWidth,
00069 YimgHeight,
00070 UVimgWidth,
00071 UVimgHeight,
00072 YUVimgType
00073 ),
00074 scale(
00075 id("scale"),
00076 Y,
00077 U,
00078 V,
00079 YimgWidth,
00080 YimgHeight,
00081 UVimgWidth,
00082 UVimgHeight,
00083 YimgWidthOut,
00084 YimgHeightOut,
00085 UVimgWidthOut,
00086 UVimgHeightOut,
00087 Yscaled,
00088 Uscaled,
00089 Vscaled
00090 ),
00091 matrix(
00092 id("matrix"),
00093 Yscaled,
00094 Uscaled,
00095 Vscaled,
00096 R,
00097 G,
00098 B
00099 ),
00100 backEnd(
00101 id("backEnd"),
00102 VYAbitPrecision(8, false),
00103 VYAbitPrecision(8, true),
00104 fileNameOut,
00105 seqInfoOut,
00106 R,
00107 G,
00108 B,
00109 YimgWidthOut,
00110 YimgHeightOut,
00111 UVimgWidthOut,
00112 UVimgHeightOut,
00113 YUVimgType
00114 ),
00115 frontEndEnv(
00116 id("frontEndEnv"),
00117 argumentsIn,
00118 fileNameIn,
00119 nrBytesIn
00120 ),
00121 frontEndUsr(
00122 id("frontEndUsr"),
00123 argumentsIn,
00124 fefile
00125 ),
00126 backEndEnv(
00127 id("backEndEnv"),
00128 argumentsOut,
00129 fileNameOut,
00130 seqInfoOut
00131 ),
00132 backEndUsr(
00133 id("backEndUsr"),
00134 argumentsOut,
00135 befile
00136 ),
00137 scalingEnv(
00138 id("scalingEnv"),
00139 seqInfoOut,
00140 scalingArgs,
00141 YimgWidthOut,
00142 YimgHeightOut,
00143 UVimgWidthOut,
00144 UVimgHeightOut
00145 ),
00146 scalingUsr(
00147 id("scalingUsr"),
00148 scalingArgs,
00149 scfile
00150 )
00151 {
00152 }