/frameworks/av/camera/ |
H A D | ProCamera.cpp | 364 int ProCamera::dropFrameBuffer(int streamId, int count) { argument 369 } else if (count < 0) { 381 for (int i = 0; i < count; ++i) {
|
/frameworks/av/camera/tests/ |
H A D | ProCameraTests.cpp | 445 static bool ExistsItem(T needle, T* array, size_t count) { argument 450 for (size_t i = 0; i < count; ++i) { 484 void createSubmitRequestForStreams(int32_t* streamIds, size_t count, int requestCount=-1) { argument 487 ASSERT_LT(0u, count); 498 request.update(tag, streamIds, count); 529 entry.data.i32, entry.count)); 531 entry.data.i32, entry.count)); 634 /*count*/1)); 977 ASSERT_NO_FATAL_FAILURE(createSubmitRequestForStreams(streams, /*count*/1)); 1005 ASSERT_NO_FATAL_FAILURE(createSubmitRequestForStreams(streams, /*count*/ [all...] |
/frameworks/av/media/img_utils/include/img_utils/ |
H A D | EndianUtils.h | 102 virtual status_t write(const uint8_t* buf, size_t offset, size_t count); 104 virtual status_t write(const int8_t* buf, size_t offset, size_t count); 106 virtual status_t write(const uint16_t* buf, size_t offset, size_t count); 108 virtual status_t write(const int16_t* buf, size_t offset, size_t count); 110 virtual status_t write(const uint32_t* buf, size_t offset, size_t count); 112 virtual status_t write(const int32_t* buf, size_t offset, size_t count); 114 virtual status_t write(const uint64_t* buf, size_t offset, size_t count); 116 virtual status_t write(const int64_t* buf, size_t offset, size_t count); 118 virtual status_t write(const float* buf, size_t offset, size_t count); 120 virtual status_t write(const double* buf, size_t offset, size_t count); 132 writeHelper(const T* buf, size_t offset, size_t count) argument [all...] |
H A D | TiffEntryImpl.h | 38 TiffEntryImpl(uint16_t tag, TagType type, uint32_t count, Endianness end, const T* data); 64 TiffEntryImpl<T>::TiffEntryImpl(uint16_t tag, TagType type, uint32_t count, Endianness end, argument 66 : mTag(tag), mType(static_cast<uint16_t>(type)), mCount(count), mEnd(end) { 67 count = (type == RATIONAL || type == SRATIONAL) ? count * 2 : count; 68 ssize_t index = mData.appendArray(data, count); 134 uint32_t count = mCount; local 139 * size of the array here, multiply the count by 2. 141 count << 160 uint32_t count = mCount; local [all...] |
H A D | TiffWriter.h | 121 * - BAD_VALUE - The given count doesn't match the required count for 132 * was constructed with. The count and type are validated. 137 * - BAD_VALUE - The given count doesn't match the required count for 144 status_t addEntry(uint16_t tag, uint32_t count, const T* data, uint32_t ifd); 149 * with. The count and type are validated. If this succeeds, the resulting 155 * - BAD_VALUE - The given count doesn't match the required count for 161 status_t buildEntry(uint16_t tag, uint32_t count, cons 272 buildEntry(uint16_t tag, uint32_t count, const T* data, sp<TiffEntry>* outEntry) const argument 301 addEntry(uint16_t tag, uint32_t count, const T* data, uint32_t ifd) argument 314 uncheckedBuildEntry(uint16_t tag, TagType type, uint32_t count, Endianness end, const T* data) argument [all...] |
/frameworks/av/media/img_utils/src/ |
H A D | ByteArrayOutput.cpp | 32 status_t ByteArrayOutput::write(const uint8_t* buf, size_t offset, size_t count) { argument 33 if (mByteArray.appendArray(buf + offset, count) < 0) {
|
H A D | DngUtils.cpp | 43 uint32_t count = convertToBigEndian(mCount); local 44 memcpy(buf, &count, sizeof(count)); 45 memcpy(buf + sizeof(count), mOpList.getArray(), mOpList.getSize());
|
H A D | EndianUtils.cpp | 48 status_t EndianOutput::write(const uint8_t* buf, size_t offset, size_t count) { argument 50 if((res = mOutput->write(buf, offset, count)) == OK) { 51 mOffset += count; 56 status_t EndianOutput::write(const int8_t* buf, size_t offset, size_t count) { argument 57 return write(reinterpret_cast<const uint8_t*>(buf), offset, count); 61 status_t EndianOutput::write(const _type_* buf, size_t offset, size_t count) { \ 62 return writeHelper<_type_>(buf, offset, count); \ 72 status_t EndianOutput::write(const float* buf, size_t offset, size_t count) { argument 74 return writeHelper<uint32_t>(reinterpret_cast<const uint32_t*>(buf), offset, count); 77 status_t EndianOutput::write(const double* buf, size_t offset, size_t count) { argument [all...] |
H A D | FileInput.cpp | 48 ssize_t FileInput::read(uint8_t* buf, size_t offset, size_t count) { argument 54 size_t bytesRead = ::fread(buf + offset, sizeof(uint8_t), count, mFp);
|
H A D | FileOutput.cpp | 47 status_t FileOutput::write(const uint8_t* buf, size_t offset, size_t count) { argument 53 ::fwrite(buf + offset, sizeof(uint8_t), count, mFp);
|
H A D | Input.cpp | 28 ssize_t Input::skip(size_t count) { argument 32 size_t remaining = count; 39 if (remaining == count) { 44 return count - remaining; 52 return count;
|
H A D | TiffEntry.cpp | 128 uint32_t count = getCount(); local 129 output.appendFormat("[id: %x, type: %d, count: %u, value: '", getTag(), getType(), count); 131 size_t cappedCount = count; 132 if (count > MAX_PRINT_STRING_LENGTH) { 148 size_t len = count; 149 if (count > MAX_PRINT_STRING_LENGTH) { 226 if (count > MAX_PRINT_STRING_LENGTH) {
|
H A D | TiffIfd.cpp | 314 ALOGE("%s: StripOffsets count (%u) doesn't match StripByteCounts count (%u) in IFD %u", 353 uint32_t count = stripByteCounts->getCount(); local 357 for (size_t i = 0; i < static_cast<size_t>(count); ++i) {
|
H A D | TiffWriter.cpp | 292 uint32_t count = subIfdList.size(); local 293 if (buildEntry(subIfdTag, count, subIfdList.array(), &subIfds) < 0) {
|
/frameworks/av/media/libeffects/factory/ |
H A D | EffectsFactory.c | 420 int count = 0; local 428 pSube[count++] = subeffect; 432 return count; 692 int count = 2; local 703 while (node != NULL && count) { 727 count--;
|
/frameworks/av/media/libeffects/testlibs/ |
H A D | EffectReverb.c | 222 size_t count = inBuffer->frameCount; local 224 count *= 2; 225 while (count--) { 229 while (count--) { 1331 // Convert milliseconds to sample count => m_nEarlyDelay 1375 // Convert milliseconds to sample count => m_nDelay1Out + m_nMaxExcursion
|
/frameworks/av/media/libmedia/ |
H A D | AudioEffect.cpp | 433 uint32_t *count) 437 return aps->queryDefaultPreProcessing(audioSession, descriptors, count); 431 queryDefaultPreProcessing(int audioSession, effect_descriptor_t *descriptors, uint32_t *count) argument
|
H A D | IAudioPolicyService.cpp | 472 uint32_t *count) 474 if (descriptors == NULL || count == NULL) { 480 data.writeInt32(*count); 488 uint32_t numDesc = (retCount < *count) ? retCount : *count; 491 *count = retCount; 1023 uint32_t count = data.readInt32(); local 1024 if (count > AudioEffect::kMaxPreProcessing) { 1025 count = AudioEffect::kMaxPreProcessing; 1027 uint32_t retCount = count; 470 queryDefaultPreProcessing(int audioSession, effect_descriptor_t *descriptors, uint32_t *count) argument [all...] |
H A D | IDrm.cpp | 194 size_t count = reply.readInt32(); local 195 for (size_t i = 0; i < count; i++) { 251 uint32_t count = reply.readInt32(); local 252 for (size_t i = 0; i < count; i++) { 555 uint32_t count = data.readInt32(); local 556 for (size_t i = 0; i < count; ++i) { 614 size_t count = infoMap.size(); local 615 reply->writeInt32(count); 616 for (size_t i = 0; i < count; ++i) { 667 size_t count local [all...] |
H A D | IMediaCodecList.cpp | 104 size_t count = countCodecs(); local 105 if (count > INT32_MAX) { 106 count = INT32_MAX; 108 reply->writeInt32(count);
|
H A D | IMediaDeathNotifier.cpp | 92 size_t count = list.size(); local 93 for (size_t iter = 0; iter < count; ++iter) {
|
H A D | JetPlayer.cpp | 158 EAS_I32 count; local 203 result = EAS_Render(mEasData, p, pLibConfig->mixBufferSize, &count); 207 p += count * pLibConfig->numChannels; 208 num_output += count * pLibConfig->numChannels * sizeof(EAS_PCM);
|
H A D | MemoryLeakTrackUtil.cpp | 96 size_t count = overallSize / infoSize; local 98 snprintf(buffer, SIZE, " Allocation count %i\n", count); 103 AllocEntry * entries = new AllocEntry[count]; 105 for (size_t i = 0; i < count; i++) { 124 for (size_t i = 0; i < (count - 1); i++) { 150 for (size_t i = 0; i < count; i++) {
|
H A D | SoundPool.cpp | 533 ALOGE("Sample channel count (%d) out of range", numChannels); 735 size_t count = 0; local 739 count = sample->size() - mPos; 740 if (count > b->size) { 741 count = b->size; 743 memcpy(q, p, count); 744 // ALOGV("fill: q=%p, p=%p, mPos=%u, b->size=%u, count=%d", q, p, mPos, b->size, 745 // count); 747 count = mAudioBufferSize - mPos; 748 if (count > [all...] |
H A D | ToneGenerator.cpp | 1126 // Update pcm frame count and end time (current time at the end of this process) 1220 // Pre increment loop count and restart if total count not reached. Stop sequence otherwise 1548 // Description: Generates count samples of a sine wave and accumulates 1553 // count: number of samples to produce. 1561 unsigned int count, unsigned int command) { 1579 if (count == 0) { 1582 long dec = lAmplitude/count; 1584 while (count--) { 1595 while (count 1560 getSamples(short *outBuffer, unsigned int count, unsigned int command) argument [all...] |