01: /*
02: * $RCSfile: FPXRIF.java,v $
03: *
04: * Copyright (c) 2005 Sun Microsystems, Inc. All rights reserved.
05: *
06: * Use is subject to license terms.
07: *
08: * $Revision: 1.1 $
09: * $Date: 2005/02/11 04:56:26 $
10: * $State: Exp $
11: */
12: package com.sun.media.jai.opimage;
13:
14: import java.io.InputStream;
15: import java.io.IOException;
16: import java.awt.RenderingHints;
17: import java.awt.image.RenderedImage;
18: import java.awt.image.renderable.ParameterBlock;
19: import java.awt.image.renderable.RenderedImageFactory;
20: import javax.media.jai.NullOpImage;
21: import javax.media.jai.OpImage;
22: import com.sun.media.jai.codec.ImageCodec;
23: import com.sun.media.jai.codec.ImageDecoder;
24: import com.sun.media.jai.codec.SeekableStream;
25:
26: /**
27: * A <code>RIF</code> supporting the "FPX" operation in the
28: * rendered image layer.
29: *
30: * @see javax.media.jai.operator.FPXDescriptor
31: */
32: public class FPXRIF implements RenderedImageFactory {
33:
34: /** Constructor. */
35: public FPXRIF() {
36: }
37:
38: /**
39: * Creates a <code>RenderedImage</code> representing the contents
40: * of a FlashPIX-encoded image.
41: *
42: * @param paramBlock A <code>ParameterBlock</code> containing the FPX
43: * <code>SeekableStream</code> to read.
44: * @param renderHints Rendering hints.
45: */
46: public RenderedImage create(ParameterBlock paramBlock,
47: RenderingHints renderHints) {
48: return CodecRIFUtil.create("fpx", paramBlock, renderHints);
49: }
50: }
|