Commit afb005a6 authored by schreibfaul1's avatar schreibfaul1

compute fragments of blockpictures

parent 53308e3b
......@@ -5880,14 +5880,11 @@ uint8_t Audio::determineOggCodec(uint8_t* data, uint16_t len) {
}
data += 27;
idx = specialIndexOf(data, "OpusHead", 40);
if(idx >= 0) return CODEC_OPUS;
if(idx >= 0) { return CODEC_OPUS; }
idx = specialIndexOf(data, "fLaC", 40);
if(idx >= 0) return CODEC_FLAC;
if(idx >= 0) { return CODEC_FLAC; }
idx = specialIndexOf(data, "vorbis", 40);
if(idx >= 0) {
log_i("vorbis");
return CODEC_VORBIS;
}
if(idx >= 0) { return CODEC_VORBIS; }
return CODEC_NONE;
}
//-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
This diff is collapsed.
......@@ -230,10 +230,14 @@ uint16_t VORBISGetOutputSamps();
char *VORBISgetStreamTitle();
int VORBISFindSyncWord(unsigned char *buf, int nBytes);
int VORBISparseOGG(uint8_t *inbuf, int *bytesLeft);
int vorbisDecodePage1(uint8_t* inbuf, int* bytesLeft, uint32_t segmentLength);
int vorbisDecodePage2(uint8_t* inbuf, int* bytesLeft, uint32_t segmentLength);
int vorbisDecodePage3(uint8_t* inbuf, int* bytesLeft, uint32_t segmentLength);
int vorbisDecodePage4(uint8_t* inbuf, int* bytesLeft, uint32_t segmentLength, short* outbuf);
int parseVorbisComment(uint8_t *inbuf, int16_t nBytes);
int parseVorbisCodebook();
int parseVorbisFirstPacket(uint8_t *inbuf, int16_t nBytes);
uint16_t continuedOggPackets(uint8_t *inbuf, int *bytesLeft);
uint16_t continuedOggPackets(uint8_t *inbuf);
int vorbis_book_unpack(codebook_t *s);
uint32_t decpack(int32_t entry, int32_t used_entry, uint8_t quantvals, codebook_t *b, int maptype);
int oggpack_eop();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment