Home || Architecture || Video Search || Visual Search || Scripts || Applications || Important Messages || OGL || Src

template<class ArrayT>
void Impala::Core::Array::Pattern::PxPrintDataOnCPU ( ArrayT *  array,
bool  printBorder,
int  bx,
int  by,
int  width,
int  height,
int  cpu 
)

Definition at line 103 of file PxxPrintData.h.

References PX_COUT_ON, PX_ENDL, and PxArrayPrintElemOnCPU().

Referenced by PxPrintDataOnCPU().

00104 {
00105     typedef typename ArrayT::StorType StorT;
00106 
00107     PX_COUT_ON(cpu) << "Array sizes (" << cpu << "): cw = "
00108                     << CxArrayCW(array) << ", ch = "
00109                     << CxArrayCH(array) << ", bw = "
00110                     << CxArrayBW(array) << ", bh = "
00111                     << CxArrayBH(array) << PX_ENDL;
00112     StorT* sPtr = (printBorder) ? CxArrayPB(array, bx, by) 
00113                                 : CxArrayCPB(array, bx, by);
00114     for (int y=0 ; y<height ; y++) {
00115         PX_COUT_ON(cpu) << "  Y = " << y << " :- ";
00116         for (int x=0 ; x<width ; x++) {
00117             int off = CxArrayInc(array, x, y);
00118             StorT* p = sPtr + off;
00119             PxArrayPrintElemOnCPU(array, p, cpu);
00120             PX_COUT_ON(cpu) << ", ";
00121         }
00122         PX_COUT_ON(cpu) << PX_ENDL;
00123     }
00124 }

Here is the call graph for this function:


Generated on Fri Mar 19 11:03:07 2010 for ImpalaSrc by  doxygen 1.5.1