OpenJPEG 2.3.0

Macros | Functions
codestream_manager.c File Reference
`#include <stdio.h>`
`#include "codestream_manager.h"`
`#include "opj_inttypes.h"`

## Macros
#define | FCGI_stdout stdout
#define | FCGI_stderr stderr
#define | logstream stderr

## Functions
codestream_param_t | set_codestream (int fd, OPJ_OFF_T offset, OPJ_SIZE_T length)
| set codestream parameters from inputs More...
Byte_t * | fetch_codestreambytes (codestream_param_t *cs, OPJ_OFF_T offset, OPJ_SIZE_T size)
| fetch Codestream bytes of data in file stream More...
Byte_t | fetch_codestream1byte (codestream_param_t *cs, OPJ_OFF_T offset)
| fetch Codestream 1-byte Byte code in file stream More...
Byte2_t | fetch_codestream2bytebigendian (codestream_param_t *cs, OPJ_OFF_T offset)
| fetch Codestream 2-byte big endian Byte codes in file stream More...
Byte4_t | fetch_codestream4bytebigendian (codestream_param_t *cs, OPJ_OFF_T offset)
| fetch Codestream 4-byte big endian Byte codes in file stream More...
void | print_codestream (codestream_param_t cs)
| print codestream parameters More...

## Macro Definition Documentation

## ◆ FCGI_stderr

#define FCGI_stderr stderr

## ◆ FCGI_stdout

#define FCGI_stdout stdout

## ◆ logstream

#define logstream stderr

Referenced by print_codestream().

## Function Documentation

## ◆ fetch_codestream1byte()

Byte_t fetch_codestream1byte | ( | codestream_param_t * | cs,
|  | OPJ_OFF_T | offset
| ) |  |

fetch Codestream 1-byte Byte code in file stream

Parameters

  [in] | cs | codestream pointer
  [in] | offset | start Byte position in codestream

Returns
  fetched code

References codestream_param::fd, fetch_1byte(), and codestream_param::offset.

Referenced by fetch_marker1byte().

## ◆ fetch_codestream2bytebigendian()

Byte2_t fetch_codestream2bytebigendian | ( | codestream_param_t * | cs,
|  | OPJ_OFF_T | offset
| ) |  |

fetch Codestream 2-byte big endian Byte codes in file stream

Parameters

  [in] | cs | codestream pointer
  [in] | offset | start Byte position in codestream

Returns
  fetched code

References codestream_param::fd, fetch_2bytebigendian(), and codestream_param::offset.

Referenced by fetch_marker2bytebigendian().

## ◆ fetch_codestream4bytebigendian()

Byte4_t fetch_codestream4bytebigendian | ( | codestream_param_t * | cs,
|  | OPJ_OFF_T | offset
| ) |  |

fetch Codestream 4-byte big endian Byte codes in file stream

Parameters

  [in] | cs | codestream pointer
  [in] | offset | start Byte position in codestream

Returns
  fetched code

References codestream_param::fd, fetch_4bytebigendian(), and codestream_param::offset.

Referenced by fetch_marker4bytebigendian().

## ◆ fetch_codestreambytes()

Byte_t* fetch_codestreambytes | ( | codestream_param_t * | cs,
|  | OPJ_OFF_T | offset,
|  | OPJ_SIZE_T | size
| ) |  |

fetch Codestream bytes of data in file stream

Parameters

  [in] | cs | codestream pointer
  [in] | offset | start Byte position in codestream
  [in] | size | Byte length

Returns
  pointer to the fetched data

References codestream_param::fd, fetch_bytes(), and codestream_param::offset.

## ◆ print_codestream()

void print_codestream | ( | codestream_param_t | cs | ) |

print codestream parameters

Parameters

  [in] | cs | codestream

References codestream_param::fd, codestream_param::length, logstream, and codestream_param::offset.

## ◆ set_codestream()

codestream_param_t set_codestream | ( | int | fd,
|  | OPJ_OFF_T | offset,
|  | OPJ_SIZE_T | length
| ) |  |

set codestream parameters from inputs

Parameters

  [in] | fd | file descriptor
  [in] | offset | offset in the file
  [in] | length | codestream length

Returns
  structure of generated codestream parameters

References codestream_param::fd, codestream_param::length, and codestream_param::offset.

Referenced by set_cidxdata().