01: /*
02: * $RCSfile: EBCOTLayer.java,v $
03: * $Revision: 1.1 $
04: * $Date: 2005/02/11 05:02:08 $
05: * $State: Exp $
06: *
07: * Class: EBCOTLayer
08: *
09: * Description: Storage for layer information,
10: * used by EBCOTRateAllocator
11: *
12: * class that was in EBCOTRateAllocator.
13: *
14: *
15: * COPYRIGHT:
16: *
17: * This software module was originally developed by Raphaël Grosbois and
18: * Diego Santa Cruz (Swiss Federal Institute of Technology-EPFL); Joel
19: * Askelöf (Ericsson Radio Systems AB); and Bertrand Berthelot, David
20: * Bouchard, Félix Henry, Gerard Mozelle and Patrice Onno (Canon Research
21: * Centre France S.A) in the course of development of the JPEG2000
22: * standard as specified by ISO/IEC 15444 (JPEG 2000 Standard). This
23: * software module is an implementation of a part of the JPEG 2000
24: * Standard. Swiss Federal Institute of Technology-EPFL, Ericsson Radio
25: * Systems AB and Canon Research Centre France S.A (collectively JJ2000
26: * Partners) agree not to assert against ISO/IEC and users of the JPEG
27: * 2000 Standard (Users) any of their rights under the copyright, not
28: * including other intellectual property rights, for this software module
29: * with respect to the usage by ISO/IEC and Users of this software module
30: * or modifications thereof for use in hardware or software products
31: * claiming conformance to the JPEG 2000 Standard. Those intending to use
32: * this software module in hardware or software products are advised that
33: * their use may infringe existing patents. The original developers of
34: * this software module, JJ2000 Partners and ISO/IEC assume no liability
35: * for use of this software module or modifications thereof. No license
36: * or right to this software module is granted for non JPEG 2000 Standard
37: * conforming products. JJ2000 Partners have full right to use this
38: * software module for his/her own purpose, assign or donate this
39: * software module to any third party and to inhibit third parties from
40: * using this software module for non JPEG 2000 Standard conforming
41: * products. This copyright notice must be included in all copies or
42: * derivative works of this software module.
43: *
44: * Copyright (c) 1999/2000 JJ2000 Partners.
45: *
46: *
47: *
48: */
49:
50: package jj2000.j2k.entropy.encoder;
51:
52: /**
53: * This class holds information about each layer that is to be, or has already
54: * been, allocated . It is used in the rate-allocation process to keep the
55: * necessary layer information. It is used by EBCOTRateAllocator.
56: *
57: * @see EBCOTRateAllocator
58: **/
59: class EBCOTLayer {
60: /**
61: * This is the maximum number of bytes that should be allocated for
62: * this and previous layers. This is actually the target length for
63: * the layer.
64: **/
65: int maxBytes;
66:
67: /**
68: * The actual number of bytes which are consumed by the the current and
69: * any previous layers. This is the result from a simulation when the
70: * threshold for the layer has been set.
71: **/
72: int actualBytes;
73:
74: /**
75: * If true the `maxBytes' value is the hard maximum and the threshold is
76: * determined iteratively. If false the `maxBytes' value is a target
77: * bitrate and the threshold is estimated from summary information
78: * accumulated during block coding.
79: **/
80: boolean optimize;
81:
82: /**
83: * The rate-distortion threshold associated with the bit-stream
84: * layer. When set the layer includes data up to the truncation points
85: * that have a slope no smaller than 'rdThreshold'.
86: **/
87: float rdThreshold;
88: }
|