IUF-SDK-3
Interventional Ultrasound Library
iufFrame.c File Reference
#include <string.h>
#include <iuf.h>
#include <iufFramePrivate.h>

Data Structures

struct  IufFrame
 

Functions

iufr_t iufFrameCreate (char *label, int dataIndex, float time)
 Creates an IufFrame. More...
 
int iufFrameDelete (iufr_t frame)
 Delete an IufFrame. More...
 
int iufFrameCompare (iufr_t reference, iufr_t actual)
 Compare two IufFrame object with each other. More...
 
float iufFrameGetTime (iufr_t frame)
 Gets the timestamp in seconds of a frame. More...
 
char * iufFrameGetPatternListLabel (iufr_t frame)
 Gets the patternListLabel of a frame. More...
 
int iufFrameGetDataIndex (iufr_t frame)
 Gets the dataIndex of a frame. More...
 
int iufFrameSave (iufr_t frame, hid_t handle)
 
iufr_t iufFrameLoad (hid_t handle)
 

Data Structure Documentation

◆ IufFrame

struct IufFrame
Data Fields
int dataIndex
char * patternListLabel
float time

Function Documentation

◆ iufFrameCompare()

int iufFrameCompare ( iufr_t  reference,
iufr_t  actual 
)

Compare two IufFrame object with each other.

Returns
Returns IUF_TRUE when the frames are equal and IUF_FALSE otherwise.
Parameters
referenceThe IufFrame to compare to
actualThe IufFrame to compare with

◆ iufFrameCreate()

iufr_t iufFrameCreate ( char *  label,
int  dataIndex,
float  time 
)

Creates an IufFrame.

Returns
Returns an IufFrame or IUF_INVALID in case of an error.
Parameters
labelThe patternList label this frame refers to, e.g. "bmode"
dataIndexThe offset in the data (frame number?)
timeThe timestamp in seconds since the start of the acquisition

◆ iufFrameDelete()

int iufFrameDelete ( iufr_t  frame)

Delete an IufFrame.

Returns
Returns IUF_E_OK when successful and IUF_ERR_VALUE in case of an error.
Parameters
frameThe IufFrame to be deleted

◆ iufFrameGetDataIndex()

int iufFrameGetDataIndex ( iufr_t  frame)

Gets the dataIndex of a frame.

Returns
Returns the dataIndex or -1 in case of an error.
Parameters
frameThe IufFrame of interest

◆ iufFrameGetPatternListLabel()

char* iufFrameGetPatternListLabel ( iufr_t  frame)

Gets the patternListLabel of a frame.

Returns
Returns the label or NULL in case of an error.
Parameters
frameThe IufFrame of interest

◆ iufFrameGetTime()

float iufFrameGetTime ( iufr_t  frame)

Gets the timestamp in seconds of a frame.

Returns
Returns the timestamp in seconds or -1 in case of an error.

◆ iufFrameLoad()

iufr_t iufFrameLoad ( hid_t  handle)

◆ iufFrameSave()

int iufFrameSave ( iufr_t  frame,
hid_t  handle 
)