Le nonidi 9 messidor, an CCXV, Reimar Döffinger a écrit :
Since finding out if a binary is 32 or 64 bits involves a major effort on Windows I'm not convinced he actually checked...
I am quite sure he did, but I do not have the details yet.
I think this is a very bad idea, involving a major effort, libmpcodecs has strong dependencies in MPlayer and a lot of information that is simply useless for decoding. I think you should better consider providing RPC-like stubs of (for decoding DMO): DMO_VideoDecoder_Open DMO_VideoDecoder_SetDestFmt DMO_VideoDecoder_StartInternal DMO_VideoDecoder_Destroy DMO_VideoDecoder_DecodeInternal
To implement these you need only the loader code, which should be much easier to compile stand-alone.
My idea was that since libmpcodecs is higher-level than loader, embedding it would require actually less code duplication. I tried a quick and dirty approach to see by myself the amount of work. I have managed to build a stand-alone binary embedding vd_dmo, vd_dshow, vd_qtvideo and vd_vfw. It does absolutely nothing, but there is no undefined symbol. To achieve that, I had to define the following stubs: mpcodecs_get_image mpcodecs_config_vo mp_msg mp_msg_test get_path gCpuCaps divx_quality vo_format_name print_video_header I do not see anything monstrous. Regards, -- Nicolas George