From: matthieu <ma...@if...> - 2003-08-22 08:47:14
|
hello, i am trying to add support for my canon (G3) in libmnote. But i have find some small problem : the maker note data start directly with the data, and the pr= obing that was made in mnote_data_new_from_data ("(size > 1) && (data[0= ] =3D=3D 0x00) && (data[1] =3D=3D 0x00)") doesn't work, and i have to force= canon maker note for it works. Why not use the exif tag 0x010f for doing= this probing ? Also i have another problem with the endianess : libmnote do= esn't seem to detect the order and mnote_data_get_byte_order return alw= ays 0 whereas my data are intel type. So i have to set this flag i= n libmnote-canon... another thing is in specific camera code there is generic co= de that is only copy and paste and only few code have to be modified fo= r it work :=20 the begining of mnote_*_data_load_data, the value in offset = of mnote_*_data_load_data_entry (yes i don't know why but i nee= d to do doff =3D exif_get_long (d + offset + 8, order)-0x3B0; for having = the correct offset) and the value of tag, and their description ( mnote_*_entry_get_value, _MNote*Tag, ...) Also the canon maker note use sort of subtag(45 entry in tag= 0x1... but only 15 are know), and get_value have to return big chain of= settings... here an example of what i have done : Dumping MakerNote content (14 entries)... Tag: 0x1 ('Settings1') Value: Macro mode : Normal Flash mode : auto + red eyes reduction Continuous drive mode : single or timer Focus mode : Single ISO : auto Exposure mode : Easy shooting long focal length of lens (in focal units) : 922 short focal length of lens (in focal units) : 230 focal units per mm : 32 Focus mode : Single Tag: 0x4 ('Settings2') Value:=20 Subject Distance (mm) : 158 Tag: 0x6 ('ImageType') Value: IMG:PowerShot G3 JPEG Tag: 0x7 ('FirmwareVersion') Value: Firmware Version 1.02 Tag: 0x8 ('ImageNumber') Value: 107-0710 Tag: 0x9 ('OwnerName') Value: Matthieu ____________________________________________________________= _________ MSN Messenger, nouvelle version ! Personnalisez vos messages= , jouez en ligne et communiquez en temps r=E9el par vid=E9o! http://ifr= ance.com/_reloc/m |