liblives  2.4.1-svn
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
Classes | Namespaces | Macros | Typedefs | Enumerations | Functions
liblives.hpp File Reference

Header file for liblives. More...

#include <vector>
#include <list>
#include <map>
#include <inttypes.h>
#include <string>

Go to the source code of this file.

Classes

class  lives::livesString
 class "livesString". More...
 
struct  lives::modeChangedInfo
 Struct passed to modeChanged callback. More...
 
struct  lives::appQuitInfo
 Struct passed to appQuit callback. More...
 
class  lives::livesApp
 class "livesApp". More...
 
class  lives::clip
 class "clip". More...
 
class  lives::set
 class "set". More...
 
class  lives::player
 class "player". More...
 
class  lives::effectKey
 class "effectKey". More...
 
class  lives::effectKeyMap
 class "effectKeyMap". More...
 
class  lives::effect
 class "effect". More...
 
class  lives::block
 class "block". More...
 
class  lives::multitrack
 class "multitrack". More...
 

Namespaces

 lives
 lives namespace.
 
 lives::prefs
 Preferences.
 

Macros

#define LIVES_VERSION_MAJOR   2
 Version number major.
 
#define LIVES_VERSION_MINOR   4
 Version number minor.
 
#define LIVES_VERSION_MICRO   1
 Version number micro.
 
#define LIVES_CHECK_VERSION(major, minor, micro)   (major > LIVES_VERSION_MAJOR || (major == LIVES_VERSION_MAJOR && (minor > LIVES_VERSION_MINOR || (minor == LIVES_VERSION_MINOR && micro >= LIVES_VERSION_MICRO))))
 Macro to check if livesApp version is >= major.minor.micro.
 
#define LIVES_CHAR_ENCODING_DEFAULT   LIVES_CHAR_ENCODING_UTF8
 Default character encoding.
 

Typedefs

typedef unsigned long ulong
 typedef
 
typedef class livesApp lives::livesApp
 typedef
 
typedef class set lives::set
 typedef
 
typedef class clip lives::clip
 typedef
 
typedef class effectKey lives::effectKey
 typedef
 
typedef class effectKeyMap lives::effectKeyMap
 typedef
 
typedef class effect lives::effect
 typedef
 
typedef class player lives::player
 typedef
 
typedef class multitrack lives::multitrack
 typedef
 
typedef class block lives::block
 typedef
 
typedef class livesString lives::livesString
 typedef
 
typedef list< livesString > lives::livesStringList
 typedef
 
typedef bool(* lives::modeChanged_callback_f )(livesApp *, modeChangedInfo *, void *)
 Type of callback function for LIVES_CALLBACK_MODE_CHANGED. More...
 
typedef bool(* lives::appQuit_callback_f )(livesApp *, appQuitInfo *, void *)
 Type of callback function for LIVES_CALLBACK_APP_QUIT. More...
 
typedef bool(* lives::objectDestroyed_callback_f )(livesApp *, void *)
 Type of callback function for LIVES_CALLBACK_OBJECT_DESTROYED. More...
 

Enumerations

enum  lives_filechooser_t { LIVES_FILE_CHOOSER_VIDEO_AUDIO, LIVES_FILE_CHOOSER_AUDIO_ONLY }
 Filechooser hinting types. More...
 
enum  lives_interface_mode_t { LIVES_INTERFACE_MODE_INVALID =-1, LIVES_INTERFACE_MODE_CLIPEDIT, LIVES_INTERFACE_MODE_MULTITRACK }
 LiVES operation mode. More...
 
enum  lives_status_t {
  LIVES_STATUS_INVALID =-1, LIVES_STATUS_NOTREADY, LIVES_STATUS_READY, LIVES_STATUS_PLAYING,
  LIVES_STATUS_PROCESSING, LIVES_STATUS_PREVIEW
}
 LiVES operational status. More...
 
enum  lives_endian_t { LIVES_LITTLEENDIAN, LIVES_BIGENDIAN }
 Endian values.
 
enum  lives_callback_t {
  LIVES_CALLBACK_FRAME_SYNCH = 1, LIVES_CALLBACK_PLAYBACK_STARTED = 2, LIVES_CALLBACK_PLAYBACK_STOPPED = 3, LIVES_CALLBACK_PLAYBACK_STOPPED_RD = 4,
  LIVES_CALLBACK_RECORD_STARTED = 32, LIVES_CALLBACK_RECORD_STOPPED = 33, LIVES_CALLBACK_APP_QUIT = 64, LIVES_CALLBACK_CLIP_OPENED = 128,
  LIVES_CALLBACK_CLIP_CLOSED = 129, LIVES_CALLBACK_CLIPSET_OPENED = 256, LIVES_CALLBACK_CLIPSET_SAVED = 257, LIVES_CALLBACK_MODE_CHANGED = 4096,
  LIVES_CALLBACK_OBJECT_DESTROYED = 16384
}
 Callback types. More...
 
