2 #include "sdlepocapi.h"
5 LOCAL_C TInt BytesPerPixel(TDisplayMode aMode)
7 return ((TDisplayModeUtils::NumDisplayModeBitsPerPixel(aMode) - 1) >> 3) + 1;
11 ////////////////////////////////////////////////////////////////////////////////////////////////
13 NONSHARABLE_CLASS(CDsaA) : public CDsa
16 CDsaA(RWsSession& aSession);
19 TUint8* LockSurface();
20 void UnlockHWSurfaceRequestComplete();
21 void UnlockHwSurface();
22 void CreateSurfaceL();
23 void Wipe(TInt aLength);
26 TInt ExternalUpdate() {return 0;}
32 CDsaA::CDsaA(RWsSession& aSession) : CDsa(aSession)
44 __ASSERT_DEBUG(iBmp == NULL, PANIC(KErrNotReady));
47 TUint8* CDsaA::LockSurface()
50 return reinterpret_cast<TUint8*>(iBmp->DataAddress());
53 void CDsaA::UnlockHWSurfaceRequestComplete()
55 PANIC(KErrNotSupported);
58 void CDsaA::UnlockHwSurface()
62 Dsa().Gc()->BitBlt(HwRect().iTl, iBmp);
63 Dsa().ScreenDevice()->Update();
66 void CDsaA::CreateSurfaceL()
70 iBmp = new (ELeave) CFbsBitmap();
71 User::LeaveIfError(iBmp->Create(HwRect().Size(), DisplayMode()));
74 void CDsaA::Wipe(TInt aLength) //dont call in drawing
77 Mem::FillZ(iBmp->DataAddress(), aLength);
81 void CDsaA::RecreateL()
85 //////////////////////////////////////////////////////////////////////////////////////////////////////////////////
87 NONSHARABLE_CLASS(MDsbObs)
90 virtual void SurfaceReady() = 0;
91 virtual CDirectScreenBitmap& Dsb() = 0;
94 NONSHARABLE_CLASS(CDsbSurface) : public CActive
97 CDsbSurface(MDsbObs& aDsb);
109 CDsbSurface::CDsbSurface(MDsbObs& aDsb) : CActive(CActive::EPriorityHigh) , iDsb(aDsb)
111 CActiveScheduler::Add(this);
114 CDsbSurface::~CDsbSurface()
119 void CDsbSurface::Complete()
121 if(iAddress != NULL && !IsActive())
125 iDsb.Dsb().EndUpdate(iStatus);
129 TUint8* CDsbSurface::Address()
131 if(iAddress == NULL && !IsActive())
133 TAcceleratedBitmapInfo info;
134 if(KErrNone == iDsb.Dsb().BeginUpdate(info))
135 iAddress = info.iAddress;
140 void CDsbSurface::RunL()
145 void CDsbSurface::DoCancel()
150 NONSHARABLE_CLASS(CDsaB) : public CDsa, public MDsbObs
153 CDsaB(RWsSession& aSession);
156 TUint8* LockSurface();
157 void UnlockHWSurfaceRequestComplete();
158 void UnlockHwSurface();
159 void CreateSurfaceL();
160 void Wipe(TInt aLength);
162 void ConstructL(RWindow& aWindow, CWsScreenDevice& aDevice);
164 CDirectScreenBitmap& Dsb();
166 TInt ExternalUpdate() {return 0;}
168 CDsbSurface* iSurface1;
169 CDsbSurface* iSurface2;
170 CDirectScreenBitmap* iDsb;
173 CDsaB::CDsaB(RWsSession& aSession) : CDsa(aSession)
181 void CDsaB::UnlockHWSurfaceRequestComplete()
183 iSurface1->Complete();
184 iSurface2->Complete();
187 void CDsaB::CreateSurfaceL()
191 void CDsaB::Wipe(TInt aLength) //dont call in drawing
193 TUint8* addr = LockSurface();
196 Mem::FillZ(addr, aLength);
201 void CDsaB::UnlockHwSurface()
203 EpocSdlEnv::Request(CDsa::ERequestUpdate);
206 TUint8* CDsaB::LockSurface()
208 TUint8* addr = iSurface1->Address();
210 addr = iSurface2->Address();
211 SetUpdating(addr == NULL);
215 void CDsaB::SurfaceReady()
220 CDirectScreenBitmap& CDsaB::Dsb()
225 void CDsaB::ConstructL(RWindow& aWindow, CWsScreenDevice& aDevice)
228 iDsb = CDirectScreenBitmap::NewL();
229 CDsa::ConstructL(aWindow, aDevice);
230 iSurface1 = new (ELeave) CDsbSurface(*this);
231 iSurface2 = new (ELeave) CDsbSurface(*this);
241 void CDsaB::RecreateL()
244 iDsb->Create(HwRect(), CDirectScreenBitmap::EDoubleBuffer);
247 /////////////////////////////////////////////////////////////////////////////////////////////////////
250 TSize CDsa::WindowSize() const
252 TSize size = HwRect().Size();
253 if(iStateFlags & EOrientation90)
255 const TInt tmp = size.iWidth;
256 size.iWidth = size.iHeight;
262 void CDsa::SetSuspend()
264 iStateFlags |= ESdlThreadSuspend;
267 void CDsa::ReleaseStop()
269 iStateFlags &= ~ESdlThreadExplicitStop;
273 TBool CDsa::Stopped() const
275 return (iStateFlags & ESdlThreadExplicitStop);
278 void CDsa::SetOrientation(CSDL::TOrientationMode aOrientation)
283 case CSDL::EOrientation90:
284 flags = EOrientation90;
286 case CSDL::EOrientation180:
287 flags = EOrientation180;
289 case CSDL::EOrientation270:
290 flags = EOrientation90 | EOrientation180;
292 case CSDL::EOrientation0:
296 if(flags != (iStateFlags & EOrientationFlags))
298 iStateFlags |= EOrientationChanged;
299 iNewFlags = flags; //cannot be set during drawing...
313 void CDsa::ConstructL(RWindow& aWindow, CWsScreenDevice& aDevice)
323 iDsa = CDirectScreenAccess::NewL(
330 iLut256 = (TUint32*) User::AllocL(256 * sizeof(TUint32));
331 iTargetMode = aWindow.DisplayMode();
332 iTargetBpp = BytesPerPixel(DisplayMode());
333 iTargetRect = TRect(aWindow.Position(), aWindow.Size());
337 void CDsa::LockPalette(TBool aLock)
340 iStateFlags |= EPaletteLocked;
342 iStateFlags &= ~EPaletteLocked;
344 TInt CDsa::SetPalette(TInt aFirst, TInt aCount, TUint32* aPalette)
348 const TInt count = aCount - aFirst;
351 if(iStateFlags & EPaletteLocked)
353 for(TInt i = aFirst; i < count; i++) //not so busy here:-)
355 iLut256[i] = aPalette[i];
363 void CDsa::RestartL()
365 //const TBool active = iDsa->IsActive();
370 RRegion* r = iDsa->DrawingRegion();
371 iDsa->Gc()->SetClippingRegion(r);
372 TRect rect = r->BoundingRect();
379 iScreenRect = rect; //to ensure properly set, albeit may not(?) match to value SDL has - therefore may has to clip
383 iStateFlags |= ERunning;
384 // iScanLineWidth = iTargetBpp * HwRect().Width();
386 if(iStateFlags & ESdlThreadSuspend)
388 EpocSdlEnv::Resume();
389 iStateFlags &= ~ ESdlThreadSuspend;
393 CDsa::CDsa(RWsSession& aSession) :
397 // CActiveScheduler::Add(this);
398 iCFTable[0] = CopyMem;
399 iCFTable[1] = CopyMemFlipReversed;
400 iCFTable[2] = CopyMemReversed;
401 iCFTable[3] = CopyMemFlip;
403 iCFTable[4] = Copy256;
404 iCFTable[5] = Copy256FlipReversed;
405 iCFTable[6] = Copy256Reversed;
406 iCFTable[7] = Copy256Flip;
409 iCFTable[8] = CopySlow;
410 iCFTable[9] = CopySlowFlipReversed;
411 iCFTable[10] = CopySlowReversed;
412 iCFTable[11] = CopySlowFlip;
415 RWsSession& CDsa::Session()
422 TUint8* CDsa::LockHwSurface()
424 if((iStateFlags & EUpdating) == 0) //else frame is skipped
426 return LockSurface();
434 iStateFlags &= ~EUpdating;
438 void CDsa::DoCancel()
440 iStateFlags &= ~EUpdating;
441 //nothing can do, just wait?
445 TInt CDsa::AllocSurface(TBool aHwSurface, const TSize& aSize, TDisplayMode aMode)
447 if(aHwSurface && aMode != DisplayMode())
452 iSourceBpp = BytesPerPixel(aMode);
454 const TSize size = WindowSize();
455 if(aSize.iWidth > size.iWidth)
457 if(aSize.iHeight > size.iHeight)
460 TRAPD(err, CreateSurfaceL());
467 EpocSdlEnv::ObserverEvent(MSDLObserver::EEventWindowReserved);
474 void SaveBmp(const TDesC& aName, const TAny* aData, TInt aLength, const TSize& aSz, TDisplayMode aMode)
476 CFbsBitmap* s = new CFbsBitmap();
477 s->Create(aSz, aMode);
479 TUint32* addr = s->DataAddress();
480 Mem::Copy(addr, aData, aLength);
487 void SaveBmp(const TDesC& aName, const TUint32* aData, const TSize& aSz)
489 CFbsBitmap* s = new CFbsBitmap();
490 s->Create(aSz, EColor64K);
492 bmp.Begin(TPoint(0, 0));
493 for(TInt j = 0; j < aSz.iHeight; j++)
495 bmp.SetPos(TPoint(0, j));
496 for(TInt i = 0; i < aSz.iWidth; i++)
498 bmp.SetPixel(*aData);
509 TBuf<16> FooName(TInt aFoo)
512 b.Format(_L("C:\\pic%d.mbm"), aFoo);
516 void CDsa::ClipCopy(TUint8* aTarget, const TUint8* aSource, const TRect& aRect, const TRect& aTargetPos) const
518 TUint8* target = aTarget;
519 const TUint8* source = aSource;
520 const TInt lineWidth = aRect.Width();
521 source += iSourceBpp * (aRect.iTl.iY * lineWidth);
522 TInt sourceStartOffset = iSourceBpp * aRect.iTl.iX;
523 source += sourceStartOffset;
524 target += iTargetBpp * ((aTargetPos.iTl.iY + aRect.iTl.iY ) * lineWidth);
525 TInt targetStartOffset = iTargetBpp * (aRect.iTl.iX + aTargetPos.iTl.iX);
526 target += targetStartOffset;
527 TUint32* targetPtr = reinterpret_cast<TUint32*>(target);
528 const TInt targetWidth = HwRect().Size().iWidth;
529 const TInt height = aRect.Height();
531 TInt lineMove = iStateFlags & EOrientation90 ? 1 : lineWidth;
533 if(iStateFlags & EOrientation180)
536 targetPtr += targetWidth * (height - 1);
538 for(TInt i = 0; i < height; i++) //source is always smaller
540 iCopyFunction(*this, targetPtr, source, lineWidth, height);
542 targetPtr -= targetWidth;
549 for(TInt i = 0; i < height; i++) //source is always smaller
551 iCopyFunction(*this, targetPtr, source, lineWidth, height);
553 targetPtr += targetWidth;
562 void CDsa::Wipe() //dont call in drawing
565 Wipe(iTargetBpp * iScreenRect.Width() * iScreenRect.Height());
568 void CDsa::SetCopyFunction()
570 //calculate offset to correct function in iCFTable according to given parameters
572 const TInt KCopyFunctions = 4;
573 const TInt KOffsetToNative = 0;
574 const TInt KOffsetTo256 = KOffsetToNative + KCopyFunctions;
575 const TInt KOffsetToOtherModes = KOffsetTo256 + KCopyFunctions;
576 const TInt KOffsetTo90Functions = 1;
577 const TInt KOffsetTo180Functions = 2;
579 if(iSourceMode == DisplayMode())
580 function = KOffsetToNative; //0
581 else if(iSourceMode == EColor256)
582 function = KOffsetTo256; //4
584 function = KOffsetToOtherModes; //8
586 if(iStateFlags & EOrientation90)
587 function += KOffsetTo90Functions; // + 1
588 if(iStateFlags & EOrientation180)
589 function += KOffsetTo180Functions; //+ 2
591 iCopyFunction = iCFTable[function];
596 inline void Rotate(TRect& aRect)
598 const TInt dx = aRect.iBr.iX - aRect.iTl.iX;
599 const TInt dy = aRect.iBr.iY - aRect.iTl.iY;
601 aRect.iBr.iX = aRect.iTl.iX + dy;
602 aRect.iBr.iY = aRect.iTl.iY + dx;
604 const TInt tmp = aRect.iTl.iX;
605 aRect.iTl.iX = aRect.iTl.iY;
612 TBool CDsa::AddUpdateRect(const TUint8* aBits, const TRect& aUpdateRect, const TRect& aRect)
615 if(iStateFlags & EOrientationChanged)
617 iStateFlags &= ~EOrientationFlags;
618 iStateFlags |= iNewFlags;
620 iStateFlags &= ~EOrientationChanged;
621 EpocSdlEnv::WaitDeviceChange();
622 return EFalse; //skip this frame as data is may be changed
625 if(iTargetAddr == NULL)
627 iTargetAddr = LockHwSurface();
629 TUint8* target = iTargetAddr;
634 TRect targetRect = HwRect();
635 TRect sourceRect = aRect;
636 TRect updateRect = aUpdateRect;
638 if(iStateFlags & EOrientation90)
644 if(iSourceMode != DisplayMode() || targetRect != sourceRect || targetRect != updateRect || ((iStateFlags & EOrientationFlags) != 0))
646 sourceRect.Intersection(targetRect); //so source always smaller or equal than target
647 updateRect.Intersection(targetRect);
648 ClipCopy(target, aBits, updateRect, sourceRect);
652 const TInt byteCount = aRect.Width() * aRect.Height() * iSourceBpp; //this could be stored
653 Mem::Copy(target, aBits, byteCount);
659 CDsa* CDsa::CreateL(RWsSession& aSession)
661 if(EpocSdlEnv::Flags(CSDL::EDrawModeDSB))
663 TInt flags = CDirectScreenBitmap::ENone;
664 if(EpocSdlEnv::Flags(CSDL::EDrawModeDSBDoubleBuffer))
665 flags |= CDirectScreenBitmap::EDoubleBuffer;
666 if(EpocSdlEnv::Flags(CSDL::EDrawModeDSBIncrentalUpdate))
667 flags |= CDirectScreenBitmap::EIncrementalUpdate;
668 return new (ELeave) CDsaB(aSession);
671 return new (ELeave) CDsaA(aSession);
674 void CDsa::CreateZoomerL(const TSize& aSize)
677 iStateFlags |= EResizeRequest;
682 TPoint CDsa::WindowCoordinates(const TPoint& aPoint) const
684 TPoint pos = aPoint - iScreenRect.iTl;
685 const TSize asz = iScreenRect.Size();
686 if(iStateFlags & EOrientation180)
688 pos.iX = asz.iWidth - pos.iX;
689 pos.iY = asz.iHeight - pos.iY;
691 if(iStateFlags & EOrientation90)
698 pos.iX /= asz.iWidth;
699 pos.iY /= asz.iHeight;
700 pos.iX *= iSwSize.iWidth;
701 pos.iY *= iSwSize.iHeight;
707 void CDsa::SetTargetRect()
709 iTargetRect = iScreenRect;
710 if(iStateFlags & EResizeRequest && EpocSdlEnv::Flags(CSDL::EAllowImageResizeKeepRatio))
712 const TSize asz = iScreenRect.Size();
713 const TSize sz = iSwSize;
717 const TInt dh = (sz.iHeight << 16) / sz.iWidth;
719 if((asz.iWidth * dh ) >> 16 <= asz.iHeight)
721 rect.SetRect(TPoint(0, 0), TSize(asz.iWidth, (asz.iWidth * dh) >> 16));
725 const TInt dw = (sz.iWidth << 16) / sz.iHeight;
726 rect.SetRect(TPoint(0, 0), TSize((asz.iHeight * dw) >> 16, asz.iHeight));
728 rect.Move((asz.iWidth - rect.Size().iWidth) >> 1, (asz.iHeight - rect.Size().iHeight) >> 1);
731 iTargetRect.Move(iScreenRect.iTl);
734 if(!(iStateFlags & EResizeRequest))
735 iSwSize = iScreenRect.Size();
736 // iScanLineWidth = /*iTargetBpp **/ SwSize().iWidth;
739 void CDsa::RecreateL()
747 void CDsa::UpdateSwSurface()
750 UnlockHwSurface(); //could be faster if does not use AO, but only check status before redraw, then no context switch needed
753 void CDsa::SetBlitter(MBlitter* aBlitter)
758 void CDsa::DrawOverlays()
760 const TInt last = iOverlays.Count() - 1;
761 for(TInt i = last; i >= 0 ; i--)
762 iOverlays[i].iOverlay->Draw(*iDsa->Gc(), HwRect(), SwSize());
765 TInt CDsa::AppendOverlay(MOverlay& aOverlay, TInt aPriority)
768 for(i = 0; i < iOverlays.Count() && iOverlays[i].iPriority < aPriority; i++)
770 const TOverlay overlay = {&aOverlay, aPriority};
771 return iOverlays.Insert(overlay, i);
774 TInt CDsa::RemoveOverlay(MOverlay& aOverlay)
776 for(TInt i = 0; i < iOverlays.Count(); i++)
778 if(iOverlays[i].iOverlay == &aOverlay)
787 TInt CDsa::RedrawRequest()
789 if(!(iStateFlags & (EUpdating) && (iStateFlags & ERunning)))
791 return ExternalUpdate();
800 Restart(RDirectScreenAccess::ETerminateRegion);
806 iStateFlags |= ESdlThreadExplicitStop;
812 iStateFlags &= ~ERunning;
813 // Cancel(); //can be called only from main!
817 void CDsa::AbortNow(RDirectScreenAccess::TTerminationReasons /*aReason*/)
819 // iStateFlags |= EChangeNotify;
823 void CDsa::Restart(RDirectScreenAccess::TTerminationReasons aReason)
825 if(aReason == RDirectScreenAccess::ETerminateRegion) //auto restart
827 TRAPD(err, RestartL());
832 TBool CDsa::ChangeTrigger()
834 const TBool change = iStateFlags & EChangeNotify;
835 iStateFlags &= ~EChangeNotify;
839 /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
841 void CDsa::Copy256(const CDsa& aDsa, TUint32* aTarget, const TUint8* aSource, TInt aBytes, TInt)
843 TUint32* target = aTarget;
844 const TUint32* endt = target + aBytes;
845 const TUint8* source = aSource;
848 *target++ = aDsa.iLut256[*source++];
852 void CDsa::Copy256Reversed(const CDsa& aDsa, TUint32* aTarget, const TUint8* aSource, TInt aBytes, TInt)
854 const TUint32* target = aTarget;
855 TUint32* endt = aTarget + aBytes;
856 const TUint8* source = aSource;
859 *(--endt) = aDsa.iLut256[*source++];
863 void CDsa::Copy256Flip(const CDsa& aDsa, TUint32* aTarget, const TUint8* aSource, TInt aBytes, TInt aLineLen)
865 TUint32* target = aTarget;
866 const TUint32* endt = target + aBytes;
867 const TUint8* column = aSource;
871 *target++ = aDsa.iLut256[*column];
876 void CDsa::Copy256FlipReversed(const CDsa& aDsa, TUint32* aTarget, const TUint8* aSource, TInt aBytes, TInt aLineLen)
878 const TUint32* target = aTarget;
879 TUint32* endt = aTarget + aBytes;
880 const TUint8* column = aSource;
884 *(--endt) = aDsa.iLut256[*column];
889 void CDsa::CopyMem(const CDsa& /*aDsa*/, TUint32* aTarget, const TUint8* aSource, TInt aBytes, TInt)
891 Mem::Copy(aTarget, aSource, aBytes);
894 void CDsa::CopyMemFlip(const CDsa& /*aDsa*/, TUint32* aTarget, const TUint8* aSource, TInt aBytes, TInt aLineLen)
896 TUint32* target = aTarget;
897 const TUint32* endt = target + aBytes;
898 const TUint32* column = reinterpret_cast<const TUint32*>(aSource);
907 void CDsa::CopyMemReversed(const CDsa& /*aDsa*/, TUint32* aTarget, const TUint8* aSource, TInt aBytes, TInt)
909 const TUint32* target = aTarget;
910 TUint32* endt = aTarget + aBytes;
911 const TUint32* source = reinterpret_cast<const TUint32*>(aSource);
914 *(--endt) = *source++;
919 void CDsa::CopyMemFlipReversed(const CDsa& /*aDsa*/, TUint32* aTarget, const TUint8* aSource, TInt aBytes, TInt aLineLen)
921 const TUint32* target = aTarget;
922 TUint32* endt = aTarget + aBytes;
923 const TUint32* column = reinterpret_cast<const TUint32*>(aSource);
933 typedef TRgb (*TRgbFunc) (TInt aValue);
935 LOCAL_C TRgb rgb16MA(TInt aValue)
937 return TRgb::Color16MA(aValue);
940 NONSHARABLE_CLASS(MRgbCopy)
943 virtual void Copy(TUint32* aTarget, const TUint8* aSource, TInt aBytes, TBool aReversed) = 0;
944 virtual void FlipCopy(TUint32* aTarget, const TUint8* aSource, TInt aBytes, TInt aLineLen, TBool aReversed) = 0;
947 NONSHARABLE_CLASS(TRgbCopy) : public MRgbCopy
950 TRgbCopy(TDisplayMode aMode);
951 void* operator new(TUint aBytes, TAny* aMem);
952 void Copy(TUint32* aTarget, const TUint8* aSource, TInt aBytes, TBool aReversed);
953 void FlipCopy(TUint32* aTarget, const TUint8* aSource, TInt aBytes, TInt aLineLen, TBool aReversed);
959 void* TRgbCopy<T>::operator new(TUint /*aBytes*/, TAny* aMem)
965 TRgbCopy<T>::TRgbCopy(TDisplayMode aMode)
969 case EGray256 : iFunc = TRgb::Gray256; break;
970 case EColor256 : iFunc = TRgb::Color256; break;
971 case EColor4K : iFunc = TRgb::Color4K; break;
972 case EColor64K : iFunc = TRgb::Color64K; break;
973 case EColor16M : iFunc = TRgb::Color16M; break;
974 case EColor16MU : iFunc = TRgb::Color16MU; break;
975 case EColor16MA : iFunc = rgb16MA; break;
977 PANIC(KErrNotSupported);
982 void TRgbCopy<T>::Copy(TUint32* aTarget, const TUint8* aSource, TInt aBytes, TBool aReversed)
984 const T* source = reinterpret_cast<const T*>(aSource);
985 TUint32* target = aTarget;
986 TUint32* endt = target + aBytes;
992 TUint32 value = *source++;
993 *(--endt) = iFunc(value).Value();
1000 TUint32 value = *source++;
1001 *target++ = iFunc(value).Value();
1007 void TRgbCopy<T>::FlipCopy(TUint32* aTarget, const TUint8* aSource, TInt aBytes, TInt aLineLen, TBool aReversed)
1009 const T* column = reinterpret_cast<const T*>(aSource);
1010 TUint32* target = aTarget;
1011 TUint32* endt = target + aBytes;
1015 while(target < endt)
1017 *(--endt) = iFunc(*column).Value();
1023 while(target < endt)
1025 *target++ = iFunc(*column).Value();
1032 typedef TUint64 TStackMem;
1034 LOCAL_C MRgbCopy* GetCopy(TAny* mem, TDisplayMode aMode)
1036 if(aMode == EColor256 || aMode == EGray256)
1038 return new (mem) TRgbCopy<TUint8>(aMode);
1040 if(aMode == EColor4K || aMode == EColor64K)
1042 return new (mem) TRgbCopy<TUint16>(aMode);
1044 if(aMode == EColor16M || aMode == EColor16MU || aMode == EColor16MA)
1046 return new (mem) TRgbCopy<TUint32>(aMode);
1048 PANIC(KErrNotSupported);
1053 void CDsa::CopySlowFlipReversed(const CDsa& aDsa, TUint32* aTarget, const TUint8* aSource, TInt aBytes, TInt aLineLen)
1056 GetCopy(&mem, aDsa.iSourceMode)->FlipCopy(aTarget, aSource, aBytes, aLineLen, ETrue);
1059 void CDsa::CopySlowFlip(const CDsa& aDsa, TUint32* aTarget, const TUint8* aSource, TInt aBytes, TInt aLineLen)
1062 GetCopy(&mem, aDsa.iSourceMode)->FlipCopy(aTarget, aSource, aBytes, aLineLen, EFalse);
1065 void CDsa::CopySlow(const CDsa& aDsa, TUint32* aTarget, const TUint8* aSource, TInt aBytes, TInt)
1068 GetCopy(&mem, aDsa.iSourceMode)->Copy(aTarget, aSource, aBytes, EFalse);
1071 void CDsa::CopySlowReversed(const CDsa& aDsa, TUint32* aTarget, const TUint8* aSource, TInt aBytes, TInt)
1074 GetCopy(&mem, aDsa.iSourceMode)->Copy(aTarget, aSource, aBytes, ETrue);