/external/exoplayer/tree/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/wav/ |
D | WavHeaderReader.java | 52 ChunkHeader chunkHeader = ChunkHeader.peek(input, scratch); in peek() 66 chunkHeader = ChunkHeader.peek(input, scratch); in peek() 69 chunkHeader = ChunkHeader.peek(input, scratch); in peek() 117 ParsableByteArray scratch = new ParsableByteArray(ChunkHeader.SIZE_IN_BYTES); in skipToData() 119 ChunkHeader chunkHeader = ChunkHeader.peek(input, scratch); in skipToData() 124 long bytesToSkip = ChunkHeader.SIZE_IN_BYTES + chunkHeader.size; in skipToData() 127 bytesToSkip = ChunkHeader.SIZE_IN_BYTES + 4; in skipToData() 133 chunkHeader = ChunkHeader.peek(input, scratch); in skipToData() 136 input.skipFully(ChunkHeader.SIZE_IN_BYTES); in skipToData() 153 private static final class ChunkHeader { class in WavHeaderReader [all …]
|
/external/perfetto/include/perfetto/ext/tracing/core/ |
D | shared_memory_abi.h | 293 struct ChunkHeader { struct 361 uint8_t* payload_begin() const { return begin_ + sizeof(ChunkHeader); } in payload_begin() argument 363 PERFETTO_DCHECK(size_ >= sizeof(ChunkHeader)); in payload_size() 364 return size_ - sizeof(ChunkHeader); in payload_size() 372 ChunkHeader* header() { return reinterpret_cast<ChunkHeader*>(begin_); } in header() 395 ChunkHeader* chunk_header = header(); in IncrementPacketCount() 407 ChunkHeader* chunk_header = header(); in IncreasePacketCountTo() 417 void SetFlag(ChunkHeader::Flags flag) { in SetFlag() 418 ChunkHeader* chunk_header = header(); in SetFlag() 508 const ChunkHeader* header) { in TryAcquireChunkForWriting() [all …]
|
/external/webrtc/webrtc/common_audio/ |
D | wav_header.cc | 28 struct ChunkHeader { struct 32 static_assert(sizeof(ChunkHeader) == 8, "ChunkHeader size"); 37 ChunkHeader header; 46 const uint32_t kFmtSubchunkSize = sizeof(FmtSubchunk) - sizeof(ChunkHeader); 50 ChunkHeader header; 55 ChunkHeader header; 101 const size_t header_size = kWavHeaderSize - sizeof(ChunkHeader); in CheckWavParameters() 135 bytes_in_payload + kWavHeaderSize - sizeof(ChunkHeader)); in RiffChunkSize()
|
/external/perfetto/src/tracing/core/ |
D | trace_writer_impl.cc | 34 using ChunkHeader = perfetto::SharedMemoryABI::ChunkHeader; typedef 139 new_packet_count == ChunkHeader::Packets::kMaxCount; in NewTracePacket() 177 ChunkHeader::Packets packets = {}; in GetNewBuffer() 180 packets.flags = ChunkHeader::kFirstPacketContinuesFromPrevChunk; in GetNewBuffer() 186 ChunkHeader header = {}; in GetNewBuffer() 288 cur_chunk_.SetFlag(ChunkHeader::kLastPacketContinuesOnNextChunk); in GetNewBuffer() 327 cur_chunk_.SetFlag(ChunkHeader::kChunkNeedsPatching); in GetNewBuffer()
|
D | shared_memory_abi.cc | 64 inline void ClearChunkHeader(SharedMemoryABI::ChunkHeader* header) { in ClearChunkHeader() 96 static_assert(sizeof(ChunkHeader) == 8, "ChunkHeader size"); in Initialize() 97 static_assert(sizeof(ChunkHeader::chunk_id) == sizeof(ChunkID), in Initialize() 100 static_assert(sizeof(ChunkHeader::Packets) == 2, "ChunkHeader::Packets size"); in Initialize() 101 static_assert(alignof(ChunkHeader) == kChunkAlignment, in Initialize() 127 static_assert(sizeof(ChunkHeader::writer_id) == sizeof(WriterID), in Initialize() 129 ChunkHeader chunk_header{}; in Initialize() 162 const ChunkHeader* header) { in TryAcquireChunk() 193 ChunkHeader* new_header = chunk.header(); in TryAcquireChunk()
|
D | trace_writer_impl_unittest.cc | 130 SharedMemoryABI::ChunkHeader::kChunkNeedsPatching); in TEST_P() 132 SharedMemoryABI::ChunkHeader::kLastPacketContinuesOnNextChunk); in TEST_P() 205 SharedMemoryABI::ChunkHeader::kChunkNeedsPatching); in TEST_P() 207 SharedMemoryABI::ChunkHeader::kLastPacketContinuesOnNextChunk); in TEST_P() 243 SharedMemoryABI::ChunkHeader::kChunkNeedsPatching); in TEST_P() 246 SharedMemoryABI::ChunkHeader::kFirstPacketContinuesFromPrevChunk); in TEST_P() 248 SharedMemoryABI::ChunkHeader::kLastPacketContinuesOnNextChunk); in TEST_P() 345 SharedMemoryABI::ChunkHeader::kChunkNeedsPatching); in TEST_P() 348 SharedMemoryABI::ChunkHeader::kFirstPacketContinuesFromPrevChunk); in TEST_P() 350 SharedMemoryABI::ChunkHeader::kLastPacketContinuesOnNextChunk); in TEST_P()
|
D | shared_memory_abi_unittest.cc | 29 using ChunkHeader = SharedMemoryABI::ChunkHeader; typedef 90 ChunkHeader header{}; in TEST_P() 115 ASSERT_EQ(expected_chunk_size - sizeof(SharedMemoryABI::ChunkHeader), in TEST_P() 140 SharedMemoryABI::ChunkHeader::kLastPacketContinuesOnNextChunk); in TEST_P() 143 SharedMemoryABI::ChunkHeader::kLastPacketContinuesOnNextChunk); in TEST_P()
|
D | trace_buffer.cc | 57 SharedMemoryABI::ChunkHeader::kFirstPacketContinuesFromPrevChunk; 59 SharedMemoryABI::ChunkHeader::kLastPacketContinuesOnNextChunk; 61 SharedMemoryABI::ChunkHeader::kChunkNeedsPatching; 79 sizeof(SharedMemoryABI::ChunkHeader), in TraceBuffer()
|
D | shared_memory_arbiter_impl.h | 106 SharedMemoryABI::Chunk GetNewChunk(const SharedMemoryABI::ChunkHeader&,
|
D | trace_buffer_unittest.cc | 46 SharedMemoryABI::ChunkHeader::kFirstPacketContinuesFromPrevChunk; 48 SharedMemoryABI::ChunkHeader::kLastPacketContinuesOnNextChunk; 50 SharedMemoryABI::ChunkHeader::kChunkNeedsPatching;
|
D | shared_memory_arbiter_impl.cc | 93 const SharedMemoryABI::ChunkHeader& header, in GetNewChunk()
|
D | tracing_service_impl.cc | 3059 const SharedMemoryABI::ChunkHeader& chunk_header = *chunk.header(); in CommitData()
|
/external/perfetto/src/tracing/test/ |
D | fake_packet.cc | 113 SharedMemoryABI::ChunkHeader::kFirstPacketContinuesFromPrevChunk) || in AddPacket() 116 !(flags & SharedMemoryABI::ChunkHeader::kLastPacketContinuesOnNextChunk)); in AddPacket()
|
/external/compiler-rt/lib/asan/ |
D | asan_allocator.cc | 71 struct ChunkHeader { struct 89 struct ChunkBase : ChunkHeader { 94 static const uptr kChunkHeaderSize = sizeof(ChunkHeader);
|