enum  lives_char_encoding_t { LIVES_CHAR_ENCODING_UTF8, LIVES_CHAR_ENCODING_LOCAL8BIT, LIVES_CHAR_ENCODING_FILESYSTEM }
 Character encoding types. More...
 
enum  lives_dialog_response_t {
  LIVES_DIALOG_RESPONSE_INVALID =-1, LIVES_DIALOG_RESPONSE_NONE =0, LIVES_DIALOG_RESPONSE_OK, LIVES_DIALOG_RESPONSE_RETRY,
  LIVES_DIALOG_RESPONSE_ABORT, LIVES_DIALOG_RESPONSE_RESET, LIVES_DIALOG_RESPONSE_SHOW_DETAILS, LIVES_DIALOG_RESPONSE_CANCEL,
  LIVES_DIALOG_RESPONSE_ACCEPT, LIVES_DIALOG_RESPONSE_YES, LIVES_DIALOG_RESPONSE_NO
}
 Dialog response values. More...
 
enum  lives_audio_source_t { LIVES_AUDIO_SOURCE_UNKNOWN, LIVES_AUDIO_SOURCE_INTERNAL, LIVES_AUDIO_SOURCE_EXTERNAL }
 Audio sources. More...
 
enum  lives_audio_player_t {
  LIVES_AUDIO_PLAYER_UNKNOWN, LIVES_AUDIO_PLAYER_PULSE, LIVES_AUDIO_PLAYER_JACK, LIVES_AUDIO_PLAYER_SOX,
  LIVES_AUDIO_PLAYER_MPLAYER, LIVES_AUDIO_PLAYER_MPLAYER2
}
 Audio players. More...
 
enum  lives_insert_mode_t { LIVES_INSERT_MODE_NORMAL }
 Multitrack insert modes.
 
enum  lives_gravity_t { LIVES_GRAVITY_NORMAL, LIVES_GRAVITY_LEFT, LIVES_GRAVITY_RIGHT }
 Multitrack gravity. More...
 
enum  lives_loop_mode_t { LIVES_LOOP_MODE_NONE =0, LIVES_LOOP_MODE_CONTINUOUS =1, LIVES_LOOP_MODE_FIT_AUDIO =2 }
 Player looping modes (bitmap) More...
 

Functions

livesString lives::prefs::currentVideoLoadDir (const livesApp &lives)
 
livesString lives::prefs::currentAudioDir (const livesApp &lives)
 
livesString lives::prefs::tmpDir (const livesApp &lives)
 Despite the name, this is the working directory for the LiVES application. More...
 
lives_audio_source_t lives::prefs::audioSource (const livesApp &lives)
 
bool lives::prefs::setAudioSource (const livesApp &lives, lives_audio_source_t asrc)
 Set the audio source. More...
 
lives_audio_player_t lives::prefs::audioPlayer (const livesApp &lives)
 
int lives::prefs::audioPlayerRate (const livesApp &lives)
 Returns the audio rate for the player. More...
 
bool lives::prefs::isRealtimeAudioPlayer (lives_audio_player_t ptype)
 
int lives::prefs::rteKeysVirtual (const livesApp &lives)
 
double lives::prefs::maxFPS (const livesApp &lives)
 
bool lives::prefs::audioFollowsVideoChanges (const livesApp &lives)
 
bool lives::prefs::audioFollowsFPSChanges (const livesApp &lives)
 
bool lives::prefs::setAudioFollowsFPSChanges (const livesApp &lives, bool setting)
 
bool lives::prefs::setAudioFollowsVideoChanges (const livesApp &lives, bool setting)
 
bool lives::prefs::sepWinSticky (const livesApp &lives)
 
bool lives::prefs::setSepWinSticky (const livesApp &lives, bool)
 
bool lives::prefs::mtExitRender (const livesApp &lives)
 
bool lives::prefs::setMtExitRender (const livesApp &lives, bool setting)
 

Detailed Description

Header file for liblives.

Enumeration Type Documentation

Audio players.

Enumerator
LIVES_AUDIO_PLAYER_UNKNOWN 

Unknown / invalid.

LIVES_AUDIO_PLAYER_PULSE 

Audio playback is through PulseAudio.

LIVES_AUDIO_PLAYER_JACK 

Audio playback is thorugh Jack.

LIVES_AUDIO_PLAYER_SOX 

