#include <indexfile.h>

Definition at line 16 of file indexfile.h.
| IndexFile::IndexFile | ( | MWindow * | mwindow | ) |
| IndexFile::~IndexFile | ( | ) |
| int IndexFile::open_index | ( | Asset * | asset | ) |
Definition at line 57 of file indexfile.C.
References close_index(), Asset::index_status, open_file(), and read_info().
Referenced by MainIndexes::add_next_asset(), create_index(), ResourcePixmap::draw_audio_resource(), ResourcePixmap::draw_data(), MWindow::load_filenames(), open_index(), ThreadIndexer::run(), and MainIndexes::run().

Definition at line 90 of file indexfile.C.
References open_index().

| int IndexFile::create_index | ( | Asset * | asset, | |
| MainProgressBar * | progress | |||
| ) |
Definition at line 240 of file indexfile.C.
References _, BCTEXTLEN, IndexThread::buffer_in, Asset::channels, File::close_file(), close_index(), MWindow::edl, File::get_audio_length(), File::get_index(), get_index_filename(), get_required_scale(), Preferences::index_directory, index_filename, Asset::index_zoom, IndexThread::input_len, IndexThread::input_lock, IndexThread::interrupt_flag, interrupt_flag, IndexThread::last_buffer, Condition::lock(), mwindow, open_index(), open_source(), IndexThread::output_lock, Asset::path, MWindow::preferences, File::read_samples(), redraw_edits(), redraw_timer, File::set_audio_position(), File::set_channel(), EDL::set_index_file(), source_filename, IndexThread::start_build(), IndexThread::stop_build(), TOTAL_BUFFERS, Condition::unlock(), MainProgressBar::update(), Timer::update(), MainProgressBar::update_length(), and MainProgressBar::update_title().
Referenced by create_index(), and MainIndexes::run().

| int IndexFile::create_index | ( | MWindow * | mwindow, | |
| Asset * | asset, | |||
| MainProgressBar * | progress | |||
| ) |
Definition at line 368 of file indexfile.C.
References create_index().

| 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] |
Definition at line 95 of file indexfile.C.
References BCTEXTLEN, get_index_filename(), Preferences::index_directory, index_filename, Asset::path, and source_filename.
Referenced by PackageRenderer::create_output(), Record::open_output_file(), and MenuEffectThread::run().

| int IndexFile::get_index_filename | ( | char * | source_filename, | |
| char * | index_directory, | |||
| char * | index_filename, | |||
| char * | input_filename | |||
| ) | [static] |
Definition at line 206 of file indexfile.C.
References FileSystem::join_names().
Referenced by MainIndexes::add_next_asset(), create_index(), FileMPEG::create_index(), delete_index(), MWindow::load_filenames(), open_file(), MWindow::rebuild_indices(), and AssetEdit::run().

| void IndexFile::update_edl_asset | ( | ) |
| int IndexFile::redraw_edits | ( | int | force | ) |
Definition at line 377 of file indexfile.C.
References asset, MWindowGUI::canvas, TrackCanvas::draw_indexes(), MWindow::edl, Timer::get_scaled_difference(), MWindow::gui, Asset::index_end, BC_WindowBase::lock_window(), mwindow, Asset::old_index_end, redraw_timer, EDL::set_index_file(), BC_WindowBase::unlock_window(), and Timer::update().
Referenced by create_index(), and IndexThread::run().

| int IndexFile::draw_index | ( | ResourcePixmap * | pixmap, | |
| Edit * | edit, | |||
| int | x, | |||
| int | w | |||
| ) |
Definition at line 398 of file indexfile.C.
References _, Edit::asset, asset, Theme::audio_color, ResourcePixmap::canvas, Edit::channel, Asset::channels, BC_WindowBase::draw_line(), MWindow::edl, file, file_length, fread(), Track::from_units(), fseek(), VFrame::get_h(), BC_Theme::get_image(), Asset::get_index_offset(), Asset::get_index_size(), Asset::index_buffer, Asset::index_end, Asset::index_start, Asset::index_status, Asset::index_zoom, EDL::local_session, MAX, MIN, mwindow, ResourcePixmap::pixmap_x, Asset::sample_rate, EDLSession::sample_rate, EDL::session, BC_WindowBase::set_color(), EDLSession::show_titles, Edit::startproject, Edit::startsource, MWindow::theme, Edit::track, LocalSession::view_start, LocalSession::zoom_sample, LocalSession::zoom_track, and LocalSession::zoom_y.
Referenced by ResourcePixmap::draw_audio_resource().

| int IndexFile::close_index | ( | ) |
Definition at line 573 of file indexfile.C.
References fclose(), and file.
Referenced by MainIndexes::add_next_asset(), create_index(), ResourcePixmap::draw_audio_resource(), ResourcePixmap::draw_data(), MWindow::load_filenames(), open_index(), remove_index(), ThreadIndexer::run(), and MainIndexes::run().

| int IndexFile::remove_index | ( | ) |
Definition at line 584 of file indexfile.C.
References asset, close_index(), index_filename, and Asset::index_status.

| 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().

| int IndexFile::write_info | ( | ) |
| void IndexFile::update_mainasset | ( | ) | [private] |
| int IndexFile::open_file | ( | ) | [private] |
Definition at line 107 of file indexfile.C.
References asset, Garbage::delete_object(), fclose(), file, file_length, fopen(), fseek(), ftell(), FileSystem::get_date(), get_index_filename(), FileSystem::get_size(), Asset::index_bytes, Preferences::index_directory, index_filename, mwindow, Asset::path, MWindow::preferences, read_info(), and source_filename.
Referenced by open_index().

| 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().

| 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().

Definition at line 41 of file indexfile.h.
Referenced by create_index(), draw_index(), get_required_scale(), open_file(), open_source(), and redraw_edits().
| 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 43 of file indexfile.h.
Referenced by draw_index(), get_required_scale(), open_file(), open_source(), read_info(), redraw_edits(), and remove_index().
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] |
int IndexFile::interrupt_flag [private] |
Definition at line 54 of file indexfile.h.
Referenced by create_index(), IndexFile(), and interrupt_index().
1.5.5