Home
last modified time | relevance | path

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

/frameworks/av/media/codec2/tests/vndk/
DC2BufferTest.cpp33 static_assert(C2Segment(123u, 456u).offset == 123, ""); in StaticSegmentTest()
34 static_assert(C2Segment(123u, 456u).size == 456, ""); in StaticSegmentTest()
37 static_assert(!C2Segment(123u, 456u).isEmpty(), ""); in StaticSegmentTest()
38 static_assert(C2Segment(123u, 0u).isEmpty(), ""); in StaticSegmentTest()
41 static_assert(C2Segment(123u, 456u).isValid(), ""); in StaticSegmentTest()
42 static_assert(C2Segment(123u, ~123u).isValid(), ""); in StaticSegmentTest()
43 static_assert(!C2Segment(123u, 1 + ~123u).isValid(), ""); in StaticSegmentTest()
46 static_assert(C2Segment(123u, 456u), ""); in StaticSegmentTest()
47 static_assert((bool)C2Segment(123u, ~123u), ""); in StaticSegmentTest()
48 static_assert(!bool(C2Segment(123u, 1 + ~123u)), ""); in StaticSegmentTest()
[all …]
/frameworks/av/media/codec2/core/include/
DC2Buffer.h253 struct C2Segment { struct
257 inline constexpr C2Segment(uint32_t offset_, uint32_t size_) in C2Segment() argument
279 inline constexpr bool contains(const C2Segment &other) const { in contains() argument
288 inline constexpr bool operator==(const C2Segment &other) const {
296 inline constexpr bool operator!=(const C2Segment &other) const {
300 inline constexpr bool operator>=(const C2Segment &other) const {
304 inline constexpr bool operator>(const C2Segment &other) const {
308 inline constexpr bool operator<=(const C2Segment &other) const {
312 inline constexpr bool operator<(const C2Segment &other) const {
322 inline constexpr C2Segment intersect(const C2Segment &other) const { in intersect() argument
[all …]