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

template<class DstArrayT, class SrcArrayT, class NgbT>
void Impala::Core::Array::Pattern::FuncNgbOp2d_Row ( DstArrayT *  dst,
SrcArrayT *  src,
NgbT &  ngb,
int  y,
Tag1Phase  dummy1,
TagCnum  dummy2 
) [inline]

Row : phase 1, cnum.

Definition at line 114 of file FuncNgbOp2d.h.

References ArrayCPB(), ArrayCW(), FuncNgbOp2d_Pix_P1Cnum(), PtrRead(), and PtrWrite().

Referenced by FuncNgbOp2dDispatch().

00116 {
00117     typedef typename DstArrayT::StorType DstStorT;
00118     typedef typename DstArrayT::ArithType DstArithT;
00119     typedef typename SrcArrayT::StorType SrcStorT;
00120     typedef typename SrcArrayT::ArithType SrcArithT;
00121 
00122     int width = ArrayCW(dst);
00123     DstStorT* dPtr = ArrayCPB(dst, 0, y);
00124     SrcStorT* sPtr = ArrayCPB(src, 0, y);
00125     for (int x=0 ; x<width ; x++)
00126     {
00127         ngb.Init(x, y, PtrRead(sPtr, SrcArithT()));
00128         FuncNgbOp2d_Pix_P1Cnum(src, x, y, ngb);
00129         PtrWrite(dPtr, ngb.Result());
00130         dPtr += DstArrayT::ElemSize();
00131         sPtr += SrcArrayT::ElemSize();
00132     }
00133 }

Here is the call graph for this function:


Generated on Fri Mar 19 11:01:27 2010 for ImpalaSrc by  doxygen 1.5.1