Search:

Type: Posts; User: awsdert

Page 1 of 20 1 2 3 4

Search: Search took 0.01 seconds; generated 45 minute(s) ago.

  1. Replies
    4
    Views
    80

    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.
  2. Replies
    4
    Views
    80

    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
  3. Replies
    4
    Views
    80

    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 <=...
  4. Replies
    18
    Views
    485

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

    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
    };
  6. Replies
    18
    Views
    485

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

    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
  8. Replies
    18
    Views
    485

    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
  9. Replies
    18
    Views
    485

    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.
  10. Replies
    18
    Views
    485

    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...
  11. Replies
    18
    Views
    485

    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...
  12. Replies
    18
    Views
    485

    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...
  13. Replies
    18
    Views
    485

    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...
  14. Replies
    18
    Views
    485

    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...
  15. Replies
    18
    Views
    485

    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...
  16. Replies
    18
    Views
    485

    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,...
  17. Replies
    18
    Views
    485

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

    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:...
  19. Replies
    18
    Views
    485

    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:...
  20. Replies
    9
    Views
    476

    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...
  21. Replies
    9
    Views
    476

    literally "*.ppm" Edit: Was using this when I...

    literally "*.ppm"

    Edit: Was using this when I wrote that code: PPM Format Specification
    Was planning to use eog to check the image comes out right before I go checking the other details that...
  22. Replies
    9
    Views
    476

    Before I go blaming my PNG loading function...

    Before I go blaming my PNG loading function (which surely has it's own bugs) have I done anything wrong for printing in PPM format?


    int main()
    {
    PROC *Proc;
    //TASK *Builder, *Painter;...
  23. Replies
    9
    Views
    476

    Never mind, I fixed it by switching to indices...

    Never mind, I fixed it by switching to indices instead
  24. Replies
    9
    Views
    476

    New problem, not seeing the cause of why my byte...

    New problem, not seeing the cause of why my byte flip misses the end (for example 0x12340000 should become 0x00001234, not 0x00123400), I know my system is using Little Endian but the results are not...
  25. Replies
    9
    Views
    476

    Never mind, I gave up on the shared floats idea...

    Never mind, I gave up on the shared floats idea and just used separate buffers, somehow lost all triangles in the process though, just gonna have to check every change I made
Results 1 to 25 of 499
Page 1 of 20 1 2 3 4