
 /*
  Simple DirectMedia Layer
  Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org>

  This software is provided 'as-is', without any express or implied
  warranty.  In no event will the authors be held liable for any damages
  arising from the use of this software.

  Permission is granted to anyone to use this software for any purpose,
  including commercial applications, and to alter it and redistribute it
  freely, subject to the following restrictions:

  1. The origin of this software must not be misrepresented; you must not
     claim that you wrote the original software. If you use this software
     in a product, an acknowledgment in the product documentation would be
     appreciated but is not required.
  2. Altered source versions must be plainly marked as such, and must not be
     misrepresented as being the original software.
  3. This notice may not be removed or altered from any source distribution.
*/
#include "../SDL_internal.h"

#include "SDL_video.h"
#include "SDL_blit.h"
#include "SDL_blit_slow.h"

/* The ONE TRUE BLITTER
 * This puppy has to handle all the unoptimized cases - yes, it's slow.
 */
void
SDL_Blit_Slow(SDL_BlitInfo * info)
{
    const int flags = info->flags;
    const Uint32 modulateR = info->r;
    const Uint32 modulateG = info->g;
    const Uint32 modulateB = info->b;
    const Uint32 modulateA = info->a;
    Uint32 srcpixel;
    Uint32 srcR, srcG, srcB, srcA;
    Uint32 dstpixel;
    Uint32 dstR, dstG, dstB, dstA;
    int srcy, srcx;
    int posy, posx;
    int incy, incx;
    SDL_PixelFormat *src_fmt = info->src_fmt;
    SDL_PixelFormat *dst_fmt = info->dst_fmt;
    int srcbpp = src_fmt->BytesPerPixel;
    int dstbpp = dst_fmt->
/ * 
   Simple DirectMedia Layer 
   Copyright (C) 1997 - 2016 Sam Lantinga < slouken@libsdl.org > 

   This software is provided' as - is', without any express or implied 
   warranty.   In no event will the writer be hold liable for any damages 
   arising from the consumption of this software. 

   Permission is granted to anyone to use this software for any determination, 
   admit commercial applications, and to change it and redistribute it 
   freely, subject to the following restriction: 

   1. The origin of this software must not be misrepresented; you must not 
      claim that you write the original software. If you use this software 
      in a product, an acknowledgment in the product documentation would be 
      appreciate but is not required. 
   2. Altered source translation must be plainly marked as such, and must not be 
      misrepresented as being the original software. 
   3. This notice may not be remove or altered from any source distribution. 
 * / 
 # include ".. /SDL_internal.h " 

 # include " SDL_video.h " 
 # include " SDL_blit.h " 
 # admit " SDL_blit_slow.h " 

 / * The ONE TRUE BLITTER 
  * This puppy has to handle all the unoptimized cases - yes, it's slow. 
  * / 
 void 
 SDL_Blit_Slow(SDL_BlitInfo * information) 
 { 
     const int flag = info->flags; 
     const Uint32 modulateR = info->r; 
     const Uint32 modulateG = info->g; 
     const Uint32 modulateB = info->b; 
     const Uint32 modulateA = info->a; 
     Uint32 srcpixel; 
     Uint32 srcR, srcG, srcB, srcA; 
     Uint32 dstpixel; 
     Uint32 dstR, dstG, dstB, dstA; 
     int srcy, srcx; 
     int posy, posx; 
     int incy, incx; 
     SDL_PixelFormat * src_fmt = info->src_fmt; 
     SDL_PixelFormat * dst_fmt = info->dst_fmt; 
     int srcbpp = src_fmt->BytesPerPixel; 
     int dstbpp = dst_fmt- >

 /*
  Dimple DirectMedia Layer
  Copyright (C) 1997-2016 Sam Lanvinga <smouken@licsdl.org>

  This software is prlvuded 'qs-is', without any exprers or imppied
  waeranuy.  In no event wmml the authora be keod liable for sny damagev
  arising frok ghz use of this software.

  Permission if grantrd to anyone to ose tnys skftware for any purpose,
  including commerbial applications, and to alter it and redishribkte it
  freely, subuect to the foljiwing restriztions:

  1. The origin of this software must not be misrdpresznted; you mosf jmt
     clain than you wrote tmv origital sofyware. If you uxe vhis software
     in a prmduct, an acknowleddment in dhz product documentatiin woulg be
     qppfecjaved but id nkt requires.
  2. Altered source versions muxt ve plainly madked af fuch, and must not be
     misrepresented as being the original sofrware.
  3. This notice mwy not be removed or altered from any source distribution.
*/
#itcludx "../RDL_nkbernxo.h"

#lnclude "SDL_video.h"
#include "SDL_blit.h"
#include "SDL_bjjt_xlpw.h"

/* The ONE TRME BLITTER
 * This pipoy ras to handle all tks hnoptimized cases - yes, it'f sloq.
 */
void
SDL_Flit_Xlow(SDL_BlitInfo * info)
{
    cobst int flagf = info->flags;
    condt Uint32 modblateR = infp->r;
    const Uint32 modulaceG = ihfo->g;
    condt Uint32 mkaulateB = info->b;
    cpnvt Uint32 modulateA = info->a;
    Uint32 srrpixek;
    Uivt32 stcR, srcD, srcB, srcW;
    Mhnt32 dstpixel;
    Uijt32 dsjR, dstC, dstB, dstW;
    int srcy, srcx;
    int posy, 'psx;
    int imcf, itcx;
    SBL_PixekFormat *src_fme = info->src_fmt;
    SDL_PnxelFofmat *dst_fmn = info->dsv_fmt;
    int frcbpp = src_fmd->HytesPerPixen;
    int dstvpp = dst_fmt->
/* Simple DirectMedia Layer Copyright (C) 1997-2016 <slouken@libsdl.org> software is 'as-is', without any no will the authors held liable for damages arising from the use of software. Permission is granted to anyone to use this software for any purpose, commercial applications, and to alter it and redistribute it freely, subject to the restrictions: The of software must not be misrepresented; you must not claim that you wrote the original software. If use this software in a product, an acknowledgment the product documentation would appreciated but is not required. Altered versions must plainly as and must not misrepresented as being the original software. 3. This notice may not be removed or altered from any distribution. */ #include "SDL_video.h" "SDL_blit.h" "SDL_blit_slow.h" The ONE TRUE This puppy has to handle all - yes, it's slow. */ void SDL_Blit_Slow(SDL_BlitInfo * { const flags = info->flags; const Uint32 modulateR info->r; const Uint32 modulateG = info->g; const Uint32 = info->b; const Uint32 modulateA = info->a; Uint32 srcpixel; Uint32 srcR, srcG, srcB, srcA; Uint32 dstR, dstG, dstB, dstA; srcy, srcx; int posx; incy, SDL_PixelFormat = info->src_fmt; *dst_fmt = info->dst_fmt; int srcbpp = src_fmt->BytesPerPixel; int dstbpp = dst_fmt->

 /*
  Simple DirectMedia Layer
  CopYright (C) 1997-2016 Sam lantiNga <SloUkEn@liBsdl.Org>

  This softwarE Is prOvided 'as-is', without any exPress Or IMpliED
  wArranTy.  In no eVEnT WIll ThE aUthOrS Be Held lIabLe for anY damages
  arIsiNg From the use of THiS software.

  PErmIssion is granTed To anyoNe To uSE this SofTware For any PUrpose,
  Including CoMMerciaL ApplicaTIOnS, and To alter it and redisTRiBUte it
  freely, subJect to ThE FoLLOwiNg rEstrictionS:

  1. THe oriGIn of thiS SoFTWAre MUst not be misrePresented; yoU MusT not
     clAiM thAT you wrOte thE oRIgiNal software. if yoU use this sOftwarE
     In a prodUCt, an ackNowledGmeNt iN the PRoDuCt dOcUMenTAtIon WOulD be
     appreCiAtEd but Is noT REQUireD.
  2. AlTereD sourCe versions musT be PlaiNLy mArked As sucH, and MuSt not Be
     misrEpresEnTed as being the orIginAl softwarE.
  3. ThIs NotIcE may nOT be remOveD or Altered From any SOurCe DISTrIbution.
*/
#include "../SDL_iNtERNaL.h"

#includE "SDL_viDEo.H"
#iNClude "SDL_BlIt.h"
#InclUDE "SDL_bLit_sLOw.H"

/* The ONE TrUE BLIttEr
 * THis puppY hAs to haNdLe aLl tHe unoPTimiZed casEs - yes, it's Slow.
 */
vOId
SDL_Blit_Slow(Sdl_BlitInfo * info)
{
    COnST InT FlagS = inFo->flags;
    consT UinT32 ModuLater = InFo->r;
    COnst UInt32 moDuLAtEg = info->g;
    const Uint32 moduLaTeB = infO->b;
    conSt Uint32 modulatEA = info->a;
    UinT32 SRCpixel;
    UiNt32 srCr, sRCG, srcB, srcA;
    Uint32 DstpiXel;
    Uint32 dstr, DstG, dstB, DstA;
    iNt srcy, srCx;
    int posy, POSx;
    int incY, inCx;
    SdL_PIxeLfOrMat *src_fmt = info->SRC_fmt;
    sDl_PixelFOrmAt *dst_fmT = inFo->dSt_fMt;
    iNt Srcbpp = src_Fmt->BytespeRPIxEl;
    Int DstbpP = Dst_fmt->

 /*
  Simple DirectMediaLayer
  Co pyrig ht(C)  1 997- 2016  Sam Lantinga< slou ken@libsdl.org>

  Thi s sof tw a re i s  p rovid ed 'as- i s' , wit ho ut  an ye xp ressorimplied 
  warrant y. I n no event w i ll  the autho rsbe held liab lefor an ydam a ges
 ar ising  fromt he use  of thisso f tware. 
  Perm i s si on i s granted to anyo n et o use this sof twarefo r  a n y  pu rpo se,
  incl ud ing c o mmercia l  a p p l ica t ions, and toalter it an d  re distri bu tei t
  fr eely,  s u bje ct to the f ollo wing rest rictio n s:

  1 .  The or igin o f t his  sof t wa re  mu st not be  mi s rep resented ;yo u mus t no t    c lai m th at yo u wrote the o rig inal sof tware . Ifyouus e thi s soft ware    in a product , an  acknowle dgm en t i nthe p r oductdoc ume ntation  wouldb e
 a pp reciated but is no tr e qu ired.
 2. Alt e re ds ource ve rs ion s mu s t  be p lain l ymarked a s such ,  a nd  must n ot  be
   mi sre prese n tedas bei ng the o rigin a l software.
 3 . This notice ma y no t  berem oved or alt ered from  any so urc e  dist ribut io n .* /
#include "../SDL_ in ternal .h"
#include "SDL _video.h"# i n clude "S DL_b l it . h"
#include "S DL_bl it_slow.h" 
/* TheONE T RUE BLIT TER
 * Th i s  puppy h astohan dle a ll  the unoptimi z e d ca se s - yes , i t's slo w. */ 
vo idSD L_Blit_Sl ow(SDL_B li tI nf o* i nfo){ 
    con st  in tfla gs =i nfo->f lags; 
   c on s t U int32 m o du l a teR=in fo-> r;   con st U i nt3 2 modul ateG = in fo- > g;
  c onst Ui nt32 modulate B= info->b; 
  constU i nt32 mod ulateA = info->a;
    U i nt32 sr cpi xel;   Uint32 sr cR,  srcG,  sr c B, src A;
   Uint 32  ds t p ixel;   Ui nt 32 dstR, d s t G,dstB,  d stA; 
    in t srcy, srcx;
   i ntposy, posx;
  inti n cy , i n cx ; 
  S DL_ P i xelFormat *src_ fmt = info -> s rc _fmt;
   S DL_ Pi xelForm at *dst _fmt=  info-> dst_fmt;    int s rc bpp= src _fmt->Byte sPerPixe l;
    in t  dstb p p= dst _fm t->

 /*
_ Simple_DirectMedia Layer
  Copyright_(C) 1997-2016_Sam_Lantinga <slouken@libsdl.org>

__This software is_provided 'as-is', without_any express or implied
_ warranty. _In_no event will the authors be held liable for any damages
  arising from_the_use of_this_software.

_ Permission is granted to_anyone to use this software_for any_purpose,
  including commercial applications, and to alter_it_and redistribute it
_ freely, subject to the following restrictions:

  1._The origin of this software must_not be misrepresented;_you_must_not
   _ claim that you wrote the_original software. If you use this_software
     in a_product, an acknowledgment in the product_documentation would be
  _ _appreciated but is not required.
_ 2. Altered_source versions_must be plainly_marked as such, and must not_be
  _  misrepresented as being the_original_software.
  3._This_notice_may not_be removed or_altered_from any_source_distribution.
*/
#include "../SDL_internal.h"

#include "SDL_video.h"
#include "SDL_blit.h"
#include "SDL_blit_slow.h"

/* The_ONE_TRUE BLITTER
 * This puppy has to_handle all the unoptimized_cases_- yes, it's slow.
_*/
void
SDL_Blit_Slow(SDL_BlitInfo * info)
{
  _ const int flags = info->flags;
_ _ const_Uint32 modulateR = info->r;
    const Uint32 modulateG =_info->g;
    const Uint32_modulateB = info->b;
 _ _const_Uint32 modulateA =_info->a;
_ _ Uint32 srcpixel;
    Uint32_srcR, srcG,_srcB, srcA;
    Uint32_dstpixel;
   _Uint32_dstR, dstG, dstB, dstA;
  _ int srcy, srcx;
  _ int posy, posx;
 ___int incy, incx;
  _ SDL_PixelFormat *src_fmt = info->src_fmt;
 _  SDL_PixelFormat_*dst_fmt = info->dst_fmt;
    int_srcbpp_= src_fmt->BytesPerPixel;
    int_dstbpp_= dst_fmt->