cuikplay.h File Reference

Introduction

Definition of the control structure shared betweeen cuikplay and the interface callbacks.

Definition in file cuikplay.h.

Data Structures

struct  TCuikPlayControl
 Definition of the cuikplay control structure. More...
 

Macros

#define GET_TIME(t)   {struct timespec tp; clock_gettime(CLOCK_REALTIME,&tp); t=((double)tp.tv_sec+(double)tp.tv_nsec/1000000000.0);}
 Time in seconds. More...
 
#define PLAYING   0
 One of the modes of the player. More...
 
#define PAUSED   1
 One of the modes of the player. More...
 
#define DEFAULT_TIME_DELAY   0.25
 Default time delay. More...
 

Macro Definition Documentation

◆ GET_TIME

#define GET_TIME (   t)    {struct timespec tp; clock_gettime(CLOCK_REALTIME,&tp); t=((double)tp.tv_sec+(double)tp.tv_nsec/1000000000.0);}

Stores the time in seconds in the given variable (a double variable).

Definition at line 36 of file cuikplay.h.

◆ PLAYING

#define PLAYING   0

The frames are displayed in order and at the required speed.

Definition at line 45 of file cuikplay.h.

◆ PAUSED

#define PAUSED   1

No frames are displayed.

Definition at line 52 of file cuikplay.h.

◆ DEFAULT_TIME_DELAY

#define DEFAULT_TIME_DELAY   0.25

If the time between frames is not given this value is used.

Definition at line 59 of file cuikplay.h.