You Are Here:

Community: Developer Discussion Boards

#1 Old how i can encode the size of the data? - 1970-01-01, 02:00

Join Date: Mar 2003
Posts: 48
tinduc
Offline
Registered User
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?
Reply With Quote

#2 Old RE: how i can encode the size of the data? - 1970-01-01, 02:00

Join Date: Mar 2003
Posts: 510
pautamo's Avatar
pautamo
Offline
Super Contributor
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
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia