Search:

Type: Posts; User: awsdert

Page 1 of 20 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    12
    Views
    290

    If anyone WAS trying to help (which I currently...

    If anyone WAS trying to help (which I currently doubt) I found the information I needed:

    RFC 1951 DEFLATE Compressed Data Format Specification ver 1.3



    That was way to easy to overlook, they...
  2. Replies
    12
    Views
    290

    The comment system of the mentioned documentation...

    The comment system of the mentioned documentation in a previous post is lacking when it comes to preformatted text o posting it here than linking to it in a comment on the document.

    If anyone...
  3. Replies
    12
    Views
    290

    I wouldn't call it a source of evil but in this...

    I wouldn't call it a source of evil but in this case I would call it more confusing than need be, possibly slower too due to multiple if statements, as a side note I this is what I chose for bit...
  4. Replies
    12
    Views
    290

    Here's a tip: byte = pos / CHAR_BIT; bit =...

    Here's a tip:


    byte = pos / CHAR_BIT;
    bit = pos % CHAR_BIT;
  5. Replies
    12
    Views
    290

    Yes I will be doing that, finding this resource...

    Yes I will be doing that, finding this resource extremely helpful in that aspect, also lead me to find a bug in gzip where it sets the NAME flag incorrectly when giving shell input instead of a file...
  6. Replies
    12
    Views
    290

    For my scenario, they're not needless, I have...

    For my scenario, they're not needless, I have used those values for various things, particularly quick checks on which way I should be reading the bits I'm on.
  7. Replies
    12
    Views
    290

    Turned out I had somehow flipped them in GetBits...

    Turned out I had somehow flipped them in GetBits so SeeBits only saw the flipped version, I'll have to fix that later but for now I'll focus on the deflate algrotihm
  8. Replies
    12
    Views
    290

    Increment gone wrong

    Chips are about to burn so I'll edit this after taking them out of the oven, short of it is that on the first incrment code should be 1, not 8


    for ( code = 0, cur_leng = 1; cur_leng <=...
  9. Replies
    18
    Views
    530

    Well that was a bust, hit a segfault, I only...

    Well that was a bust, hit a segfault, I only managed to track down the issue to IndexHuffmanTree(), here's how it's used:


    size_t IndexHuffmanTree( BUFF *Tree, size_t pos, size_t num )
    {...
  10. Replies
    18
    Views
    530

    Finally got a non-hacked single colour image: ...

    Finally got a non-hacked single colour image:


    uint glen_extra[32] =
    {
    0, 0, 0, 0, 0, 0, 0, 0, 1, 1,
    1, 1, 2, 2, 2, 2, 3, 3, 3, 3,
    4, 4, 4, 4, 5, 5, 5, 5, 5, 0
    };
  11. Replies
    18
    Views
    530

    Every response I think of to this feels a little...

    Every response I think of to this feels a little sarcastic and adds nothing to the topic of this thread so I'm just not gonna leave one... besides this post
  12. Replies
    18
    Views
    530

    It's not spamming, I'm seeking help to speed up...

    It's not spamming, I'm seeking help to speed up my progress, I'd appreciate help, not sarcasm
  13. Replies
    18
    Views
    530

    Had some success understanding the IDAT bits now,...

    Had some success understanding the IDAT bits now, some, not complete success:


    0 'IHDR'
    1 'PLTE'
    2 'IDAT'
    3 'IEND'
    SpanX = 256
    SpanY = 256
    Depth: 1
  14. Replies
    18
    Views
    530

    I managed to load the first single colour image...

    I managed to load the first single colour image correctly, currently hacky as I ignored the huffman bits under the condition there was only one colour in the palette, working on using those bits next.
  15. Replies
    18
    Views
    530

    Found some more information on IDAT format (which...

    Found some more information on IDAT format (which gave at least some of what I was looking for in regards it's contents and how it should be handled), modified a duplicate of Scanlines & renamed the...
  16. Replies
    18
    Views
    530

    Finally got somewhere, turned out I just read the...

    Finally got somewhere, turned out I just read the data wrong from the source document, I was supposed to flip the bits when putting them into the bytes:


    BUFF Tree = {0};
    uchar...
  17. Replies
    18
    Views
    530

    I think I got closer, at the very least I...

    I think I got closer, at the very least I realised none of the examples were including the table in the binary so for now I'm using manual table to match the tree mentioned in the document I linked...
  18. Replies
    18
    Views
    530

    After finding some documentation that provided...

    After finding some documentation that provided more information on the IDAT format I found I have to implement the huffman decompression algorithm, I understand the concept but the problem is I don't...
  19. Replies
    18
    Views
    530

    The image that I linked in my 2nd post, I'm...

    The image that I linked in my 2nd post, I'm trying to reproduce it in *.ppm format, I can load the chunks just fine but converting the IDAT chunk/s back to a plain image ready for the *.ppm file it's...
  20. Replies
    18
    Views
    530

    Found a vid that gave me rough idea of how to do...

    Found a vid that gave me rough idea of how to do it, although my implementation is definitely different to how they did it, also decided to rename the function to something easier to type and...
  21. Replies
    18
    Views
    530

    Still couldn't figure it out so in mean time I...

    Still couldn't figure it out so in mean time I tried writing the diagonal version of scan lines, I messed up somewhere though as I just got a small mostly while strip at the top of the image,...
  22. Replies
    18
    Views
    530

    Converted the scanline code a bit for putting...

    Converted the scanline code a bit for putting into a dedicated function:


    typedef struct _SCANLINE
    {
    uint Depth, Flags, SpanR, SpanI, CMethod, FMethod, IMethod;
    BUFF *Palette, *Dst, *Src;
    }...
  23. Replies
    18
    Views
    530

    Still struggling with the implementation but I...

    Still struggling with the implementation but I got a bit further, no longer have half the image all dark, btw I'm using this image for verifying I'm programming the algorithm along the right lines:...
  24. Replies
    18
    Views
    530

    Way to do scan lines

    I learned from the below url that I have to do scan lines to construct the image from the indices, problem is I can't seem to get it right, the best I've gott so far is this:
    PNG Specification:...
  25. Replies
    9
    Views
    504

    Never mind, forgot that I was printing the read...

    Never mind, forgot that I was printing the read chunks too, that got in the resulting ppm, when I removed that I got an image, just not sure if I was writing the colours correctly, gonna do my daily...
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4