Audio playback is through Sox.

LIVES_AUDIO_PLAYER_MPLAYER 

Audio playback is through mplayer.

LIVES_AUDIO_PLAYER_MPLAYER2 

Audio playback is through mplayer2.

Audio sources.

Enumerator
LIVES_AUDIO_SOURCE_UNKNOWN 

Unknown / invalid.

LIVES_AUDIO_SOURCE_INTERNAL 

Audio source is internal to LiVES.

LIVES_AUDIO_SOURCE_EXTERNAL 

Audio source is external to LiVES.

Callback types.

Enumerator
LIVES_CALLBACK_FRAME_SYNCH 

sent when a frame is displayed

LIVES_CALLBACK_PLAYBACK_STARTED 

sent when a/v playback starts or clip is switched

LIVES_CALLBACK_PLAYBACK_STOPPED 

sent when a/v playback ends

LIVES_CALLBACK_PLAYBACK_STOPPED_RD 

sent when a/v playback ends and there is recorded data for rendering/previewing

LIVES_CALLBACK_RECORD_STARTED 

sent when record starts (TODO)

LIVES_CALLBACK_RECORD_STOPPED 

sent when record stops (TODO)

LIVES_CALLBACK_APP_QUIT 

sent when app quits

LIVES_CALLBACK_CLIP_OPENED 

sent after a clip is opened

LIVES_CALLBACK_CLIP_CLOSED 

sent after a clip is closed

LIVES_CALLBACK_CLIPSET_OPENED 

sent after a clip set is opened

LIVES_CALLBACK_CLIPSET_SAVED 

sent after a clip set is closed

LIVES_CALLBACK_MODE_CHANGED 

sent when interface mode changes

LIVES_CALLBACK_OBJECT_DESTROYED 

sent when livesApp object is deleted

Character encoding types.

Enumerator
LIVES_CHAR_ENCODING_UTF8 

UTF-8 char encoding.

LIVES_CHAR_ENCODING_LOCAL8BIT 

8 bit locale file encoding

LIVES_CHAR_ENCODING_FILESYSTEM 

file system encoding (UTF-8 on windows, local8bit on others)

Dialog response values.

Enumerator
LIVES_DIALOG_RESPONSE_INVALID 

INVALID response.

LIVES_DIALOG_RESPONSE_NONE 

Response not obtained.

LIVES_DIALOG_RESPONSE_OK 

OK button clicked.

LIVES_DIALOG_RESPONSE_RETRY 

Retry button clicked.

LIVES_DIALOG_RESPONSE_ABORT 

Abort button clicked.

LIVES_DIALOG_RESPONSE_RESET 

Reset button clicked.

LIVES_DIALOG_RESPONSE_SHOW_DETAILS 

Show details button clicked.

LIVES_DIALOG_RESPONSE_CANCEL 

Cancel button clicked.

LIVES_DIALOG_RESPONSE_ACCEPT 

Accept button clicked.

LIVES_DIALOG_RESPONSE_YES 

Yes button clicked.

LIVES_DIALOG_RESPONSE_NO 

No button clicked.

Filechooser hinting types.

Enumerator
LIVES_FILE_CHOOSER_VIDEO_AUDIO 

file chooser options for single video or audio file

LIVES_FILE_CHOOSER_AUDIO_ONLY 

file chooser options for single audio file

Multitrack gravity.

Enumerator
LIVES_GRAVITY_NORMAL 

no gravity

LIVES_GRAVITY_LEFT 

inserted blocks gravitate to the left

LIVES_GRAVITY_RIGHT 

inserted blocks gravitate to the right

LiVES operation mode.

Enumerator
LIVES_INTERFACE_MODE_INVALID 

livesApp instance is invalid

LIVES_INTERFACE_MODE_CLIPEDIT 

clip editor mode

LIVES_INTERFACE_MODE_MULTITRACK 

multitrack mode

Player looping modes (bitmap)

Enumerator
LIVES_LOOP_MODE_NONE 

no looping

LIVES_LOOP_MODE_CONTINUOUS 

both video and audio loop continuously

LIVES_LOOP_MODE_FIT_AUDIO 

video keeps looping until audio playback finishes

LiVES operational status.

Enumerator
LIVES_STATUS_INVALID 

livesApp instance is invalid

LIVES_STATUS_NOTREADY 

application is starting up; not ready

LIVES_STATUS_READY 

application is ready for commands

LIVES_STATUS_PLAYING 

application is playing, only player commands will be responded to

LIVES_STATUS_PROCESSING 

application is processing, commands will be ignored

LIVES_STATUS_PREVIEW 

user is previewing an operation, commands will be ignored