KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > media > exampleplugins > VideoWindow


1 /*
2  * JBoss, the OpenSource J2EE webOS
3  *
4  * Distributable under LGPL license.
5  * See terms of license at gnu.org.
6  */

7 package org.jboss.media.exampleplugins;
8
9 import javax.media.Format;
10 import javax.media.format.RGBFormat;
11
12 import org.jboss.media.engine.JmfAbstractMediaPlugin;
13
14 /**
15  * @version <tt>$Revision: 1.1 $</tt>
16  * @author <a HREF="mailto:spyridon_samothrakis@yahoo.com">Spyridon Samothrakis</a>
17  */

18 public class VideoWindow extends JmfAbstractMediaPlugin
19 {
20
21    /* (non-Javadoc)
22     * @see org.jboss.media.engine.JmfAbstractMediaPlugin#getSupportedFormats()
23     */

24    public Format[] getSupportedFormats()
25    {
26       Format[] inputFormats =
27          new Format[] {
28              new RGBFormat(
29                null,
30                Format.NOT_SPECIFIED,
31                Format.byteArray,
32                Format.NOT_SPECIFIED,
33                24,
34                3,
35                2,
36                1,
37                3,
38                Format.NOT_SPECIFIED,
39                Format.TRUE,
40                Format.NOT_SPECIFIED)};
41
42       return inputFormats;
43
44    }
45
46 }
47
Popular Tags