×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Mar 2003
    Posts
    48

    how i can encode the size of the data?

    for example i have an image of 666bytes;
    I HAVE FIND THE FOLLOWING IN THIS FORUM: 85 9a: size of data (jpeg image) encoded as bytes where each of them contain 7 bits of the size and most significant bit set to 1;

    BUT 666 IS 29A IN HEXADECIMAL, AND I I PUT THE MOST SIGNIFICANT BIT SET TO 1, THE RESULT IS: 829A, ARE THERE SOME ERRORS?

  2. #2
    Super Contributor
    Join Date
    Mar 2003
    Posts
    509

    RE: how i can encode the size of the data?

    Encoding of the image size:
    encoding of image size 666 is 85 1A.
    2 9A -> 0010 1001 1010 -> 0 0101 001 1010
    each octet contains 7 bits of the actual number
    and the most significant bit is set to 1, last
    octet begins with an added zero.
    -> 1 000 0101 0 001 1010
    BR
    M, Forum Nokia

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×