Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Those who don't understand PNG...

Name: Cudder !MhMRSATORI!FBeUS42x4uM+kgp 2010-11-22 6:25

...are doomed to reinvent it, poorly:


unsigned long stride = width * pixel_bytes;

for (unsigned long y = 0; y < height; y++) {
  unsigned char* prev_line = buff + (y  - 1) * stride;
  unsigned char* dst_line  = buff + y * stride;

  switch (cmds[y]) {
    case 1:
      for (unsigned long x = pixel_bytes; x < stride; x++) {
        dst_line[x] = dst_line[x - pixel_bytes] - dst_line[x];
      }
      break;

    case 2:
      for (unsigned long x = 0; x < stride; x++) {
        dst_line[x] = prev_line[x] - dst_line[x];
      }
      break;

    case 4:
      for (unsigned long x = pixel_bytes; x < stride; x++) {
        dst_line[x] = (prev_line[x] + dst_line[x - pixel_bytes]) / 2 - dst_line[x];
      }
      break;
  }
}

Name: Anonymous 2010-11-22 7:21

Cudder
( ≖_≖)

Name: Anonymous 2010-11-22 9:24

National pride is not letting me use anything but LZSS in my code.

Name: Anonymous 2010-11-22 10:02

Not everyone wants to pay the exorbitant PNG licensing fees.
And trust me, you don't want to be caught red-handed by the PNG consortium linking an unlicensed copy of pnglib.

Name: Anonymous 2010-11-22 10:40

>>4
0/10 but would laugh again.

Name: VIPPER 2010-11-22 10:54

>>3
JEWS?

Name: Anonymous 2010-11-22 12:13

Seven eleven get.

Name: Anonymous 2010-11-22 13:11

seven ate 9

Name: Anonymous 2010-11-22 13:12

Name: Anonymous 2010-11-22 13:23

>>9
tl;dr

Name: Anonymous 2010-11-22 13:26

>>7

Part deux.

Name: Anonymous 2010-11-22 21:53

implying anyone on /prog/ would see the huge fucking buffer overflow

Name: Anonymous 2010-11-22 22:27

>>9
Oh, I see, you're so funny.

Name: Anonymous 2010-11-22 23:21

>>1
Even if you're not the "real" Cudder, you're just as glib as that faggot ever was. Kindly begone

Name: Anonymous 2010-11-22 23:51

>>14
glibc?

Name: Anonymous 2010-11-23 0:00

>>15
eglibc?

Name: Anonymous 2010-11-23 3:11

Reddit had thread about it. They almost all were like "Cool!"  I downovoted them for not using proper formats.

Name: Anonymous 2010-11-23 8:38

>>17
Good work, soldier. Keep doing /prog/ proud over there.

Name: Anonymous 2010-11-24 14:15

[url=http://www.meatspin.com/]solution[/url]
enjoy.

Name: Anonymous 2010-11-24 14:19

>>19
Back to fuck off ``faggot''.

Name: Anonymous 2010-11-24 14:23

wat

Name: Anonymous 2010-11-24 15:30

>>21
Don't wat me, buddy.

Name: Anonymous 2010-11-24 16:32

i wat erryone.

Name: Anonymous 2010-11-24 16:32

i wat erryone.

Name: Anonymous 2010-11-24 16:33

sorry bout that^ bad connection i guess

Name: Anonymous 2010-11-24 21:42

>>25
Such disgrace for your family and you can't do anything better than "sorry bout that"?

Name: Anonymous 2010-11-25 20:12

wat?

Name: Anonymous 2010-12-17 1:39

Are you GAY?
Are you a NIGGER?
Are you a GAY NIGGER?

If you answered "Yes" to all of the above questions, then GNAA (GAY NIGGER ASSOCIATION OF AMERICA) might be exactly what you've been looking for!

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List