Lines Matching refs:csd

166 static void parseAacProfileFromCsd(const sp<ABuffer> &csd, sp<AMessage> &format) {
167 if (csd->size() < 2) {
171 uint16_t audioObjectType = U16_AT((uint8_t*)csd->data());
432 static void parseMpeg4ProfileLevelFromCsd(const sp<ABuffer> &csd, sp<AMessage> &format) {
433 const uint8_t *data = csd->data();
435 const uint8_t *seq = (const uint8_t*)memmem(data, csd->size(), "\x00\x00\x01\xB0", 4);
436 if (seq != NULL && seq + 4 < data + csd->size()) {
523 static void parseVp9ProfileLevelFromCsd(const sp<ABuffer> &csd, sp<AMessage> &format) {
524 const uint8_t *data = csd->data();
525 size_t remaining = csd->size();
807 buffer->meta()->setInt32("csd", true);
810 msg->setBuffer("csd-0", buffer);
848 buffer->meta()->setInt32("csd", true);
850 msg->setBuffer("csd-1", buffer);
913 buffer->meta()->setInt32("csd", true);
915 msg->setBuffer("csd-0", buffer);
944 buffer->meta()->setInt32("csd", true);
946 msg->setBuffer("csd-0", buffer);
982 buffer->meta()->setInt32("csd", true);
984 msg->setBuffer("csd-0", buffer);
996 buffer->meta()->setInt32("csd", true);
998 msg->setBuffer("csd-1", buffer);
1006 buffer->meta()->setInt32("csd", true);
1008 msg->setBuffer("csd-0", buffer);
1020 buffer->meta()->setInt32("csd", true);
1022 msg->setBuffer("csd-1", buffer);
1034 buffer->meta()->setInt32("csd", true);
1036 msg->setBuffer("csd-2", buffer);
1044 buffer->meta()->setInt32("csd", true);
1046 msg->setBuffer("csd-0", buffer);
1110 //and now csd-1
1377 // reassemble the csd data into its original form
1379 if (msg->findBuffer("csd-0", &csd0)) {
1382 if (msg->findBuffer("csd-1", &csd1)) {
1402 if (msg->findBuffer("csd-1", &csd1)) {
1405 if (msg->findBuffer("csd-2", &csd2)) {
1410 if (msg->findBuffer("csd-1", &csd1)) {