| synopsis || return value || arguments || prev || next |

jpx_metanode::get_numlist_info

Java: Jpx_metanode::Get_numlist_info

bool get_numlist_info( int & num_codestreams, int & num_layers, bool & applies_to_rendered_result)

Java: boolean Get_numlist_info( int[] num_codestreams, int[] num_layers, boolean[] applies_to_rendered_result)

[Declared in "../apps/compressed_io/jpx.h"]

Go to class description.


Synopsis

Use this function to determine whether or not the node is represented by a number list. A number list is a list of image entities: codestreams; compositing layers; or the complete "rendered result". In many cases, the number list information is derived from a JPX number list ( nlst) box. However, it can also be derived by the containment of metadata within a JPX codestream header box or compositing layer header box. The ensuing discussion assumes that the function returns true, meaning that the node is represented by a number list.

If this is an intermediate node, the number list is at least notionally the first sub-box of an association box, and all of the node's descendants (both immediate and indirect descendants) are deemed to be associated with each and every one of the image entities in the number list.

As mentioned above, it is also possible that an intermediate node is represented by a number list, without the appearance of an actual number list box within the JPX data source. This happens if relevant metadata is encountered while parsing a JPX codestream header box or a JPX compositing layer header box. In this case, a "virtual" number list is created, to refer to exactly one image entity — the codestream or compositing layer, whose header generated the node. The node's descendants then represent the metadata sub-boxes found within the relevant header. It is important to realize that this kind of "virtual" number list can always be written into a JPX file as a real number list box within an association box, and indeed the JPX file writer always writes metadata in this way, rather than encapsulating it within header boxes.

If this node is a leaf, the number list corresponds to an isolated number list ( nlst) box, all by itself. This is semantically less useful, of course, but still legal.

In addition to identifying whether or not the node is represented by a number list, this function also provides information concerning the number of codestreams and compositing layers which are referenced by the number list, and whether or not the number list references the complete "rendered result".


Return Value

True only if the box is represented by a number list.

Arguments

num_codestreams [int &]

Used to return the number of image entities in the number list which are codestreams.

num_layers [int &]

Used to return the number of image entities in the number list which are compositing layers.

applies_to_rendered_result [bool &]

Used to return a boolean variable, which evaluates to true if the number list includes a reference to the complete "rendered result" of the JPX data source. The variable is set to false if the number list contains references only to codestreams and/or compositing layers. The actual meaning of the "rendered result" is unclear from the JPX specification, but it may refer to any of the results produced by applying the compositing instructions in a composition ( comp) box, if one is present. Access to these compositing instructions is provided via the jpx_composition interface.


| top || synopsis || return value || arguments || prev || next |