Search:

Type: Posts; User: dawatson

Search: Search took 0.00 seconds.

  1. Replies
    3
    Views
    1,056

    Yeah it was the padding for each row that...

    Yeah it was the padding for each row that introduces that effect. Just have to skip the padding; I used fseek but a better way might exist.
  2. Replies
    3
    Views
    1,056

    I'm not using the header. The IDE just uses pixel...

    I'm not using the header. The IDE just uses pixel values to display data. I've had a play with some parameters and it's looking like the number of bytes used for each pixel affects the output. The...
  3. Replies
    3
    Views
    1,056

    Displaying Bitmaps

    Hey guys

    I was wondering if anyone has come across "streaky" artefacts whilst displaying .bmp images? I've included a sample of the image being displayed through an IDE and also being played...
  4. Replies
    8
    Views
    3,812

    The masks I'm referring to might actually be the...

    The masks I'm referring to might actually be the DIB file header, ma bad!
  5. Replies
    8
    Views
    3,812

    Hey guys, I've got the image data I need, and the...

    Hey guys, I've got the image data I need, and the locations where they reside. I was just wondering if anyone knows how to use the RGB masks to interpret the pixel values? The images are actually...
  6. Replies
    8
    Views
    3,812

    Movi list! Cheers! I've been going through the...

    Movi list! Cheers! I've been going through the specs and they all detail the layout, but none simply state where the actual data is. I'm not looking for anything fancy to read the videos and I've...
  7. Replies
    8
    Views
    3,812

    Sorry. I'm wondering if anyone knows off-hand...

    Sorry. I'm wondering if anyone knows off-hand where the data for the frames will reside? I know that for normal images you can skip the preamble and just read values if you want. So I was wondering...
  8. Replies
    8
    Views
    3,812

    Reading raw avi video data

    Hey guys

    I need to do some image processing on an uncompressed (raw) avi video on a DSP, so I'm trying to get to the actual images that constitute the video; it's a greyscale video at 15fps. I was...
  9. Replies
    10
    Views
    2,388

    Just noticed what was actually fundamentally...

    Just noticed what was actually fundamentally wrong with my code. fgetc returns an int and I was storing it in a char, that's bad! So I changed the variable to store the return to an int (or unsigned...
  10. Replies
    10
    Views
    2,388

    Ah! Nice! I plan to just read the image width and...

    Ah! Nice! I plan to just read the image width and height and work out the padding needed, then jump to pixel array and read each row (according to the padding). So so-mething like:
    widthData = fp +...
  11. Replies
    10
    Views
    2,388

    Hey tabstop I've just tested what you...

    Hey tabstop
    I've just tested what you recommended and it works! I had to change my reading code to:
    FILE *fp = fopen("test.bmp", "rb");
    unsigned char c;
    ...
    c = fgetc(fp);
    ...
    printf("%d...
  12. Replies
    10
    Views
    2,388

    I certainly was. I totally overlooked that...

    I certainly was. I totally overlooked that aspect. I was changing between %c, %d, and %X to view values. I never thought about how I was printing it, thanks very much! I can't test it right now but...
  13. Replies
    10
    Views
    2,388

    Ah! So the actual row datum are 55, 40, AW, and...

    Ah! So the actual row datum are 55, 40, AW, and 80. With the 0 lines each being one byte of padding, bringing the width to 4 bytes (2 for data and 2 for padding). And the FFFFFF doesn't technically...
  14. Replies
    10
    Views
    2,388

    Understanding Bitmaps

    Hi guys
    Can anyone explain the following image data for a 10x10 bitmap of black and white pixels? Line numbers are just to keep track of output and values are in hex. I know that 55, 40, AA, and 80...
Results 1 to 14 of 14