Video Core Feature Interface Reference Manual  jpl-r3.16.2
vftr_dump.h File Reference

Core feature-lib for dumping messages. More...

#include <stdio.h>
#include <time.h>
#include "mpi_base_types.h"
#include "vftr_dump_define.h"

Macros

#define FORCE_INLINE   static inline __attribute__((always_inline))
 
#define VFTR_initDump(args)
 Initialize dump system. More...
 

Functions

INT32 _VFTR_initDump (char *args)
 Initialize dump system for debugging. More...
 
VOID VFTR_exitDump ()
 
INT32 VFTR_dump (const VOID *buf, UINT32 len, UINT32 flag, TIMESPEC_S timestamp)
 Dump a data structure with timestamps. More...
 
INT32 VFTR_dumpWithJiffies (const VOID *buf, UINT32 len, UINT32 flag, UINT32 jiffies)
 A jiffies version of VFTR_dump. More...
 

Variables

int vftr_dump_en
 

Detailed Description

Core feature-lib for dumping messages.

Macro Definition Documentation

#define VFTR_initDump (   args)
Value:
do { \
if (signal(SIGPIPE, SIG_IGN) == SIG_ERR) { \
fprintf(stderr, "failed to ignore signal SIGPIPE !\n"); \
}; \
} while (0)
INT32 _VFTR_initDump(char *args)
Initialize dump system for debugging.
Definition: vftr_dump.c:208

Initialize dump system.

Parameters
[in]argsGenerally use NULL as input. Ignore SIGPIPE to avoid program stop after pipe destoryed.

Function Documentation

INT32 _VFTR_initDump ( char *  args)

Initialize dump system for debugging.

Parameters
[in]argsGenerally use NULL as input.
INT32 VFTR_dump ( const VOID buf,
UINT32  len,
UINT32  flag,
TIMESPEC_S  timestamp 
)

Dump a data structure with timestamps.

Parameters
[in]bufData to be sent
[in]lenLength of data
[in]timestampBetter to be a wall clock which matches the OSD timestamp shown in video clips
Returns
0 if success, otherwise, a negative value returns
See also
TIMESPEC_S
INT32 VFTR_dumpWithJiffies ( const VOID buf,
UINT32  len,
UINT32  flag,
UINT32  jiffies 
)

A jiffies version of VFTR_dump.

Parameters
[in]bufData to be sent
[in]lenLength of data
[in]jiffiesYou can use U32 timestamp in MPI_IVA_OBJ_LIST_S
Returns
0 if success, otherwise, a negative value returns
See also
VFTR_dump
MPI_IVA_OBJ_LIST_S

Variable Documentation

int vftr_dump_en

a global flag for enableing dump system