Lines Matching refs:pssh
28 Vector<DrmUUID> NuPlayer2Drm::parsePSSH(const void *pssh, size_t psshsize)
42 const uint8_t *data = (const uint8_t*)pssh;
47 ALOGE("ParsePSSH: invalid PSSH data");
59 ALOGE("ParsePSSH: invalid PSSH data");
68 ALOGE("ParsePSSH: invalid PSSH data");
90 Vector<DrmUUID> NuPlayer2Drm::getSupportedDrmSchemes(const void *pssh, size_t psshsize)
92 Vector<DrmUUID> psshDRMs = parsePSSH(pssh, psshsize);
108 sp<ABuffer> NuPlayer2Drm::retrieveDrmInfo(const void *pssh, uint32_t psshsize)
112 // 1) PSSH bytes
114 buf.write(reinterpret_cast<const char *>(pssh), psshsize);
116 ALOGV("retrieveDrmInfo: MEDIA2_DRM_INFO PSSH: size: %u %s", psshsize,
117 DrmUUID::arrayToHex((uint8_t*)pssh, psshsize).string());
120 Vector<DrmUUID> supportedDRMs = getSupportedDrmSchemes(pssh, psshsize);
138 std::ostringstream pssh, drmInfo;
140 // 0) Generate PSSH bytes
144 pssh.write(reinterpret_cast<const char *>(&entry->uuid), sizeof(entry->uuid));
145 pssh.write(reinterpret_cast<const char *>(&datalen), sizeof(datalen));
146 pssh.write(reinterpret_cast<const char *>(entry->data), datalen);
149 uint32_t psshSize = pssh.tellp();
150 std::string psshBase = pssh.str();
152 ALOGV("retrieveDrmInfo: MEDIA_DRM_INFO PSSH: size: %u %s", psshSize,
155 // 1) Write PSSH bytes
157 reinterpret_cast<const char *>(pssh.str().c_str()), psshSize);