2.2.2.3.4 TS_RFX_TILESET

The TS_RFX_TILESET message contains encoding parameters and data for an arbitrary number of encoded tiles.


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

CodecChannelT

...

subtype

idx

properties

numQuant

tileSize

numTiles

tilesDataSize

...

quantVals (variable)

...

tiles (variable)

...

CodecChannelT (8 bytes): A TS_RFX_CODEC_CHANNELT (section 2.2.2.1.2) structure. The blockType field MUST be set to WBT_EXTENSION (0xCCC7).

subtype (2 bytes): A 16-bit, unsigned integer. Specifies the message type. This field MUST be set to CBT_TILESET (0xCAC2).

idx (2 bytes): A 16-bit, unsigned integer. Specifies the identifier of the TS_RFX_CONTEXT (section 2.2.2.2.4) message referenced by this TileSet message. This field MUST be set to 0x0000. The decoder SHOULD ignore this field.

properties (2 bytes): A 16-bit unsigned integer. Contains a collection of bit-packed property fields. The format of this field is described by the following bitmask diagram.


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

A

flags

cct

xft

et

qt

A - lt (1 bit): A 1-bit field that specifies whether this is the last TS_RFX_TILESET in the region. This field MUST be set to TRUE (0x1). The decoder SHOULD ignore this field.

flags (3 bits): A 3-bit unsigned integer. Specifies operational flags.

Flag

Meaning

CODEC_MODE

0x02

The codec is operating in image mode. If this flag is not set, the codec is operating in video mode.

The encoder MUST set this value to the value of flags that is set in the properties field of TS_RFX_CONTEXT. The decoder MUST ignore this flag and MUST use the flags specified in the flags field of the TS_RFX_CONTEXT.

cct (2 bits): A 2-bit unsigned integer. Specifies the color conversion transform. This field MUST be set to COL_CONV_ICT (0x1) to specify the transform defined by the equations in sections 3.1.8.1.3 and 3.1.8.2.5. The decoder SHOULD ignore this field.

xft (4 bits): A 4-bit unsigned integer. Specifies the DWT. This field MUST be set to CLW_XFORM_DWT_53_A (0x1), which indicates the DWT given by the equations in sections 3.1.8.1.4 and 3.1.8.2.4. The decoder SHOULD ignore this field.

et (4 bits): A 4-bit unsigned integer. Specifies the entropy algorithm. This field MUST be set to one of the following values.

Value

Meaning

CLW_ENTROPY_RLGR1

0x01

RLGR algorithm as detailed in 3.1.8.1.7.1.

CLW_ENTROPY_RLGR3

0x04

RLGR algorithm as detailed in 3.1.8.1.7.2.

qt (2 bits): A 2-bit unsigned integer. Specifies the quantization type. This field MUST be set to SCALAR_QUANTIZATION (0x1). The decoder SHOULD ignore this field.

numQuant (1 byte): An 8-bit, unsigned integer. Specifies the number of TS_RFX_CODEC_QUANT (section 2.2.2.1.5) structures present in the quantVals field.

tileSize (1 byte): An 8-bit, unsigned integer. Specifies the width and height of a tile. This field MUST be set to 0x40. The decoder SHOULD ignore this field.

numTiles (2 bytes): A 16-bit, unsigned integer. Specifies the number of TS_RFX_TILE (section 2.2.2.3.4.1) structures present in the tiles field.

tilesDataSize (4 bytes): A 32-bit, unsigned integer. Specifies the size, in bytes, of the tiles field. The tiles field contains encoded data for all of the tiles that have changed.

quantVals (variable): A variable-length array of TS_RFX_CODEC_QUANT (section 2.2.2.1.5) structures. The number of structures present in the array is indicated in the numQuant field.

tiles (variable): A variable-length array of TS_RFX_TILE (section 2.2.2.3.4.1) structures. The number of structures present in the array is indicated in the numTiles field, while the total size, in bytes, of this field is specified by the tilesDataSize field.