Searched refs:bytesLeft (Results 1 – 8 of 8) sorted by relevance
/frameworks/media/libvideoeditor/vss/stagefrightshells/src/ |
D | VideoEditorUtils.cpp | 224 size_t bytesLeft = length; in parseParamSet() local 225 while (bytesLeft > 4 && in parseParamSet() 226 memcmp("\x00\x00\x00\x01", &data[length - bytesLeft], 4)) { in parseParamSet() 227 --bytesLeft; in parseParamSet() 229 if (bytesLeft <= 4) { in parseParamSet() 230 bytesLeft = 0; // Last parameter set in parseParamSet() 232 const uint8_t *nextStartCode = &data[length - bytesLeft]; in parseParamSet() 309 size_t bytesLeft = size; in buildAVCCodecSpecificData() local 312 while (bytesLeft > 4 && !memcmp("\x00\x00\x00\x01", tmp, 4)) { in buildAVCCodecSpecificData() 322 nextStartCode = parseParamSet(&ctx, tmp + 4, bytesLeft - 4, type, in buildAVCCodecSpecificData() [all …]
|
/frameworks/base/graphics/java/android/renderscript/ |
D | ScriptC.java | 75 int bytesLeft = pgm.length - pgmLength; in internalCreate() local 76 if (bytesLeft == 0) { in internalCreate() 80 bytesLeft = pgm.length - pgmLength; in internalCreate() 82 int bytesRead = is.read(pgm, pgmLength, bytesLeft); in internalCreate()
|
D | Program.java | 196 int bytesLeft = str.length - strLength; in setShader() local 197 if (bytesLeft == 0) { in setShader() 201 bytesLeft = str.length - strLength; in setShader() 203 int bytesRead = is.read(str, strLength, bytesLeft); in setShader()
|
/frameworks/base/media/libstagefright/codecs/aacenc/SampleCode/ |
D | AAC_E_SAMPLES.c | 147 int bytesLeft, nRead; in main() local 221 bytesLeft = ReadFile2Buf(infile,inData.Buffer,READ_SIZE); in main() 227 inData.Length = bytesLeft; in main() 262 bytesLeft = nRead; in main()
|
/frameworks/base/media/java/android/media/ |
D | Metadata.java | 292 private boolean scanAllRecords(Parcel parcel, int bytesLeft) { in scanAllRecords() argument 297 while (bytesLeft > kRecordHeaderSize) { in scanAllRecords() 336 bytesLeft -= size; in scanAllRecords() 340 if (0 != bytesLeft || error) { in scanAllRecords()
|
/frameworks/base/libs/utils/ |
D | BackupHelpers.cpp | 224 int bytesLeft; in write_update_file() local 238 bytesLeft = fileSize + sizeof(metadata); in write_update_file() 239 err = dataStream->WriteEntityHeader(key, bytesLeft); in write_update_file() 254 bytesLeft -= sizeof(metadata); // bytesLeft should == fileSize now in write_update_file() 257 while ((amt = read(fd, buf, bufsize)) != 0 && bytesLeft > 0) { in write_update_file() 258 bytesLeft -= amt; in write_update_file() 259 if (bytesLeft < 0) { in write_update_file() 260 amt += bytesLeft; // Plus a negative is minus. Don't write more than we promised. in write_update_file() 268 if (bytesLeft != 0) { in write_update_file() 269 if (bytesLeft > 0) { in write_update_file() [all …]
|
D | AssetManager.cpp | 233 ssize_t bytesLeft = ResTable::IDMAP_HEADER_SIZE_BYTES; in isIdmapStaleLocked() local 235 ssize_t r = TEMP_FAILURE_RETRY(read(fd, buf + ResTable::IDMAP_HEADER_SIZE_BYTES - bytesLeft, in isIdmapStaleLocked() 236 bytesLeft)); in isIdmapStaleLocked() 241 bytesLeft -= r; in isIdmapStaleLocked() 242 if (bytesLeft == 0) { in isIdmapStaleLocked()
|
/frameworks/base/media/libstagefright/ |
D | MPEG4Writer.cpp | 1578 size_t bytesLeft = length; in findNextStartCode() local 1579 while (bytesLeft > 4 && in findNextStartCode() 1580 memcmp("\x00\x00\x00\x01", &data[length - bytesLeft], 4)) { in findNextStartCode() 1581 --bytesLeft; in findNextStartCode() 1583 if (bytesLeft <= 4) { in findNextStartCode() 1584 bytesLeft = 0; // Last parameter set in findNextStartCode() 1586 return &data[length - bytesLeft]; in findNextStartCode() 1657 size_t bytesLeft = size; in parseAVCCodecSpecificData() local 1660 while (bytesLeft > 4 && !memcmp("\x00\x00\x00\x01", tmp, 4)) { in parseAVCCodecSpecificData() 1670 nextStartCode = parseParamSet(tmp + 4, bytesLeft - 4, type, ¶mSetLen); in parseAVCCodecSpecificData() [all …]
|