[]
This is the abstract class from which post-compression rate allocators which generate layers should inherit. The source of data is a 'CodedCBlkDataSrcEnc' which delivers entropy coded blocks with rate-distortion statistics.
<p>The post compression rate allocator implementation should create the
layers, according to a rate allocation policy, and send the packets to a
CodestreamWriter. Since the rate allocator sends the packets to the bit
stream then it should output the packets to the bit stream in the order
imposed by the bit stream profiles.</p>
public abstract class PostCompRateAllocator : ImgDataAdapter, ImgData
Name | Description |
---|---|
PostCompRateAllocator(CodedCBlkDataSrcEnc, int, CodestreamWriter, EncoderSpecs) | Initializes the source of entropy coded data. |
Name | Description |
---|---|
OPT_PREFIX | The prefix for rate allocation options: 'A' |
encSpec | The source of entropy coded data |
num_Layers | The number of layers. |
src | The source of entropy coded data |
Name | Description |
---|---|
HeaderEncoder | Keep a reference to the header encoder. |
NumLayers | Returns the number of layers that are actually generated. |
ParameterInfo | Returns the parameters that are used in this class and implementing classes. It returns a 2D String array. Each of the 1D arrays is for a different option, and they have 3 elements. The first element is the option name, the second one is the synopsis, the third one is a long description of what the parameter is and the fourth is its default value. The synopsis or description may be 'null', in which case it is assumed that there is no synopsis or description of the option, respectively. Null may be returned if no options are supported. |
Name | Description |
---|---|
createInstance(CodedCBlkDataSrcEnc, ParameterList, float, CodestreamWriter, EncoderSpecs) | Creates a PostCompRateAllocator object for the appropriate rate allocation parameters in the parameter list 'pl', having 'src' as the source of entropy coded data, 'rate' as the target bitrate and 'bw' as the bit stream writer object. |
initialize() | Initializes the rate allocation points, taking into account header overhead and such. This method must be called after the header has been simulated but before calling the runAndWrite() one. The header must be rewritten after a call to this method since the number of layers may change. |
runAndWrite() | Runs the rate allocation algorithm and writes the data to the bit stream. This must be called after the initialize() method. |