Searched refs:pStart (Results 1 – 4 of 4) sorted by relevance
/ohos5.0/commonlibrary/ets_utils/js_api_module/buffer/ |
H A D | converter.cpp | 161 const unsigned char *pStart = nullptr; in Base64Encode() local 173 pStart = src; in Base64Encode() 181 while (pEnd - pStart >= 3) { in Base64Encode() 183 *pos = table[pStart[0] >> 2]; in Base64Encode() 185 *(pos + 1) = table[((pStart[0] & LOWER_2_BITS_MASK) << 4) | (pStart[1] >> 4)]; in Base64Encode() 187 *(pos + 2) = table[((pStart[1] & LOWER_4_BITS_MASK) << 2) | (pStart[2] >> 6)]; in Base64Encode() 193 pStart += 3; in Base64Encode() 197 if (pEnd - pStart > 0) { in Base64Encode() 199 *pos = table[pStart[0] >> 2]; in Base64Encode() 200 if (pEnd - pStart == 1) { // one byte remaining in Base64Encode() [all …]
|
/ohos5.0/foundation/multimedia/av_codec/test/unittest/hcodec_test/helper/ |
H A D | start_code_detector.cpp | 49 size_t StartCodeDetector::SetSource(const uint8_t* pStart, size_t bufSize) in SetSource() argument 51 if (pStart == nullptr) { in SetSource() 57 auto pFound = search(pStart + pos, pStart + bufSize, begin(START_CODE), end(START_CODE)); in SetSource() 58 pos = distance(pStart, pFound); in SetSource() 62 posOfFile.emplace_back(pos, pStart[pos + START_CODE_LEN], pStart[pos + START_CODE_LEN + 1]); in SetSource() 72 SaveVivid(nal, pStart); in SetSource() 79 void StartCodeDetector::SaveVivid(NALUInfo& nal, const uint8_t *pStart) in SaveVivid() argument 84 const uint8_t *nalStart = pStart + nal.startPos; in SaveVivid() 91 nal.vividSei = vector<uint8_t>(pStart + nal.startPos, pStart + nal.endPos); in SaveVivid()
|
H A D | start_code_detector.h | 46 size_t SetSource(const uint8_t* pStart, size_t bufSize); // return sample cnt 62 void SaveVivid(NALUInfo& nal, const uint8_t *pStart);
|
/ohos5.0/commonlibrary/ets_utils/js_api_module/xml/ |
H A D | js_xml.h | 39 …XmlSerializer(char *pStart, size_t bufferLength, const std::string &encoding = "utf-8") :pStart_(p…
|