Home
last modified time | relevance | path

Searched refs:ChunkHeader (Results 1 – 14 of 14) sorted by relevance

/external/exoplayer/tree/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/wav/
DWavHeaderReader.java52 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/
Dshared_memory_abi.h293 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/
Dwav_header.cc28 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/
Dtrace_writer_impl.cc34 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()
Dshared_memory_abi.cc64 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()
Dtrace_writer_impl_unittest.cc130 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()
Dshared_memory_abi_unittest.cc29 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()
Dtrace_buffer.cc57 SharedMemoryABI::ChunkHeader::kFirstPacketContinuesFromPrevChunk;
59 SharedMemoryABI::ChunkHeader::kLastPacketContinuesOnNextChunk;
61 SharedMemoryABI::ChunkHeader::kChunkNeedsPatching;
79 sizeof(SharedMemoryABI::ChunkHeader), in TraceBuffer()
Dshared_memory_arbiter_impl.h106 SharedMemoryABI::Chunk GetNewChunk(const SharedMemoryABI::ChunkHeader&,
Dtrace_buffer_unittest.cc46 SharedMemoryABI::ChunkHeader::kFirstPacketContinuesFromPrevChunk;
48 SharedMemoryABI::ChunkHeader::kLastPacketContinuesOnNextChunk;
50 SharedMemoryABI::ChunkHeader::kChunkNeedsPatching;
Dshared_memory_arbiter_impl.cc93 const SharedMemoryABI::ChunkHeader& header, in GetNewChunk()
Dtracing_service_impl.cc3059 const SharedMemoryABI::ChunkHeader& chunk_header = *chunk.header(); in CommitData()
/external/perfetto/src/tracing/test/
Dfake_packet.cc113 SharedMemoryABI::ChunkHeader::kFirstPacketContinuesFromPrevChunk) || in AddPacket()
116 !(flags & SharedMemoryABI::ChunkHeader::kLastPacketContinuesOnNextChunk)); in AddPacket()
/external/compiler-rt/lib/asan/
Dasan_allocator.cc71 struct ChunkHeader { struct
89 struct ChunkBase : ChunkHeader {
94 static const uptr kChunkHeaderSize = sizeof(ChunkHeader);