Home
last modified time | relevance | path

Searched refs:C2Segment (Results 1 – 2 of 2) sorted by relevance

/hardware/google/av/codec2/tests/vndk/
DC2BufferTest.cpp32 static_assert(C2Segment(123u, 456u).offset == 123, ""); in StaticSegmentTest()
33 static_assert(C2Segment(123u, 456u).size == 456, ""); in StaticSegmentTest()
36 static_assert(!C2Segment(123u, 456u).isEmpty(), ""); in StaticSegmentTest()
37 static_assert(C2Segment(123u, 0u).isEmpty(), ""); in StaticSegmentTest()
40 static_assert(C2Segment(123u, 456u).isValid(), ""); in StaticSegmentTest()
41 static_assert(C2Segment(123u, ~123u).isValid(), ""); in StaticSegmentTest()
42 static_assert(!C2Segment(123u, 1 + ~123u).isValid(), ""); in StaticSegmentTest()
45 static_assert(C2Segment(123u, 456u), ""); in StaticSegmentTest()
46 static_assert((bool)C2Segment(123u, ~123u), ""); in StaticSegmentTest()
47 static_assert(!bool(C2Segment(123u, 1 + ~123u)), ""); in StaticSegmentTest()
[all …]
/hardware/google/av/codec2/include/
DC2Buffer.h250 struct C2Segment { struct
254 inline constexpr C2Segment(uint32_t offset_, uint32_t size_) in C2Segment() argument
276 inline constexpr bool contains(const C2Segment &other) const { in contains() argument
285 inline constexpr bool operator==(const C2Segment &other) const {
293 inline constexpr bool operator!=(const C2Segment &other) const {
297 inline constexpr bool operator>=(const C2Segment &other) const {
301 inline constexpr bool operator>(const C2Segment &other) const {
305 inline constexpr bool operator<=(const C2Segment &other) const {
309 inline constexpr bool operator<(const C2Segment &other) const {
319 inline constexpr C2Segment intersect(const C2Segment &other) const { in intersect() argument
[all …]