1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
|
/*************************************************************
* mpgtx an mpeg toolbox *
* by Laurent Alacoque <laureck@users.sourceforge.net> *
* (c) 2001 *
* You may copy, modify and redistribute this *
* source file under the terms of the GNU Public License *
************************************************************/
#ifndef __chunkTab_hh_
#define __chunkTab_hh_
#include "mpeg.hh"
class chunkTab {
public:
chunkTab(int _max = 20);
~chunkTab();
bool AddFile(char* filename);
bool ParseRange(char* range);
bool ParseBoundaries(char* boundaries);
void PrintTab();
void PrintInfos();
bool Nchunks(int n);
chunk** GetChunks(int* n);
protected:
/**
* adds some room to the internal tabs
*/
void MoreRoom(int n);
bool ParseValue(
char* value,
int value_length,
off_t* translation,
float* stranlslation,
bool* time);
/// ordered tab of chunks
chunk** TheTab;
int max;
int current_chunk;
int current_mpeg;
mpeg* current_mpeg_ptr;
mpeg** MpegTab;
// char* current_file;
};
#endif // __chunkTab_hh_
|