Lines Matching refs:offset
251 uint32_t offset; member
255 : offset(offset_), in C2Segment()
264 return offset <= ~size; in isValid()
280 return offset <= other.offset in contains()
281 && offset + size >= other.offset + other.size; in contains()
289 return offset == other.offset && size == other.size;
315 return offset + size; in end()
320 return C2Segment(c2_max(offset, other.offset), in intersect()
321 c2_min(end(), other.end()) - c2_max(offset, other.offset)); in intersect()
326 return C2Segment(offset, c2_max(offset, end()) - offset); in normalize()
331 return C2Segment(offset, c2_min(size, ~offset)); in saturate()
379 inline constexpr uint32_t offset() const { return mOffset; } in offset() function
389 inline constexpr _C2LinearRangeAspect(uint32_t capacity_, size_t offset, size_t size) in _C2LinearRangeAspect() argument
391 mOffset(c2_min(offset, capacity())), in _C2LinearRangeAspect()
399 mOffset(other.offset()), in _C2LinearRangeAspect()
411 …inline constexpr _C2LinearRangeAspect(const _C2LinearCapacityAspect *parent, size_t offset, size_t… in _C2LinearRangeAspect() argument
413 mOffset(c2_min(offset, capacity())), in _C2LinearRangeAspect()
418 …inline constexpr _C2LinearRangeAspect(const _C2LinearRangeAspect *parent, size_t offset, size_t si… in _C2LinearRangeAspect() argument
420 mOffset(c2_min(c2_max(offset, parent == nullptr ? 0 : parent->offset()), capacity())), in _C2LinearRangeAspect()
425 inline constexpr _C2LinearRangeAspect childRange(size_t offset, size_t size) const { in childRange() argument
428 c2_min(c2_max(offset, mOffset), capacity()) - mOffset, in childRange()
429 c2_min(c2_min(size, mSize), capacity() - c2_min(c2_max(offset, mOffset), capacity()))); in childRange()
444 … inline constexpr C2LinearRange(const _C2LinearCapacityAspect &parent, size_t offset, size_t size) in C2LinearRange() argument
445 : _C2LinearRangeAspect(&parent, offset, size) { } in C2LinearRange()
447 inline constexpr C2LinearRange(const _C2LinearRangeAspect &parent, size_t offset, size_t size) in C2LinearRange() argument
448 : _C2LinearRangeAspect(&parent, offset, size) { } in C2LinearRange()
450 inline constexpr C2LinearRange intersect(size_t offset, size_t size) const { in intersect() argument
451 return C2LinearRange(*this, offset, size); in intersect()
463 inline constexpr C2LinearRange range(size_t offset, size_t size) const { in range() argument
464 return C2LinearRange(*this, offset, size); in range()
488 inline bool setOffset(uint32_t offset) { in setOffset() argument
489 if (offset > capacity()) { in setOffset()
493 if (offset > mOffset + mSize) { in setOffset()
496 mSize = mOffset + mSize - offset; in setOffset()
498 mOffset = offset; in setOffset()
525 inline void setOffset_be(uint32_t offset) { in setOffset_be() argument
526 (void)setOffset(c2_min(offset, capacity())); in setOffset_be()
779 size_t offset, size_t size, C2MemoryUsage usage, C2Fence *fence /* nullable */,
1035 C2ReadView subView(size_t offset, size_t size) const;
1049 C2ReadView(std::shared_ptr<Impl> impl, uint32_t offset, uint32_t size);
1123 C2ConstLinearBlock subBlock(size_t offset, size_t size) const;
1163 C2ConstLinearBlock share(size_t offset, size_t size, C2Fence fence);
1529 uint32_t offset; ///< offset of this plane inside of the root plane member