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

jpx_source::get_layer_codestream_id

Java: Jpx_source::Get_layer_codestream_id

int get_layer_codestream_id( int which_layer, int which_stream)

Java: int Get_layer_codestream_id( int which_layer, int which_stream)

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

Go to class description.


Synopsis

This function is equivalent to calling access_layer, followed by jpx_layer_source::get_codestream_id with one exception — if the layer cannot yet be opened due to the unavailability of some header box or the relevant codestream main headers, the present function may still succeed in reporting the index of the codestream or codestreams used by the compositing layer. This is useful when the image is being served by a JPIP server which needs to be informed of the codestreams which are required before it will supply their main headers required to access the compositing layer via access_layer.


Return Value

-1 if which_stream is greater than or equal to the value returned via get_num_layer_codestreams.

Arguments

which_layer [int]

which_stream [int]


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