| Ciler |
:hello: Je viens ruiner le débat sur le GPL... ;) Sérieusement, mon prblème est le suivant ! En Delphi, j'ai pas droit à #include vfw.h
dc, comment je peut reproduire la macro mmioFOURCC ?
sachant çà :
Citation :
Platform SDK: Windows Multimedia mmioFOURCC
The mmioFOURCC macro converts four characters into a four-character code.
FOURCC mmioFOURCC(
CHAR ch0, CHAR ch1, CHAR ch2, CHAR ch3
);
Parameters
ch0 First character of the four-character code. ch1 Second character of the four-character code. ch2 Third character of the four-character code. ch3 Fourth character of the four-character code. Return Values
Returns the four-character code created from the given characters.
Remarks
This macro does not check whether the four-character code it returns is valid.
The mmioFOURCC macro is defined as follows:
#define mmioFOURCC(ch0, ch1, ch2, ch3) \ MAKEFOURCC(ch0, ch1, ch2, ch3);
The MAKEFOURCC macro, in turn, is defined as follows:
#define MAKEFOURCC(ch0, ch1, ch2, ch3) \ ((DWORD)(BYTE)(ch0) | ((DWORD)(BYTE)(ch1) << 8) | \ ((DWORD)(BYTE)(ch2) << 16) | ((DWORD)(BYTE)(ch3) << 24 ));
|
En fait, je cherche surtout qq'un pouvant m'expliquer ce que fait la dernière fonction de façon à la reproduire en Delphi !
Edit 2 : j'aurai besoin d'une confirmation, que rend mmioFOURCC('d','i','v','x');
(je prie pour que ce soit : 2021026148)
:jap: [edtdd]--Message édité par ciler--[/edtdd] |