1
0

CVbriHeader.h 989 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. #ifndef _VBRIHEADER_H_
  2. #define _VBRIHEADER_H_
  3. class CVbriHeader{
  4. public:
  5. CVbriHeader();
  6. ~CVbriHeader();
  7. int readVbriHeader(unsigned char *Hbuffer);
  8. int seekPointByTime(float EntryTimeInSeconds);
  9. #if 0
  10. float seekTimeByPoint(unsigned int EntryPointInBytes);
  11. int seekPointByPercent(float percent);
  12. #endif
  13. int getNumFrames() { return VbriStreamFrames; }
  14. int getNumMS();
  15. int getEncoderDelay() { return encoderDelay; }
  16. int getBytes() { return VbriStreamBytes; }
  17. int h_id;
  18. private:
  19. int getSampleRate(unsigned char * buffer);
  20. int readFromBuffer ( unsigned char * HBuffer, int length );
  21. int SampleRate;
  22. unsigned int VbriStreamBytes;
  23. unsigned int VbriStreamFrames;
  24. unsigned int VbriTableSize;
  25. unsigned int VbriEntryFrames;
  26. int * VbriTable;
  27. int encoderDelay;
  28. int position ;
  29. enum offset{
  30. BYTE = 1,
  31. WORD = 2,
  32. DWORD = 4
  33. };
  34. };
  35. #endif//_VBRIHEADER_H_