Maestro Audio Framework v 1.7
NXP Semiconductors
Loading...
Searching...
No Matches
ccidec.h File Reference

This file contains the CCI header information. More...

#include "streamer.h"
#include "decoder.h"
#include "codec_interface_public_api.h"
#include "cci_metadata.h"

Data Structures

struct  CCIDecInfo
 Common codec interface information. More...
 
struct  decoder_callback_FunctionTable_t
 This structure is used by the decoder to register the callback APIs. More...
 

Macros

#define NUM_OF_PING_PONG_BUFFER   2
 

Typedefs

typedef int pfnReadCallback(int StreamNo, unsigned char *pAlgorithmBuffer, int Size, int UpdateTail, void *UserData)
 Declares pfnReadCallback as a ptr to a function that Read data from the input stream.
 
typedef int pfnSeekCallback(int StreamNo, int offset, int position, void *UserData)
 Declares pfnSeekCallback as a pointer to a function that seek the input stream.
 
typedef int pfnFtellCallback(int StreamNo, void *UserData)
 Declares pfnFtellCallback as a pointer to a function that gives current position of the input stream.
 

Functions

uint8_t ccidec_sink_pad_activation_handler (StreamPad *pad, uint8_t active)
 ccidec_sink_pad_activation_handler
 
uint8_t ccidec_sink_pad_event_handler (StreamPad *pad, StreamEvent *event)
 ccidec_sink_pad_event_handler
 
uint8_t ccidec_src_pad_event_handler (StreamPad *pad, StreamEvent *event)
 ccidec_src_pad_event_handler
 
uint8_t ccidec_src_pad_query_handler (StreamPad *pad, StreamQuery *query)
 ccidec_src_pad_query_handler
 
int32_t ccidec_sink_pad_process_handler (StreamPad *pad)
 Process handler for the CCI decoder.
 

Function Documentation

◆ ccidec_sink_pad_activation_handler()

uint8_t ccidec_sink_pad_activation_handler ( StreamPad * pad,
uint8_t active )

This function activates the sink pad and allocates memory for the cci decoder structure and initializes this structure. Activates or deactivates the sink pad for incoming data.

Parameters
padpad handle
activeboolean o activate/disactivate pad
Returns
pad error return

◆ ccidec_sink_pad_event_handler()

uint8_t ccidec_sink_pad_event_handler ( StreamPad * pad,
StreamEvent * event )

This function handles the pipeline events for the cci decoder. These events are downstream events and all events will be pushed to the peer pad.

Parameters
padpad handle
eventevent enumeration
Returns
pad error return

◆ ccidec_src_pad_event_handler()

uint8_t ccidec_src_pad_event_handler ( StreamPad * pad,
StreamEvent * event )

This function handles the src events for the cci decoder. These events are upstream events and all events will be pushed to the peer pad.

Parameters
padpad handle
eventevent enumeration
Returns
pad error return

◆ ccidec_src_pad_query_handler()

uint8_t ccidec_src_pad_query_handler ( StreamPad * pad,
StreamQuery * query )

This function handles the src queries for the cci decoder.

Parameters
padpad handle
queryevent enumeration
Returns
pad error return

◆ ccidec_sink_pad_process_handler()

int32_t ccidec_sink_pad_process_handler ( StreamPad * pad)

Used in pull mode, the filesrc process handler should be NULL so this function will be called instead. This function will call the CCI functions to initialize and decode the file. The CCI callback will be used to pull data from the filesrc when needed.

Parameters
padpad handle
Returns
pad error return