/frameworks/av/camera/ |
H A D | CameraBase.cpp | 238 int32_t count; local 241 &count); 245 count = 0; 247 return count;
|
/frameworks/av/camera/include/camera/ndk/ |
H A D | NdkCameraMetadata.h | 110 * Count of elements (NOT count of bytes) in this metadata entry. 112 uint32_t count; member in struct:ACameraMetadata_entry 117 * <p>The type field above defines which union member pointer is valid. The count field above 155 * Count of elements (NOT count of bytes) in this metadata entry. 157 uint32_t count; member in struct:ACameraMetadata_const_entry 162 * <p>The type field above defines which union member pointer is valid. The count field above
|
/frameworks/av/camera/ndk/impl/ |
H A D | ACameraMetadata.cpp | 66 if (entry.count == 0 || entry.type != TYPE_BYTE) { 67 ALOGE("%s: malformed available capability key! count %zu, type %d", 68 __FUNCTION__, entry.count, entry.type); 73 capabilities.setCapacity(entry.count); 74 for (size_t i = 0; i < entry.count; i++) { 92 if (entry.count == 0 || entry.count % 4 || entry.type != TYPE_INT32) { 93 ALOGE("%s: malformed available stream configuration key! count %zu, type %d", 94 __FUNCTION__, entry.count, entry.type); 99 filteredStreamConfigs.setCapacity(entry.count); 180 update(uint32_t tag, uint32_t count, const uint8_t* data) argument 185 update(uint32_t tag, uint32_t count, const int32_t* data) argument 190 update(uint32_t tag, uint32_t count, const float* data) argument 195 update(uint32_t tag, uint32_t count, const double* data) argument 200 update(uint32_t tag, uint32_t count, const int64_t* data) argument 205 update(uint32_t tag, uint32_t count, const ACameraMetadata_rational* data) argument [all...] |
H A D | ACameraMetadata.h | 51 camera_status_t update(uint32_t tag, uint32_t count, const uint8_t* data); 52 camera_status_t update(uint32_t tag, uint32_t count, const int32_t* data); 53 camera_status_t update(uint32_t tag, uint32_t count, const float* data); 54 camera_status_t update(uint32_t tag, uint32_t count, const double* data); 55 camera_status_t update(uint32_t tag, uint32_t count, const int64_t* data); 56 camera_status_t update(uint32_t tag, uint32_t count, const ACameraMetadata_rational* data); 70 camera_status_t updateImpl(uint32_t tag, uint32_t count, const NDK_T* data) { argument 83 if (count == 0 && data == nullptr) { 88 ret = mData.update(tag, reinterpret_cast<const INTERNAL_T*>(data), count);
|
/frameworks/av/drm/libmediadrm/ |
H A D | IDrm.cpp | 234 size_t count = reply.readInt32(); local 235 for (size_t i = 0; i < count; i++) { 291 uint32_t count = reply.readInt32(); local 292 for (size_t i = 0; i < count; i++) { 640 uint32_t count = data.readInt32(); local 641 for (size_t i = 0; i < count; ++i) { 701 size_t count = infoMap.size(); local 702 reply->writeInt32(count); 703 for (size_t i = 0; i < count; ++i) { 746 size_t count local [all...] |
/frameworks/av/drm/mediacas/plugins/clearkey/ |
H A D | ecm.cpp | 155 size_t count = (count_bytes[0] << 8) | count_bytes[1]; local 156 // Check that count is a legal value. 157 if (!CountLegal(count)) { 158 ALOGE("Invalid descriptor count: expected %zu <= count <= %zu, received %zu.", 159 kMinDescriptorCount, kMaxDescriptorCount, count); 163 if (count > kMinDescriptorCount) { 165 kCountSizeBytes + (count * EcmDescriptor::kSizeBytes); 172 set_count(count);
|
H A D | ecm.h | 58 // This contains 1 or 2 EcmDescriptors and a count. It contains no 249 // Contains a count and 1 or 2 EcmDescriptors. This is included in the video 254 // Wire size of the count field. 272 // - INTERNAL if the EcmContainer is in a bad state (count != 0, 1, or 2). 274 // - count() is within bounds (1 or 2). 282 // - ERROR_OUT_OF_RANGE if the count contained in the serialized EcmContainer 286 // - count() is within bounds (1 or 2) and. 291 // Sets the |count| of contained EcmDecriptors. Illegal values are silently 293 inline void set_count(size_t count) { argument 294 if (!CountLegal(count)) retur 299 inline size_t count() const { return count_; } function in class:android::clearkeycas::EcmContainer [all...] |
/frameworks/av/include/camera/ndk/ |
H A D | NdkCameraMetadata.h | 110 * Count of elements (NOT count of bytes) in this metadata entry. 112 uint32_t count; member in struct:ACameraMetadata_entry 117 * <p>The type field above defines which union member pointer is valid. The count field above 155 * Count of elements (NOT count of bytes) in this metadata entry. 157 uint32_t count; member in struct:ACameraMetadata_const_entry 162 * <p>The type field above defines which union member pointer is valid. The count field above
|
/frameworks/av/include/media/ |
H A D | MediaAnalyticsItem.h | 109 int32_t count() const; 115 void setRate(Attr, int64_t count, int64_t duration); 123 void addRate(Attr, int64_t count, int64_t duration); 131 bool getRate(Attr, int64_t *count, int64_t *duration, double *rate); 146 int32_t filter(int count, Attr attrs[]); 147 int32_t filterNot(int count, Attr attrs[]); 215 struct { int64_t count, duration; } rate; member in struct:android::MediaAnalyticsItem::Prop::__anon81::__anon82
|
H A D | VolumeShaper.h | 1011 size_t count = 0; local 1013 count += (shaper.mConfiguration->getId() >= VolumeShaper::kSystemVolumeShapersMax); 1015 return count;
|
/frameworks/av/include/media/stagefright/ |
H A D | DataSource.h | 76 // Reads in "count" entries of type T into vector *x. 77 // Returns true if "count" entries can be read. 78 // If fewer than "count" entries can be read, return false. In this case, 87 bool getVector(off64_t offset, Vector<T>* x, size_t count, 136 bool DataSource::getVector(off64_t offset, Vector<T>* x, size_t count, argument 143 if (count == 0) { 152 for (i = 0; i + chunkSize < count; i += chunkSize) { 169 // There are (count - i) more records to read. 170 // Right now, (count - i) <= chunkSize. 171 // We do the same thing as above, but with chunkSize replaced by count [all...] |
/frameworks/av/include/media/stagefright/foundation/ |
H A D | AData.h | 487 static constexpr Flag count = num_types + 1; member in struct:android::AData::flagger 492 static constexpr Flag mask = _Flagged_helper::minMask<Flag>(count); ///< flag mask 550 static constexpr Flag count = num_types + 1; member in struct:android::AData::relaxed_flagger 551 static_assert(std::numeric_limits<Flag>::max() / count > (MaxSize / Align), 573 _Flagged_helper::minMask<Flag>(count * max_size_stored); ///< flag mask
|
/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 | 48 uint32_t count = convertToBigEndian(mCount); local 49 memcpy(buf, &count, sizeof(count)); 50 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 | 291 uint32_t count = subIfdList.size(); local 292 if (buildEntry(subIfdTag, count, subIfdList.array(), &subIfds) < 0) {
|
/frameworks/av/media/libaudioclient/ |
H A D | AudioEffect.cpp | 439 uint32_t *count) 443 return aps->queryDefaultPreProcessing(audioSession, descriptors, count); 437 queryDefaultPreProcessing(audio_session_t audioSession, effect_descriptor_t *descriptors, uint32_t *count) argument
|