Search:

Type: Posts; User: awsdert

Page 1 of 20 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    22
    Views
    583

    Hit a crash with the final section of my code,...

    Hit a crash with the final section of my code, since I need to do some shopping I figured I dump it here and see if I get lucky by the time I get back and someone both felt like looking through it...
  2. Replies
    7
    Views
    146

    For beginner C programmers that's fine but for...

    For beginner C programmers that's fine but for experienced C programmers who are only trying out something Wall is enough, any project that's only meant for one's own computer is usually gonna stay...
  3. Thread: Unions...

    by awsdert
    Replies
    8
    Views
    353

    By the way if you want to study how the binary...

    By the way if you want to study how the binary system of FPNs work I suggest taking a look at the core functions of my ALU project (I'm planning to clean it up later when I've got time for it,...
  4. Replies
    22
    Views
    583

    Colour me surprised that such a simple change...

    Colour me surprised that such a simple change would fix all of them (I had fixed the code & length UIDs but distance ones got mess up, this resolved that a lot better), thanks :)
  5. Replies
    22
    Views
    583

    I did say there was a bug with UIDs, thank you...

    I did say there was a bug with UIDs, thank you for the code you provided after this though
  6. Thread: Unions...

    by awsdert
    Replies
    8
    Views
    353

    Personally I prefer to use sizeof(float) rather...

    Personally I prefer to use sizeof(float) rather than using 4 directly, then instead of directly referencing the bytes I would use a loop to access them, just gives that piece of mind that all bytes...
  7. Replies
    7
    Views
    146

    I agree with jimblumberg if your code is intended...

    I agree with jimblumberg if your code is intended to go out into the wild (such as a gitlab hosted project) but if it's only on your computer then -Wall or /Wall (depends on compiler) is enough to...
  8. Replies
    22
    Views
    583

    Dunno if it's of value to you but this is where...

    Dunno if it's of value to you but this is where I've got with just the deflation of the huffman data, currently got a bug with UIDs, specifically with getting the right length for length/literal...
  9. Replies
    22
    Views
    583

    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...
  10. Replies
    22
    Views
    583

    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...
  11. Replies
    22
    Views
    583

    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...
  12. Replies
    22
    Views
    583

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

    Here's a tip:


    byte = pos / CHAR_BIT;
    bit = pos % CHAR_BIT;
  13. Replies
    22
    Views
    583

    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...
  14. Replies
    22
    Views
    583

    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.
  15. Replies
    22
    Views
    583

    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
  16. Replies
    22
    Views
    583

    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 <=...
  17. Replies
    18
    Views
    568

    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 )
    {...
  18. Replies
    18
    Views
    568

    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
    };
  19. Replies
    18
    Views
    568

    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
  20. Replies
    18
    Views
    568

    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
  21. Replies
    18
    Views
    568

    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
  22. Replies
    18
    Views
    568

    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.
  23. Replies
    18
    Views
    568

    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...
  24. Replies
    18
    Views
    568

    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...
  25. Replies
    18
    Views
    568

    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...
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4