Flv 43 cygnal/libamf/flv.cpp Flv::Flv() Flv 48 cygnal/libamf/flv.cpp _header.type = Flv::FLV_VIDEO | Flv::FLV_AUDIO; Flv 52 cygnal/libamf/flv.cpp _tag.type = Flv::TAG_METADATA; Flv 58 cygnal/libamf/flv.cpp Flv::~Flv() Flv 65 cygnal/libamf/flv.cpp Flv::encodeHeader(boost::uint8_t type) Flv 68 cygnal/libamf/flv.cpp boost::shared_ptr<cygnal::Buffer> buf(new Buffer(sizeof(Flv::flv_header_t))); Flv 84 cygnal/libamf/flv.cpp boost::shared_ptr<Flv::flv_header_t> Flv 85 cygnal/libamf/flv.cpp Flv::decodeHeader(boost::uint8_t *data) Flv 107 cygnal/libamf/flv.cpp if (((header->type & Flv::FLV_AUDIO) && (header->type & Flv::FLV_VIDEO)) Flv 108 cygnal/libamf/flv.cpp || (header->type & Flv::FLV_AUDIO) || (header->type & Flv::FLV_VIDEO)) { Flv 132 cygnal/libamf/flv.cpp Flv::decodeMetaData(boost::shared_ptr<cygnal::Buffer> buf) Flv 138 cygnal/libamf/flv.cpp Flv::decodeMetaData(boost::uint8_t *buf, size_t size) Flv 173 cygnal/libamf/flv.cpp boost::shared_ptr<Flv::flv_audio_t> Flv 174 cygnal/libamf/flv.cpp Flv::decodeAudioData(boost::uint8_t byte) Flv 181 cygnal/libamf/flv.cpp if (byte && Flv::AUDIO_STEREO) { Flv 182 cygnal/libamf/flv.cpp audio->type = Flv::AUDIO_STEREO; Flv 183 cygnal/libamf/flv.cpp } else if (!byte && Flv::AUDIO_STEREO) { Flv 184 cygnal/libamf/flv.cpp audio->type = Flv::AUDIO_MONO; Flv 190 cygnal/libamf/flv.cpp if ((byte >> 1) && Flv::AUDIO_16BIT) { Flv 191 cygnal/libamf/flv.cpp audio->size = Flv::AUDIO_16BIT; Flv 192 cygnal/libamf/flv.cpp } else if (!(byte >> 1) && Flv::AUDIO_16BIT) { Flv 193 cygnal/libamf/flv.cpp audio->size = Flv::AUDIO_8BIT; Flv 200 cygnal/libamf/flv.cpp if ((byte >> 2) && Flv::AUDIO_11KHZ) { Flv 201 cygnal/libamf/flv.cpp audio->rate = Flv::AUDIO_11KHZ; Flv 202 cygnal/libamf/flv.cpp } else if ((byte >> 2) & Flv::AUDIO_22KHZ) { Flv 203 cygnal/libamf/flv.cpp audio->rate = Flv::AUDIO_22KHZ; Flv 204 cygnal/libamf/flv.cpp } else if ((byte >> 2) & Flv::AUDIO_44KHZ) { Flv 205 cygnal/libamf/flv.cpp audio->rate = Flv::AUDIO_44KHZ; Flv 207 cygnal/libamf/flv.cpp audio->rate = Flv::AUDIO_55KHZ; Flv 213 cygnal/libamf/flv.cpp if ((byte >> 4) && Flv::AUDIO_ADPCM) { Flv 214 cygnal/libamf/flv.cpp audio->format = Flv::AUDIO_ADPCM; Flv 215 cygnal/libamf/flv.cpp } else if ((byte >> 4) && Flv::AUDIO_MP3) { Flv 216 cygnal/libamf/flv.cpp audio->format = Flv::AUDIO_MP3; Flv 217 cygnal/libamf/flv.cpp } else if ((byte >> 4) && Flv::AUDIO_NELLYMOSER_8KHZ) { Flv 218 cygnal/libamf/flv.cpp audio->format = Flv::AUDIO_NELLYMOSER_8KHZ; Flv 219 cygnal/libamf/flv.cpp } else if ((byte >> 4) && Flv::AUDIO_NELLYMOSER) { Flv 220 cygnal/libamf/flv.cpp audio->format = Flv::AUDIO_NELLYMOSER; Flv 221 cygnal/libamf/flv.cpp } else if ((byte >> 4) && Flv::AUDIO_VORBIS) { Flv 222 cygnal/libamf/flv.cpp audio->format = Flv::AUDIO_VORBIS; Flv 223 cygnal/libamf/flv.cpp } else if (!(byte >> 4) && Flv::AUDIO_ADPCM) { Flv 224 cygnal/libamf/flv.cpp audio->format = Flv::AUDIO_UNCOMPRESSED; Flv 232 cygnal/libamf/flv.cpp boost::shared_ptr<Flv::flv_video_t> Flv 233 cygnal/libamf/flv.cpp Flv::decodeVideoData(boost::uint8_t byte) Flv 240 cygnal/libamf/flv.cpp if (byte && Flv::VIDEO_H263) { Flv 241 cygnal/libamf/flv.cpp video->codecID = Flv::VIDEO_H263; Flv 242 cygnal/libamf/flv.cpp } else if (byte && Flv::VIDEO_SCREEN) { Flv 243 cygnal/libamf/flv.cpp video->codecID = Flv::VIDEO_SCREEN; Flv 244 cygnal/libamf/flv.cpp } else if (byte && Flv::VIDEO_VP6) { Flv 245 cygnal/libamf/flv.cpp video->codecID = Flv::VIDEO_VP6; Flv 246 cygnal/libamf/flv.cpp } else if (byte && Flv::VIDEO_VP6_ALPHA) { Flv 247 cygnal/libamf/flv.cpp video->codecID = Flv::VIDEO_VP6_ALPHA; Flv 248 cygnal/libamf/flv.cpp } else if (byte && Flv::VIDEO_SCREEN2) { Flv 249 cygnal/libamf/flv.cpp video->codecID = Flv::VIDEO_SCREEN2; Flv 250 cygnal/libamf/flv.cpp } else if (byte && Flv::VIDEO_THEORA) { Flv 251 cygnal/libamf/flv.cpp video->codecID = Flv::VIDEO_THEORA; Flv 252 cygnal/libamf/flv.cpp } else if (byte && Flv::VIDEO_DIRAC) { Flv 253 cygnal/libamf/flv.cpp video->codecID = Flv::VIDEO_DIRAC; Flv 254 cygnal/libamf/flv.cpp } else if (byte && Flv::VIDEO_SPEEX) { Flv 255 cygnal/libamf/flv.cpp video->codecID = Flv::VIDEO_SPEEX; Flv 260 cygnal/libamf/flv.cpp if (byte && Flv::KEYFRAME) { Flv 261 cygnal/libamf/flv.cpp video->type = Flv::KEYFRAME; Flv 262 cygnal/libamf/flv.cpp } else if (byte && Flv::INTERFRAME) { Flv 263 cygnal/libamf/flv.cpp video->type = Flv::INTERFRAME; Flv 264 cygnal/libamf/flv.cpp } else if (byte && Flv::DISPOSABLE) { Flv 265 cygnal/libamf/flv.cpp video->type = Flv::DISPOSABLE; Flv 275 cygnal/libamf/flv.cpp Flv::convert24(boost::uint8_t *num) Flv 291 cygnal/libamf/flv.cpp boost::shared_ptr<Flv::flv_tag_t> Flv 292 cygnal/libamf/flv.cpp Flv::decodeTagHeader(boost::uint8_t *buf) Flv 310 cygnal/libamf/flv.cpp Flv::findProperty(const std::string &name) Flv 328 cygnal/libamf/flv.cpp Flv::dump() Flv 47 cygnal/libamf/flv.h class DSOEXPORT Flv { Flv 162 cygnal/libamf/flv.h Flv(); Flv 163 cygnal/libamf/flv.h ~Flv(); Flv 510 cygnal/libnet/diskstream.cpp _flv.reset(new cygnal::Flv); Flv 511 cygnal/libnet/diskstream.cpp boost::shared_ptr<cygnal::Flv::flv_header_t> head = _flv->decodeHeader(ptr); Flv 512 cygnal/libnet/diskstream.cpp ptr += sizeof(cygnal::Flv::flv_header_t); Flv 513 cygnal/libnet/diskstream.cpp ptr += sizeof(cygnal::Flv::previous_size_t); Flv 514 cygnal/libnet/diskstream.cpp boost::shared_ptr<cygnal::Flv::flv_tag_t> tag = _flv->decodeTagHeader(ptr); Flv 515 cygnal/libnet/diskstream.cpp ptr += sizeof(cygnal::Flv::flv_tag_t); Flv 517 cygnal/libnet/diskstream.cpp if (tag->type == cygnal::Flv::TAG_METADATA) { Flv 356 cygnal/libnet/diskstream.h boost::shared_ptr<cygnal::Flv> _flv; Flv 116 cygnal/testsuite/libamf.all/test_flv.cpp Flv flv; Flv 136 cygnal/testsuite/libamf.all/test_flv.cpp boost::shared_ptr<Flv::flv_header_t> head = flv.decodeHeader(hex1); Flv 154 cygnal/testsuite/libamf.all/test_flv.cpp boost::shared_ptr<amf::Buffer> enc1 = flv.encodeHeader(Flv::FLV_AUDIO | Flv::FLV_VIDEO); Flv 156 cygnal/testsuite/libamf.all/test_flv.cpp if ((enc1->size() == sizeof(Flv::flv_header_t)) Flv 178 cygnal/testsuite/libamf.all/test_flv.cpp boost::shared_ptr<Flv::flv_tag_t> tag3 = flv.decodeTagHeader(hex3); Flv 179 cygnal/testsuite/libamf.all/test_flv.cpp if ((tag3->type == Flv::TAG_METADATA) Flv 190 cygnal/testsuite/libamf.all/test_flv.cpp Flv flv; Flv 213 cygnal/testsuite/libamf.all/test_flv.cpp boost::shared_ptr<Flv::flv_tag_t> tag2 = flv.decodeTagHeader(hex2); Flv 214 cygnal/testsuite/libamf.all/test_flv.cpp boost::shared_ptr<Flv::flv_audio_t> data2 = flv.decodeAudioData(*(hex2->reference() + 11)); Flv 215 cygnal/testsuite/libamf.all/test_flv.cpp if ((tag2->type && Flv::TAG_AUDIO) Flv 216 cygnal/testsuite/libamf.all/test_flv.cpp && (data2->type == Flv::AUDIO_MONO) Flv 217 cygnal/testsuite/libamf.all/test_flv.cpp && (data2->size == Flv::AUDIO_8BIT) Flv 218 cygnal/testsuite/libamf.all/test_flv.cpp && (data2->rate == Flv::AUDIO_55KHZ) Flv 219 cygnal/testsuite/libamf.all/test_flv.cpp && (data2->format == Flv::AUDIO_UNCOMPRESSED)) { Flv 226 cygnal/testsuite/libamf.all/test_flv.cpp boost::shared_ptr<Flv::flv_tag_t> tag3 = flv.decodeTagHeader(hex3); Flv 227 cygnal/testsuite/libamf.all/test_flv.cpp boost::shared_ptr<Flv::flv_video_t> data3 = flv.decodeVideoData(*(hex3->reference() + 11)); Flv 228 cygnal/testsuite/libamf.all/test_flv.cpp if ((tag3->type && Flv::TAG_VIDEO) Flv 229 cygnal/testsuite/libamf.all/test_flv.cpp && (data3->codecID == Flv::VIDEO_H263) Flv 230 cygnal/testsuite/libamf.all/test_flv.cpp && (data3->type == Flv::KEYFRAME)) { Flv 186 utilities/flvdumper.cpp Flv flv; Flv 190 utilities/flvdumper.cpp Flv::previous_size_t previous = 0; Flv 191 utilities/flvdumper.cpp boost::shared_ptr<Flv::flv_tag_t> tag; Flv 200 utilities/flvdumper.cpp ifs.read(reinterpret_cast<char *>(buf->reference()), sizeof(Flv::flv_header_t)); Flv 202 utilities/flvdumper.cpp boost::shared_ptr<Flv::flv_header_t> head = flv.decodeHeader(buf); Flv 207 utilities/flvdumper.cpp if ((head->type & Flv::FLV_VIDEO) && (head->type & Flv::FLV_AUDIO)) { Flv 209 utilities/flvdumper.cpp } else if (head->type && Flv::FLV_VIDEO) { Flv 211 utilities/flvdumper.cpp } else if (head->type && Flv::FLV_AUDIO) { Flv 221 utilities/flvdumper.cpp size_t total = st.st_size - sizeof(Flv::flv_header_t); Flv 223 utilities/flvdumper.cpp ifs.read(reinterpret_cast<char *>(&previous), sizeof(Flv::previous_size_t)); Flv 224 utilities/flvdumper.cpp if (ifs.gcount() != sizeof(Flv::previous_size_t)) { Flv 229 utilities/flvdumper.cpp total -= sizeof(Flv::previous_size_t); Flv 233 utilities/flvdumper.cpp ifs.read(reinterpret_cast<char *>(buf->reference()), sizeof(Flv::flv_tag_t)); Flv 234 utilities/flvdumper.cpp if (ifs.gcount() != sizeof(Flv::flv_tag_t)) { Flv 239 utilities/flvdumper.cpp total -= sizeof(Flv::previous_size_t); Flv 246 utilities/flvdumper.cpp cout << "FLV Tag size is: " << bodysize + sizeof(Flv::previous_size_t) << endl; Flv 256 utilities/flvdumper.cpp case Flv::TAG_AUDIO: Flv 260 utilities/flvdumper.cpp boost::shared_ptr<Flv::flv_audio_t> data = flv.decodeAudioData(*(buf->reference() + sizeof(Flv::flv_tag_t))); Flv 268 utilities/flvdumper.cpp case Flv::TAG_VIDEO: Flv 272 utilities/flvdumper.cpp boost::shared_ptr<Flv::flv_video_t> data = flv.decodeVideoData(*(buf->reference() + sizeof(Flv::flv_tag_t))); Flv 278 utilities/flvdumper.cpp case Flv::TAG_METADATA: