Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User tinduc's Avatar
    Join Date
    Mar 2003
    Posts
    48
    i know, that: encoded as bytes where each of them contain 7 bits of the size and most significant bit set to 1.
    But, could you give me the example if the picture has the following size: 19725 bytes.
    19725--->4d0d--->100110100001101----> can you following??...
    thanks

  2. #2
    Super Contributor pautamo's Avatar
    Join Date
    Mar 2003
    Posts
    509
    19725 -> 4d 0d -> 0100 1101 0000 1101 -> 01 001 1010 000 1101 ->
    the most significant bit in last octet is set to 0 for ending mark
    1000 0001 1001 1010 0000 1101
    BR
    M, Forum Nokia

  3. #3
    Super Contributor pautamo's Avatar
    Join Date
    Mar 2003
    Posts
    509
    Convert size to hex numbers, then to bits, then
    take the bits and put them inplace of the xs.
    Max 14 bits long number fits to two octets:
    1xxx xxxx 0xxx xxxx
    Max 21 bits long number fits to three octets:
    1xxx xxxx 1xxx xxxx 0xxx xxxx
    Convert octets back to hex numbers.
    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
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved