PDA

View Full Version : FOURCC workaround


ciler
22nd May 2002, 08:33
Hello

Does anyone know a way of 'reverse engeneer' a FOURCC code to the four letters it's determined from ?
I mean something that would do the exact inverse of MKFOURCC function.

Belgabor
22nd May 2002, 08:56
just typecast it to a char(4) and perhaps (not sure) reverse the order.

EDIT: In the delphi implentation thers actuially a function for it:

fourCC2string(FOURCC)

Dunno if theres a c/c++ analog.

EDIT2: Erm, might be I wrote that function myself (not sure, dun have my complete source here) ^^'

Regards
Belgabor

ciler
23rd May 2002, 08:53
Originally posted by Belgabor

EDIT2: Erm, might be I wrote that function myself (not sure, dun have my complete source here) ^^'


:D There, if it's part of your own implementation, would you mind to paste the function here...

BTW, I use Delphi, so...:o

Belgabor
24th May 2002, 22:17
Function is in now the other thread ;)