OpenJPEG  2.5.0
Data Structures | Typedefs | Functions
function_list.h File Reference

Implementation of a list of procedures. More...

Go to the source code of this file.

Data Structures

struct  opj_procedure_list
 A list of procedures. More...
 

Typedefs

typedef void(* opj_procedure) (void)
 declare a function pointer More...
 
typedef struct opj_procedure_list opj_procedure_list_t
 A list of procedures. More...
 

Functions

opj_procedure_list_topj_procedure_list_create (void)
 Creates a validation list. More...
 
void opj_procedure_list_destroy (opj_procedure_list_t *p_list)
 Destroys a validation list. More...
 
OPJ_BOOL opj_procedure_list_add_procedure (opj_procedure_list_t *p_validation_list, opj_procedure p_procedure, opj_event_mgr_t *p_manager)
 Adds a new validation procedure. More...
 
OPJ_UINT32 opj_procedure_list_get_nb_procedures (opj_procedure_list_t *p_validation_list)
 Gets the number of validation procedures. More...
 
opj_procedureopj_procedure_list_get_first_procedure (opj_procedure_list_t *p_validation_list)
 Gets the pointer on the first validation procedure. More...
 
void opj_procedure_list_clear (opj_procedure_list_t *p_validation_list)
 Clears the list of validation procedures. More...
 

Detailed Description

Implementation of a list of procedures.

The functions in validation.c aims to have access to a list of procedures.

Typedef Documentation

◆ opj_procedure

typedef void(* opj_procedure) (void)

declare a function pointer

◆ opj_procedure_list_t

A list of procedures.

Function Documentation

◆ opj_procedure_list_add_procedure()

OPJ_BOOL opj_procedure_list_add_procedure ( opj_procedure_list_t p_validation_list,
opj_procedure  p_procedure,
opj_event_mgr_t p_manager 
)

◆ opj_procedure_list_clear()

void opj_procedure_list_clear ( opj_procedure_list_t p_validation_list)

Clears the list of validation procedures.

Parameters
p_validation_listthe list of procedure to clear.

References opj_procedure_list::m_nb_procedures.

Referenced by opj_j2k_exec(), and opj_jp2_exec().

◆ opj_procedure_list_create()

opj_procedure_list_t* opj_procedure_list_create ( void  )

◆ opj_procedure_list_destroy()

void opj_procedure_list_destroy ( opj_procedure_list_t p_list)

Destroys a validation list.

Parameters
p_listthe list to destroy.

References opj_procedure_list::m_procedures, and opj_free().

Referenced by opj_j2k_destroy(), and opj_jp2_destroy().

◆ opj_procedure_list_get_first_procedure()

opj_procedure* opj_procedure_list_get_first_procedure ( opj_procedure_list_t p_validation_list)

Gets the pointer on the first validation procedure.

This function is similar to the C++ iterator class to iterate through all the procedures inside the validation list. the caller does not take ownership of the pointer.

Parameters
p_validation_listthe list of procedure to get the first procedure from.
Returns
a pointer to the first procedure.

References opj_procedure_list::m_procedures.

Referenced by opj_j2k_exec(), and opj_jp2_exec().

◆ opj_procedure_list_get_nb_procedures()

OPJ_UINT32 opj_procedure_list_get_nb_procedures ( opj_procedure_list_t p_validation_list)

Gets the number of validation procedures.

Parameters
p_validation_listthe list of procedure to modify.
Returns
the number of validation procedures.

References opj_procedure_list::m_nb_procedures.

Referenced by opj_j2k_exec(), and opj_jp2_exec().