#include "libzmpeg3.h" ztitle_t:: title_t(zmpeg3_t *zsrc, char *fpath) { fs = new fs_t(zsrc, fpath); src = zsrc; } ztitle_t:: title_t(zmpeg3_t *zsrc) { fs = new fs_t(*zsrc->fs); src = zsrc; } ztitle_t:: ~title_t() { delete fs; if( cell_table_allocation ) delete [] cell_table; } ztitle_t:: title_t(ztitle_t &title) { src = title.src; fs = new fs_t(*title.fs); total_bytes = title.total_bytes; start_byte = title.start_byte; end_byte = title.end_byte; if( title.cell_table_size && title.cell_table ) { cell_table_allocation = title.cell_table_allocation; cell_table = new cell_t[cell_table_allocation]; cell_table_size = title.cell_table_size; for( int i=0; ipath, start_byte, end_byte, cell_table_size); for( int i=0; icell_no = cell_no; cell->title_start = title_start; cell->title_end = title_end; cell->program_start = program_start; cell->program_end = program_end; cell->cell_time = -1.; cell->discontinuity = discontinuity; ++cell_table_size; } int ztitle_t:: print_cells(FILE *output) { if( cell_table ) { for( int i=0; iprogram_start, cell->program_end, cell->title_start, cell->title_end); } } return 0; }