[MPlayer-dev-eng] [PATCH] Support CineForm HD

Steinar H. Gunderson sgunderson at bigfoot.com
Mon Mar 8 22:30:22 CET 2010


On Mon, Mar 08, 2010 at 10:10:01PM +0100, Reimar Döffinger wrote:
>> While all of these appear to be reasonable suggestions, they do seem a bit
>> overkill to me for the needs of a single codec, compared to a few lines in
>> registry.c (especially when it comes to a suggestion like building a fixed
>> registry into the binary, which seems pretty comparable to me).
> It would be all in a single file in etc and that file could also be used as
> a template for their own registry files.

Sure, the question is only to what use. Do we know of any other codecs that
will need preloaded registry information? Is it likely that others will
surface in the future?

>> FWIW, I've attached version of the patch that checks the entire registry path
>> instead of just the key name.
> I think it still is not possible to overwrite those values from a custom registry
> file like this.

That's right. But what would it be useful for?

I can always put the hardcoded entries as a last-resort if that makes it any
better, by the way?

>> Index: loader/win32.c
>> ===================================================================
>> --- loader/win32.c	(revisjon 30866)
>> +++ loader/win32.c	(arbeidskopi)
>> @@ -3729,7 +3729,7 @@
>>  	free(tmp);
>>  	return result;
>>      }
>> -    if (strstr(cs1, "vp3") || strstr(cs1, ".fpf"))
>> +    if (strstr(cs1, "vp3") || strstr(cs1, ".fpf") || strstr(cs1, ".col"))
>>      {
>>  	int r;
>>  	int flg = 0;
>> Index: etc/codecs.conf
>> ===================================================================
>> --- etc/codecs.conf	(revisjon 30866)
>> +++ etc/codecs.conf	(arbeidskopi)
>> @@ -1960,6 +1960,15 @@
>>    guid 0xe2b7dc56, 0x38c5, 0x11d5, 0x91, 0xf6, 0x00, 0x10, 0x4b, 0xdb, 0x8f, 0xf9
>>    out BGR24,BGR8 flip
>>  
>> +videocodec cineformhd
>> +  info "CineForm HD"
>> +  status working
>> +  fourcc CFHD
>> +  driver dshow
>> +  dll "CFDecode2.ax"
>> +  guid 0xAD83011E, 0x01d1, 0x4623, 0x91, 0xfd, 0x6b, 0x75, 0xf1, 0x83, 0xc5, 0xa9
>> +  out UYVY
>> +
>>  videocodec lagarith
>>    info "Lagarith Lossless Video Codec"
>>    comment "http://lags.leetcode.net/codec.html, requires an MMX2 CPU."
> And these parts are (somewhat) independent and could be applied already IMO.

Well, except the “working” part, since the codec isn't working (outside
Windows) without the registry entries in place.

/* Steinar */
-- 
Homepage: http://www.sesse.net/



More information about the MPlayer-dev-eng mailing list