OpenJPEG  2.5.0
Data Structures | Typedefs | Functions
marker_manager.h File Reference
#include "codestream_manager.h"

Go to the source code of this file.

Data Structures

struct  marker_param
 Marker parameters. More...
 

Typedefs

typedef struct marker_param marker_param_t
 Marker parameters. More...
 

Functions

marker_param_t set_marker (codestream_param_t cs, Byte2_t code, OPJ_OFF_T offset, Byte2_t length)
 set marker parameters from inputs More...
 
Byte_t fetch_marker1byte (marker_param_t marker, OPJ_OFF_T offset)
 fetch marker content 1-bytes of data in file stream More...
 
Byte2_t fetch_marker2bytebigendian (marker_param_t marker, OPJ_OFF_T offset)
 fetch marker content 2-byte big endian Byte codes in file stream More...
 
Byte4_t fetch_marker4bytebigendian (marker_param_t marker, OPJ_OFF_T offset)
 fetch marker content 4-byte big endian Byte codes in file stream More...
 

Typedef Documentation

◆ marker_param_t

typedef struct marker_param marker_param_t

Marker parameters.

Function Documentation

◆ fetch_marker1byte()

Byte_t fetch_marker1byte ( marker_param_t  marker,
OPJ_OFF_T  offset 
)

fetch marker content 1-bytes of data in file stream

Parameters
[in]markermarker structure
[in]offsetstart Byte position in marker
Returns
fetched code

References marker_param::cs, fetch_codestream1byte(), and marker_param::offset.

Referenced by set_CODmkrdata(), and set_SIZmkrdata().

◆ fetch_marker2bytebigendian()

Byte2_t fetch_marker2bytebigendian ( marker_param_t  marker,
OPJ_OFF_T  offset 
)

fetch marker content 2-byte big endian Byte codes in file stream

Parameters
[in]markermarker structure
[in]offsetstart Byte position in marker
Returns
fetched code

References marker_param::cs, fetch_codestream2bytebigendian(), and marker_param::offset.

Referenced by set_CODmkrdata(), and set_SIZmkrdata().

◆ fetch_marker4bytebigendian()

Byte4_t fetch_marker4bytebigendian ( marker_param_t  marker,
OPJ_OFF_T  offset 
)

fetch marker content 4-byte big endian Byte codes in file stream

Parameters
[in]markermarker structure
[in]offsetstart Byte position in marker
Returns
fetched code

References marker_param::cs, fetch_codestream4bytebigendian(), and marker_param::offset.

Referenced by set_SIZmkrdata().

◆ set_marker()

marker_param_t set_marker ( codestream_param_t  cs,
Byte2_t  code,
OPJ_OFF_T  offset,
Byte2_t  length 
)

set marker parameters from inputs

Parameters
[in]csmarker code
[in]codemarker code
[in]offsetoffset in the codestream
[in]lengthmarker segment length
Returns
structure of generated marker parameters

References marker_param::code, marker_param::cs, marker_param::length, and marker_param::offset.

Referenced by set_CODmkrdata(), and set_SIZmkrdata().