Extending JMF w/ Greyscale Video Format?

Has anyone been able to, or know how to extend the JMF to provide support for a new Video Format. For instance in some of the lower level code there are constants for some video formats that support has not been written for yet. It actually says in comments "TODO: the rest of the formats". I need to get support for the Greyscale format. I started writting the implementation and believe I have the format ready and it is listed as supported, but I get any error when realizing the player. I'm not sure the complete scheme of things that have to be written to provide a new format. Do I need new multiplexer or demultiplexers as well? I did write a new codec for it, but still no go. Anyone do something like this before that can offer some information? Thanks.

[777 byte] By [krf1111] at [2007-9-26 12:38:20]
# 1

I need something similar. I want to convert RGB to Grayscale video format. What if in a codec that get/put RGB you just use the following equation to convert the 3 components to gray scale:

Gray = (0.212671x R) + (0.715160 x G) + (0.071169 x B)

and then

R = Gray

G = Gray

B = Gray

for each pixel

I don't know if this work. but if it does, then please let me know.

Ogeid.

rotnacogeid at 2007-7-2 11:57:28 > top of Java-index,Security,Cryptography...