Menu

#63 Add Pixel Aspect Ratio to the GIF parser

closed
None
5
2012-08-08
2012-08-07
kurtnoise
No

Discussion

  • kurtnoise

    kurtnoise - 2012-08-07
    • assigned_to: nobody --> zenitram
     
  • Jerome Martinez

    Jerome Martinez - 2012-08-08

    Be careful to specs:
    http://www.w3.org/Graphics/GIF/spec-gif89a.txt
    Pixel Aspect Ratio - Factor used to compute an approximation
    of the aspect ratio of the pixel in the original image. If the
    value of the field is not 0, this approximation of the aspect ratio
    is computed based on the formula:

    Aspect Ratio = (Pixel Aspect Ratio + 15) / 64

    Changed to:
    if (Image_PixelAspectRatio)
    Fill(Stream_Image, 0, Image_PixelAspectRatio, (((float)PixelAspectRatio)+15)/64);

     
  • Jerome Martinez

    Jerome Martinez - 2012-08-08
    • status: open --> closed
     
  • kurtnoise

    kurtnoise - 2012-08-08

    Erff, forgot to check the specs...

    Thanks anyway for reviews ;-)

     

Log in to post a comment.