IndexFile Class Reference

#include <indexfile.h>

Collaboration diagram for IndexFile:

Collaboration graph
[legend]

Public Member Functions

 IndexFile (MWindow *mwindow)
 IndexFile (MWindow *mwindow, Asset *asset)
 ~IndexFile ()
int open_index (Asset *asset)
int open_index (MWindow *mwindow, Asset *asset)
int create_index (Asset *asset, MainProgressBar *progress)
int create_index (MWindow *mwindow, Asset *asset, MainProgressBar *progress)
int interrupt_index ()
void update_edl_asset ()
int redraw_edits (int force)
int draw_index (ResourcePixmap *pixmap, Edit *edit, int x, int w)
int close_index ()
int remove_index ()
int read_info (Asset *test_asset=0)
int write_info ()

Static Public Member Functions

static void delete_index (Preferences *preferences, Asset *asset)
static int get_index_filename (char *source_filename, char *index_directory, char *index_filename, char *input_filename)

Data Fields

MWindowmwindow
char index_filename [BCTEXTLEN]
char source_filename [BCTEXTLEN]
Assetasset
Timerredraw_timer

Private Member Functions

void update_mainasset ()
int open_file ()
int open_source (File *source)
int64_t get_required_scale (File *source)

Private Attributes

FILE * file
int64_t file_length
int interrupt_flag

Detailed Description

Definition at line 16 of file indexfile.h.


Constructor & Destructor Documentation

IndexFile::IndexFile ( MWindow mwindow  ) 

Definition at line 31 of file indexfile.C.

References file, interrupt_flag, and redraw_timer.

IndexFile::IndexFile ( MWindow mwindow,
Asset asset 
)

Definition at line 41 of file indexfile.C.

References file, interrupt_flag, and redraw_timer.

IndexFile::~IndexFile (  ) 

Definition at line 51 of file indexfile.C.

References redraw_timer.


Member Function Documentation

int IndexFile::open_index ( Asset asset  ) 

int IndexFile::open_index ( MWindow mwindow,
Asset asset 
)

Definition at line 90 of file indexfile.C.

References open_index().

Here is the call graph for this function:

int IndexFile::create_index ( Asset asset,
MainProgressBar progress 
)

int IndexFile::create_index ( MWindow mwindow,
Asset asset,
MainProgressBar progress 
)

Definition at line 368 of file indexfile.C.

References create_index().

Here is the call graph for this function:

int IndexFile::interrupt_index (  ) 

Definition at line 232 of file indexfile.C.

References interrupt_flag.

Referenced by ThreadIndexer::interrupt_build(), and MainIndexes::interrupt_build().

void IndexFile::delete_index ( Preferences preferences,
Asset asset 
) [static]

int IndexFile::get_index_filename ( char *  source_filename,
char *  index_directory,
char *  index_filename,
char *  input_filename 
) [static]

void IndexFile::update_edl_asset (  ) 

int IndexFile::redraw_edits ( int  force  ) 

int IndexFile::draw_index ( ResourcePixmap pixmap,
Edit edit,
int  x,
int  w 
)

int IndexFile::close_index (  ) 

int IndexFile::remove_index (  ) 

Definition at line 584 of file indexfile.C.

References asset, close_index(), index_filename, and Asset::index_status.

Here is the call graph for this function:

int IndexFile::read_info ( Asset test_asset = 0  ) 

Definition at line 593 of file indexfile.C.

References asset, file, Asset::format, fread(), Asset::index_start, Asset::index_status, and Asset::read().

Referenced by open_file(), and open_index().

Here is the call graph for this function:

int IndexFile::write_info (  ) 

void IndexFile::update_mainasset (  )  [private]

int IndexFile::open_file (  )  [private]

int IndexFile::open_source ( File source  )  [private]

Definition at line 157 of file indexfile.C.

References asset, FileSystem::get_size(), Asset::index_bytes, mwindow, File::open_file(), Asset::path, and MWindow::preferences.

Referenced by create_index().

Here is the call graph for this function:

int64_t IndexFile::get_required_scale ( File source  )  [private]

Definition at line 178 of file indexfile.C.

References asset, Asset::channels, File::get_audio_length(), Preferences::index_size, mwindow, and MWindow::preferences.

Referenced by create_index().

Here is the call graph for this function:


Field Documentation

char IndexFile::index_filename[BCTEXTLEN]

Definition at line 42 of file indexfile.h.

Referenced by create_index(), delete_index(), open_file(), and remove_index().

char IndexFile::source_filename[BCTEXTLEN]

Definition at line 42 of file indexfile.h.

Referenced by create_index(), delete_index(), and open_file().

Definition at line 44 of file indexfile.h.

Referenced by create_index(), IndexFile(), redraw_edits(), and ~IndexFile().

FILE* IndexFile::file [private]

Definition at line 52 of file indexfile.h.

Referenced by close_index(), draw_index(), IndexFile(), open_file(), and read_info().

int64_t IndexFile::file_length [private]

Definition at line 53 of file indexfile.h.

Referenced by draw_index(), and open_file().

Definition at line 54 of file indexfile.h.

Referenced by create_index(), IndexFile(), and interrupt_index().


The documentation for this class was generated from the following files:

Generated on Mon Apr 28 14:28:08 2008 for Cinelerra by  doxygen 1.5.5