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_tgene_placeholderlist (void)
 generate a placeholder list More...
 
void delete_placeholderlist (placeholderlist_param_t **list)
 delete placeholder list More...
 
placeholder_param_tgene_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

#define FCGI_stderr   stderr
#define FCGI_stdout   stdout
#define logstream   stderr

Function Documentation

void delete_placeholder ( placeholder_param_t **  placeholder)

delete a placeholder

Parameters
[in,out]placeholderaddress of the placeholder pointer

Referenced by delete_placeholderlist().

void delete_placeholderlist ( placeholderlist_param_t **  list)

delete placeholder list

Parameters
[in,out]listaddress of the placeholder list pointer

References delete_placeholder(), and placeholder_param::next.

Referenced by delete_metadata().

placeholder_param_t* gene_placeholder ( box_param_t box,
Byte8_t  origID 
)

generate a placeholder of a box

Parameters
[in]boxbox pointer
[in]origIDmetadata-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().

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().

void insert_placeholder_into_list ( placeholder_param_t phld,
placeholderlist_param_t phldlist 
)
void print_allplaceholder ( placeholderlist_param_t list)

print all placeholder parameters

Parameters
[in]listplaceholder list pointer

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

Referenced by print_metadata().

void print_placeholder ( placeholder_param_t phld)