示例#1
0
 void SendAudioFrame(const unsigned char* audbuf, unsigned framesize)
 {
     CheckBegin();
     
     //fprintf(stderr, "Writing 01wb of %u bytes\n", framesize);
     
     const unsigned char header[] = { s4("01wb"), u32(framesize) };
     FlushWrite(avifp, header, sizeof(header));
     FlushWrite(avifp, audbuf, framesize);
 }
示例#2
0
 void SendVideoFrame(const unsigned char* vidbuf, unsigned framesize)
 {
     CheckBegin();
     
     //fprintf(stderr, "Writing 00dc of %u bytes\n", framesize);
     
     const unsigned char header[] = { s4("00dc"), u32(framesize) };
     FlushWrite(avifp, header, sizeof(header));
     FlushWrite(avifp, vidbuf, framesize);
 }
int TestIterators(hash_table* hash_info) {
	iterator it;
	char** i;
	for ( it = SetToEnd(hash_info); !CheckBegin(it) ; it = Back(it) )  {
		i = Value(it);
	}

	for ( it = SetToBegin(hash_info); !CheckEnd(it) ; it = Next(it) )  {
		i = Value(it);
	}
	return 0;
}