Ejemplo n.º 1
0
QuickTimeParser::QuickTimeParser() {
	_beginOffset = 0;
	_fd = 0;
	_scaleFactorX = 1;
	_scaleFactorY = 1;
	_resFork = new MacResManager();
	_disposeFileHandle = DisposeAfterUse::YES;

	initParseTable();
}
Ejemplo n.º 2
0
QuickTimeDecoder::QuickTimeDecoder() {
	_audStream = NULL;
	_beginOffset = 0;
	_curFrame = -1;
	_startTime = _nextFrameStartTime = 0;
	_audHandle = Audio::SoundHandle();
	_numStreams = 0;
	_fd = 0;
	_scaledSurface = 0;
	_scaleFactorX = 1;
	_scaleFactorY = 1;
	_dirtyPalette = false;
	_resFork = new Common::MacResManager();
	_palette = 0;

	initParseTable();
}
Ejemplo n.º 3
0
int main() {
	fp = fopen("input.txt", "r");
	fp_out = fopen("Tokens.txt", "w");
	fp_out2 = fopen("Text_Lexemes.txt", "w");
	v = (void*) malloc((401) * sizeof(char));
	c = fread(v, 1, 400, fp);
	for (i1 = 0; i1 < 400; i1++)
		buff1[i1] = '\0';
	strcpy(buff1, v);

	initParseTable();
	initialize();
	while (nextToken() == 0) {
		i++;
	}

	fclose(fp);
	fclose(fp_out);
	fclose(fp_out2);
}