MediaProcessors
Functions | Variables
proc_if.c File Reference
#include "proc_if.h"
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <libmediaprocsutils/log.h>
#include <libmediaprocsutils/stat_codes.h>
#include <libmediaprocsutils/check_utils.h>
#include <libmediaprocsutils/mem_utils.h>
Include dependency graph for proc_if.c:

Go to the source code of this file.

Functions

proc_frame_ctx_tproc_frame_ctx_allocate ()
 
proc_frame_ctx_tproc_frame_ctx_dup (const proc_frame_ctx_t *proc_frame_ctx_arg)
 
void proc_frame_ctx_release (proc_frame_ctx_t **ref_proc_frame_ctx)
 
proc_if_tproc_if_allocate ()
 
proc_if_tproc_if_dup (const proc_if_t *proc_if_arg)
 
int proc_if_cmp (const proc_if_t *proc_if1, const proc_if_t *proc_if2)
 
void proc_if_release (proc_if_t **ref_proc_if)
 

Variables

const proc_sample_fmt_lut_t proc_sample_fmt_lut []
 

Detailed Description

Author
Rafael Antoniello

Definition in file proc_if.c.

Function Documentation

proc_frame_ctx_t* proc_frame_ctx_allocate ( )

Allocate an uninitialized input/ouput processor frame structure.

Returns
Pointer to the newly allocated input/output processor frame structure; NULL if fails.

Definition at line 47 of file proc_if.c.

proc_frame_ctx_t* proc_frame_ctx_dup ( const proc_frame_ctx_t proc_frame_ctx_arg)

Duplicate an input/output processor frame structure.

Parameters
proc_frame_ctx_argPointer to the input/output processor frame structure to be duplicated.
Returns
Pointer to the new allocated replica of the given input structure; NULL if fails.

Definition at line 52 of file proc_if.c.

void proc_frame_ctx_release ( proc_frame_ctx_t **  ref_proc_frame_ctx)

Release an input/output processor frame structure.

Parameters
ref_proc_frame_ctxReference to the pointer to the input/output processor frame structure to be released. Pointer is set to NULL on return.

Definition at line 125 of file proc_if.c.

proc_if_t* proc_if_allocate ( )

Allocate an uninitialized processor interface context structure.

Returns
Pointer to the newly allocated processor interface context structure; NULL if fails.

Definition at line 142 of file proc_if.c.

int proc_if_cmp ( const proc_if_t proc_if1,
const proc_if_t proc_if2 
)

Compares if given processor interfaces are the equal.

Parameters
proc_if1Pointer to the first processor interface context structure to be compared.
proc_if2Pointer to the second processor interface context structure to be compared.
Returns
Value 0 if given contexts are equal, otherwise non-zero value is returned.

Definition at line 187 of file proc_if.c.

proc_if_t* proc_if_dup ( const proc_if_t proc_if_arg)

Duplicate a processor interface context structure.

Parameters
proc_if_argPointer to the processor interface context structure to be duplicated.
Returns
Pointer to a new allocated replica of the given input structure; NULL if fails.

Definition at line 147 of file proc_if.c.

void proc_if_release ( proc_if_t **  ref_proc_if)

Release a processor interface context structure.

Parameters
Referenceto the pointer to the processor interface context structure to be released. Pointer is set to NULL on return.

Definition at line 232 of file proc_if.c.

Variable Documentation

const proc_sample_fmt_lut_t proc_sample_fmt_lut[]
Initial value:
=
{
{PROC_IF_FMT_UNDEF, "Undefined format"},
{PROC_IF_FMT_YUV420P, "Planar YUV 4:2:0 with 12bpp"},
{PROC_IF_FMT_S16, "Interleaved signed 16 bits"},
{PROC_IF_FMT_S16P, "Planar signed 16 bits"}
}
Planar YUV 4:2:0 with 12bpp (video)
Definition: proc_if.h:55
Planar signed 16 bits (typically audio)
Definition: proc_if.h:58
Undefined format.
Definition: proc_if.h:54
Interleaved signed 16 bits (typically audio)
Definition: proc_if.h:57

Processor samples format look-up table.

Definition at line 38 of file proc_if.c.