01: /*
02: * $RCSfile: JPEGRIF.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:30 $
10: * $State: Exp $
11: */
12: package com.sun.media.jai.opimage;
13:
14: import java.io.InputStream;
15: import java.awt.RenderingHints;
16: import java.awt.image.RenderedImage;
17: import java.awt.image.renderable.ParameterBlock;
18: import java.awt.image.renderable.RenderedImageFactory;
19: import javax.media.jai.NullOpImage;
20: import javax.media.jai.OpImage;
21: import com.sun.media.jai.codec.ImageCodec;
22: import com.sun.media.jai.codec.ImageDecoder;
23: import com.sun.media.jai.codec.SeekableStream;
24:
25: /**
26: * @see javax.media.jai.operator.JPEGDescriptor
27: *
28: */
29: public class JPEGRIF implements RenderedImageFactory {
30:
31: /** Constructor. */
32: public JPEGRIF() {
33: }
34:
35: /**
36: * Creates a <code>RenderedImage</code> representing the contents
37: * of a JPEG-encoded image.
38: *
39: * @param paramBlock A <code>ParameterBlock</code> containing the JPEG
40: * <code>SeekableStream</code> to read.
41: * @param renderHints Ignored.
42: */
43: public RenderedImage create(ParameterBlock paramBlock,
44: RenderingHints renderHints) {
45: return CodecRIFUtil.create("jpeg", paramBlock, renderHints);
46: }
47: }
|