Searched defs:ptr (Results 1 - 25 of 135) sorted by path

123456

/frameworks/av/camera/tests/
H A DProCameraTests.cpp144 IPCThreadState *ptr = IPCThreadState::self(); local
146 ptr->joinThreadPool();
/frameworks/av/cmds/stagefright/
H A DSineSource.cpp74 int16_t *ptr = (int16_t *)buffer->data(); local
82 *ptr++ = amplitude;
84 *ptr++ = amplitude;
H A Dsf2.cpp303 const uint8_t *ptr = (const uint8_t *)data; local
306 CHECK_EQ((unsigned)ptr[0], 1u); // configurationVersion == 1
307 uint8_t profile = ptr[1];
308 uint8_t level = ptr[3];
312 // CHECK((ptr[4] >> 2) == 0x3f); // reserved
314 size_t lengthSize = 1 + (ptr[4] & 3);
318 // CHECK((ptr[5] >> 5) == 7); // reserved
320 size_t numSeqParameterSets = ptr[5] & 31;
322 ptr += 6;
330 size_t length = U16_AT(ptr);
[all...]
H A Dstagefright.cpp122 const uint8_t *ptr = (const uint8_t *)data; local
124 CHECK(ptr[0] == 1); // configurationVersion == 1
125 uint8_t profile = ptr[1];
126 uint8_t level = ptr[3];
/frameworks/av/drm/libdrmframework/plugins/forward-lock/internal-format/converter/
H A DFwdLockConv.c123 char *ptr; member in struct:FwdLockConv_String
451 char *newPtr = realloc(pString->ptr, newMaxLength + 1);
455 pString->ptr = newPtr;
458 pString->ptr[pString->length++] = ch;
459 pString->ptr[pString->length] = '\0';
472 if (strncmp(pSession->mimeHeaderName.ptr, strContent, strlenContent) == 0) {
473 if (strcmp(pSession->mimeHeaderName.ptr + strlenContent, strType) == 0) {
474 if (pSession->contentType.ptr == NULL) {
479 } else if (strcmp(pSession->mimeHeaderName.ptr + strlenContent, strTransferEncoding) == 0) {
503 if (pSession->contentType.ptr
[all...]
/frameworks/av/libvideoeditor/lvpp/
H A DVideoEditorAudioPlayer.cpp673 M4OSA_Void* ptr; local
674 ptr = (M4OSA_Void*)((unsigned int)mInputBuffer->data() +
758 // Assign the ptr data to primary track
759 ptFrame.m_dataAddress = (M4OSA_UInt16*)ptr;
767 memcpy((void *)ptr,
/frameworks/av/libvideoeditor/vss/3gpwriter/src/
H A DM4MP4W_Utils.c118 void* M4MP4W_realloc(M4OSA_MemAddr32 ptr, M4OSA_UInt32 oldSize, M4OSA_UInt32 newSize) argument
125 memcpy((void *)ptr2, (void *)ptr, oldSize);
127 free(ptr);
/frameworks/av/libvideoeditor/vss/src/
H A DM4xVSS_internal.c1889 M4OSA_UInt16 *ptr = M4OSA_NULL; local
2017 ptr = (M4OSA_UInt16 *)TempPacData;
2022 ptr[z++] = PACK_RGB565(0, rgbPlane.pac_data[i],
/frameworks/av/libvideoeditor/vss/stagefrightshells/src/
H A DVideoEditorUtils.cpp56 void* ptr; local
117 if (meta->findPointer(kKeyPlatformPrivate, &ptr)) {
118 LOG1("displayMetaData kKeyPlatformPrivate pointer=0x%x", (int32_t) ptr);
/frameworks/av/media/libeffects/lvm/lib/Common/src/
H A DInstAlloc.c147 /* coverity[returned_pointer] Ignore coverity warning that ptr is not used */
178 void **ptr)
180 ptr[0] = InstAlloc_AddMember(&pms[LVM_PERSISTENT_SLOW_DATA], Size[LVM_PERSISTENT_SLOW_DATA]);
181 ptr[1] = InstAlloc_AddMember(&pms[LVM_PERSISTENT_FAST_DATA], Size[LVM_PERSISTENT_FAST_DATA]);
182 ptr[2] = InstAlloc_AddMember(&pms[LVM_PERSISTENT_FAST_COEF], Size[LVM_PERSISTENT_FAST_COEF]);
183 ptr[3] = InstAlloc_AddMember(&pms[LVM_TEMPORARY_FAST], Size[LVM_TEMPORARY_FAST]);
185 return (ptr[0]);
176 InstAlloc_AddMemberAllRet( INST_ALLOC *pms, LVM_UINT32 Size[], void **ptr) argument
/frameworks/av/media/libmedia/
H A DMemoryLeakTrackUtil.cpp90 uint8_t *ptr = info; local
104 e->size = *reinterpret_cast<size_t *>(ptr);
105 ptr += sizeof(size_t);
107 e->dups = *reinterpret_cast<size_t *>(ptr);
108 ptr += sizeof(size_t);
110 e->backtrace = reinterpret_cast<intptr_t *>(ptr);
111 ptr += sizeof(intptr_t) * backtraceSize;
/frameworks/av/media/libstagefright/
H A DACodec.cpp513 void *ptr; local
516 &ptr);
521 info.mData = new ABuffer(ptr, bufSize);
H A DDRMExtractor.cpp91 const uint8_t *ptr = (const uint8_t *)data; local
94 CHECK_EQ(ptr[0], 1); // configurationVersion == 1
97 mNALLengthSize = 1 + (ptr[4] & 3);
H A DMPEG2TSWriter.cpp196 const uint8_t *ptr = (const uint8_t *)data; local
198 size_t numSeqParameterSets = ptr[5] & 31;
200 ptr += 6;
205 size_t length = U16_AT(ptr);
207 ptr += 2;
214 memcpy(out->data() + out->size() + 4, ptr, length);
217 ptr += length;
222 size_t numPictureParameterSets = *ptr;
223 ++ptr;
228 size_t length = U16_AT(ptr);
315 uint8_t *ptr = mAACBuffer->data() + mAACBuffer->size(); local
816 uint8_t *ptr = &buffer->data()[sizeof(kData)]; local
899 uint8_t *ptr = buffer->data(); local
[all...]
H A DMPEG4Extractor.cpp520 char *ptr = buf; local
522 memcpy(ptr, mPssh[i].uuid, 20); // uuid + length
523 memcpy(ptr + 20, mPssh[i].data, mPssh[i].datalen);
524 ptr += (20 + mPssh[i].datalen);
2414 const uint8_t *ptr = (const uint8_t *)data; local
2417 CHECK_EQ((unsigned)ptr[0], 1u); // configurationVersion == 1
2420 mNALLengthSize = 1 + (ptr[4] & 3);
H A DMPEG4Writer.cpp1045 const uint8_t *ptr = local
1048 if (!memcmp(ptr, "\x00\x00\x00\x01", 4)) {
1089 const void *ptr, size_t size, size_t nmemb) {
1109 ::write(mFd, ptr, bytes);
1116 memcpy(mMoovBoxBuffer + mMoovBoxBufferOffset, ptr, bytes);
1120 ::write(mFd, ptr, size * nmemb);
2932 uint8_t *ptr = (uint8_t *)mCodecSpecificData; local
2933 ptr[4] = (ptr[4] & 0xfc) | (mOwner->useNalLengthFour() ? 3 : 1);
1088 write( const void *ptr, size_t size, size_t nmemb) argument
H A DOMXCodec.cpp376 const uint8_t *ptr = (const uint8_t *)data; local
379 if (size < 7 || ptr[0] != 1) {
383 *profile = ptr[1];
384 *level = ptr[3];
388 // CHECK((ptr[4] >> 2) == 0x3f); // reserved
390 size_t lengthSize = 1 + (ptr[4] & 3);
394 // CHECK((ptr[5] >> 5) == 7); // reserved
396 size_t numSeqParameterSets = ptr[5] & 31;
398 ptr += 6;
406 size_t length = U16_AT(ptr);
2928 findInputBufferByDataPointer(void *ptr) argument
[all...]
H A DUtils.cpp38 uint16_t U16_AT(const uint8_t *ptr) { argument
39 return ptr[0] << 8 | ptr[1];
42 uint32_t U32_AT(const uint8_t *ptr) { argument
43 return ptr[0] << 24 | ptr[1] << 16 | ptr[2] << 8 | ptr[3];
46 uint64_t U64_AT(const uint8_t *ptr) { argument
47 return ((uint64_t)U32_AT(ptr)) << 3
50 U16LE_AT(const uint8_t *ptr) argument
54 U32LE_AT(const uint8_t *ptr) argument
58 U64LE_AT(const uint8_t *ptr) argument
144 const uint8_t *ptr = (const uint8_t *)data; local
[all...]
H A DVBRISeeker.cpp32 static uint32_t U24_AT(const uint8_t *ptr) { argument
33 return ptr[0] << 16 | ptr[1] << 8 | ptr[2];
H A DWAVExtractor.cpp48 static uint32_t U32_LE_AT(const uint8_t *ptr) { argument
49 return ptr[3] << 24 | ptr[2] << 16 | ptr[1] << 8 | ptr[0];
52 static uint16_t U16_LE_AT(const uint8_t *ptr) { argument
53 return ptr[1] << 8 | ptr[0];
/frameworks/av/media/libstagefright/codecs/aacenc/src/
H A Dmemalign.c99 unsigned char *ptr; local
104 ptr = mem_ptr;
106 ptr -= *(ptr - 1);
108 pMemop->Free(CodecID, ptr);
/frameworks/av/media/libstagefright/codecs/amrnb/dec/src/
H A Ddtx_dec.cpp427 Word16 ptr;
447 ptr = add(st->lsf_hist_ptr, M);
448 if (sub(ptr, 80) == 0)
450 ptr = 0;
452 Copy( &st->lsf_hist[st->lsf_hist_ptr],&st->lsf_hist[ptr],M);
454 ptr = add(st->log_en_hist_ptr,1);
455 if (sub(ptr, DTX_HIST_SIZE) == 0)
457 ptr = 0;
459 st->log_en_hist[ptr] = st->log_en_hist[st->log_en_hist_ptr]; // Q11
883 Word16 ptr; local
[all...]
/frameworks/av/media/libstagefright/codecs/amrwb/src/
H A Ddtx_decoder_amr_wb.cpp211 int16 ptr; local
225 ptr = st->hist_ptr + 1;
227 if (ptr == DTX_HIST_SIZE)
228 ptr = 0;
230 pv_memcpy((void *)&st->isf_hist[ptr * M], (void *)&st->isf_hist[st->hist_ptr * M], M*sizeof(*st->isf_hist));
232 st->log_en_hist[ptr] = st->log_en_hist[st->hist_ptr];
733 int16 ptr; local
777 ptr = st->hist_ptr;
781 ptr--;
783 if (ptr <
[all...]
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/
H A Ddtx.c438 Word16 ptr; local
482 ptr = st->hist_ptr;
486 ptr = sub(ptr, 1);
487 if (ptr < 0)
489 ptr = DTX_HIST_SIZE_MIN_ONE;
494 tmp = sub(isf_old_tx[st->hist_ptr * M + j], isf_old_tx[ptr * M + j]);
H A Dmem_align.c99 unsigned char *ptr; local
104 ptr = mem_ptr;
106 ptr -= *(ptr - 1);
108 pMemop->Free(CodecID, ptr);

Completed in 415 milliseconds

123456