Click here to Skip to main content
15,922,512 members
Home / Discussions / Algorithms
   

Algorithms

 
GeneralRe: Control direction of rounding. Pin
Dan Neely25-Jan-07 5:14
Dan Neely25-Jan-07 5:14 
GeneralRe: Control direction of rounding. Pin
Bassam Abdul-Baki25-Jan-07 5:39
professionalBassam Abdul-Baki25-Jan-07 5:39 
AnswerRe: Control direction of rounding. Pin
cmk1-Feb-07 10:49
cmk1-Feb-07 10:49 
QuestionWhen next putting a clock forward/back Pin
Hmarik24-Jan-07 23:21
Hmarik24-Jan-07 23:21 
AnswerRe: When next putting a clock forward/back Pin
Jeremy Falcon31-Jan-07 11:58
professionalJeremy Falcon31-Jan-07 11:58 
AnswerRe: When next putting a clock forward/back Pin
Luc Pattyn31-Jan-07 12:09
sitebuilderLuc Pattyn31-Jan-07 12:09 
GeneralRe: When next putting a clock forward/back Pin
Ingo12-Feb-07 12:34
Ingo12-Feb-07 12:34 
QuestionID3v2 tag size Pin
SilentBob10117-Jan-07 12:15
SilentBob10117-Jan-07 12:15 
Hi,

I'm trying do determine an ID3v2 tag size. Acording to the ID3 site it's stored in the first 10 bytes of the tag, acctually there the last 4 of those 10.
This is how they explain it.
The ID3v2 tag size is encoded with four bytes where the most significant bit (bit 7)
is set to zero in every byte, making a total of 28 bits. The zeroed bits are ignored,
so a 257 bytes long tag is represented as $00 00 02 01.
An ID3v2 tag can be detected with the following pattern:

$49 44 33 yy yy xx zz zz zz zz 

Where yy is less than $FF, xx is the 'flags' byte and zz is less than $80

I think $00 00 02 01 is a hexadecimal represantation of the bytes. I understand that 1 byte = 01111111 maximum (bit7 =0), so 1 byte can represent 127 bytes (in tag size) maximum. In the example zz is less then $80, so it's less then 128. If so, I come to 4 * 127 * 127 = 64516 bytes in tag size. That's not 256 MB as they claim on the ID3 site.

I'm probably doing something wrong here.

Can anyone explain to me how 257 bytes (tag size) are represented by $00 00 02 01 in hexadecimal?


If you want to know The Truth, STOP lying.

AnswerRe: ID3v2 tag size Pin
AJR_UK17-Jan-07 15:08
AJR_UK17-Jan-07 15:08 
GeneralRe: ID3v2 tag size Pin
SilentBob10118-Jan-07 1:24
SilentBob10118-Jan-07 1:24 
GeneralGotta Love Twins Pin
Bassam Abdul-Baki15-Jan-07 12:42
professionalBassam Abdul-Baki15-Jan-07 12:42 
GeneralRe: Gotta Love Twins Pin
Russell Jones15-Jan-07 23:07
Russell Jones15-Jan-07 23:07 
GeneralRe: Gotta Love Twins Pin
Bassam Abdul-Baki16-Jan-07 3:12
professionalBassam Abdul-Baki16-Jan-07 3:12 
GeneralRe: Gotta Love Twins Pin
Sauce!19-Jan-07 0:33
Sauce!19-Jan-07 0:33 
GeneralRe: Gotta Love Twins Pin
Rob Graham19-Jan-07 3:13
Rob Graham19-Jan-07 3:13 
GeneralRe: Gotta Love Twins Pin
Nathan Addy29-Jan-07 12:37
Nathan Addy29-Jan-07 12:37 
QuestionScoring a number of values/weightings and normalizing Pin
Subterranean14-Jan-07 4:54
Subterranean14-Jan-07 4:54 
AnswerRe: Scoring a number of values/weightings and normalizing Pin
CPallini16-Jan-07 9:53
mveCPallini16-Jan-07 9:53 
QuestionLicense plate recognsition in c++ Pin
mchaudhary13-Jan-07 12:27
mchaudhary13-Jan-07 12:27 
AnswerRe: License plate recognsition in c++ Pin
Luc Pattyn13-Jan-07 18:53
sitebuilderLuc Pattyn13-Jan-07 18:53 
Questioncalculate the sun-up Pin
daniel9912-Jan-07 22:19
daniel9912-Jan-07 22:19 
AnswerRe: calculate the sun-up Pin
Sauce!13-Jan-07 1:58
Sauce!13-Jan-07 1:58 
GeneralRe: calculate the sun-up Pin
daniel9913-Jan-07 4:31
daniel9913-Jan-07 4:31 
GeneralRe: calculate the sun-up [modified] Pin
CoffeeAddict1913-Jan-07 5:40
CoffeeAddict1913-Jan-07 5:40 
AnswerRe: calculate the sun-up Pin
El Corazon13-Jan-07 9:40
El Corazon13-Jan-07 9:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.