OpenJPEG: placeholder_manager.c File Reference

OpenJPEG 2.1.2

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

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

## Functions
placeholderlist_param_t * | gene_placeholderlist (void)
| generate a placeholder list More...
void | delete_placeholderlist (placeholderlist_param_t **list)
| delete placeholder list More...
placeholder_param_t * | gene_placeholder (box_param_t *box, Byte8_t origID)
| generate a placeholder of a box More...
void | delete_placeholder (placeholder_param_t **placeholder)
| delete a placeholder More...
void | insert_placeholder_into_list (placeholder_param_t *phld, placeholderlist_param_t *phldlist)
void | print_placeholder (placeholder_param_t *phld)
| print placeholder parameters More...
void | print_allplaceholder (placeholderlist_param_t *list)
| print all placeholder parameters More...

## Macro Definition Documentation

## ◆ FCGI_stderr

#define FCGI_stderr stderr

## ◆ FCGI_stdout

#define FCGI_stdout stdout

## ◆ logstream

#define logstream stderr

Referenced by print_allplaceholder(), and print_placeholder().

## Function Documentation

## ◆ delete_placeholder()

void delete_placeholder | ( | placeholder_param_t ** | placeholder | ) |

delete a placeholder

Parameters

  [in,out] | placeholder | address of the placeholder pointer

Referenced by delete_placeholderlist().

## ◆ delete_placeholderlist()

void delete_placeholderlist | ( | placeholderlist_param_t ** | list | ) |

delete placeholder list

Parameters

  [in,out] | list | address of the placeholder list pointer

References delete_placeholder(), and placeholder_param::next.

Referenced by delete_metadata().

## ◆ gene_placeholder()

placeholder_param_t* gene_placeholder | ( | box_param_t * | box,
|  | Byte8_t | origID
| ) |  |

generate a placeholder of a box

Parameters

  [in] | box | box pointer
  [in] | origID | metadata-bin ID of the bin containing the contents of the original box

Returns
  pointer to the generated placeholder

References fetch_headbytes(), placeholder_param::Flags, box_param::headlen, placeholder_param::LBox, placeholder_param::next, placeholder_param::OrigBH, placeholder_param::OrigBHlen, placeholder_param::OrigID, and placeholder_param::TBox.

Referenced by const_metadatalist().

## ◆ gene_placeholderlist()

placeholderlist_param_t* gene_placeholderlist | ( | void |  | ) |

generate a placeholder list

Returns
  pointer to the generated placeholder list

References placeholderlist_param::first, and placeholderlist_param::last.

Referenced by const_metadatalist(), and parse_metadata().

## ◆ insert_placeholder_into_list()

void insert_placeholder_into_list | ( | placeholder_param_t * | phld,
|  | placeholderlist_param_t * | phldlist
| ) |  |

References placeholderlist_param::first, placeholderlist_param::last, and placeholder_param::next.

Referenced by const_metadatalist(), and parse_metadata().

## ◆ print_allplaceholder()

void print_allplaceholder | ( | placeholderlist_param_t * | list | ) |

print all placeholder parameters

Parameters

  [in] | list | placeholder list pointer

References placeholderlist_param::first, logstream, placeholder_param::next, and print_placeholder().

Referenced by print_metadata().

## ◆ print_placeholder()

void print_placeholder | ( | placeholder_param_t * | phld | ) |

print placeholder parameters

Parameters

  [in] | phld | placeholder pointer

References placeholder_param::Flags, placeholder_param::LBox, logstream, placeholder_param::OrigBH, placeholder_param::OrigBHlen, placeholder_param::OrigID, and placeholder_param::TBox.

Referenced by print_allplaceholder(), and print_msgqueue().