Lines Matching refs:crop
1591 inline constexpr _C2PlanarSectionAspect(uint32_t width, uint32_t height, const C2Rect &crop) in _C2PlanarSectionAspect() argument
1593 mCrop(C2Rect(std::min(width - std::min(crop.left, width), crop.width), in _C2PlanarSectionAspect()
1594 std::min(height - std::min(crop.top, height), crop.height)).at( in _C2PlanarSectionAspect()
1595 std::min(crop.left, width), in _C2PlanarSectionAspect()
1596 std::min(crop.height, height))) { in _C2PlanarSectionAspect()
1602 inline constexpr C2Rect crop() const { return mCrop; } in crop() function
1607 inline constexpr _C2PlanarSectionAspect childSection(const C2Rect &crop) const { in childSection() argument
1611 C2Rect(c2_min(mCrop.right() - c2_clamp(mCrop.left, crop.left, mCrop.right()), in childSection()
1612 crop.width), in childSection()
1613 c2_min(mCrop.bottom() - c2_clamp(mCrop.top, crop.top, mCrop.bottom()), in childSection()
1614 crop.height)) in childSection()
1615 .at(c2_clamp(mCrop.left, crop.left, mCrop.right()) - mCrop.left, in childSection()
1616 c2_clamp(mCrop.top, crop.top, mCrop.bottom()) - mCrop.top)); in childSection()
1623 … inline constexpr _C2PlanarSectionAspect(const _C2PlanarCapacityAspect *parent, const C2Rect &crop) in _C2PlanarSectionAspect() argument
1625 mCrop(parent == nullptr ? C2Rect() : ((C2Rect)*parent).intersect(crop).normalize()) { } in _C2PlanarSectionAspect()
1627 … inline constexpr _C2PlanarSectionAspect(const _C2PlanarSectionAspect *parent, const C2Rect &crop) in _C2PlanarSectionAspect() argument
1629 mCrop(parent == nullptr ? C2Rect() : parent->crop().intersect(crop).normalize()) { } in _C2PlanarSectionAspect()
1650 inline constexpr C2Rect crop() const { return mCrop; } in crop() function
1655 inline void setCrop_be(const C2Rect &crop) { in setCrop_be() argument
1656 mCrop.left = std::min(width(), crop.left); in setCrop_be()
1657 mCrop.top = std::min(height(), crop.top); in setCrop_be()
1659 mCrop.width = std::min(width() - mCrop.left, crop.width); in setCrop_be()
1660 mCrop.height = std::min(height() - mCrop.top, crop.height); in setCrop_be()
1668 inline bool setCrop(const C2Rect &crop) { in setCrop() argument
1669 if (width() < crop.width || height() < crop.height in setCrop()
1670 || width() - crop.width < crop.left || height() - crop.height < crop.top) { in setCrop()
1673 mCrop = crop; in setCrop()
1684 inline constexpr C2PlanarSection(const _C2PlanarCapacityAspect &parent, const C2Rect &crop) in C2PlanarSection() argument
1685 : _C2PlanarSectionAspect(&parent, crop) { } in C2PlanarSection()
1687 inline constexpr C2PlanarSection(const _C2PlanarSectionAspect &parent, const C2Rect &crop) in C2PlanarSection() argument
1688 : _C2PlanarSectionAspect(&parent, crop) { } in C2PlanarSection()
1690 inline constexpr C2PlanarSection intersect(const C2Rect &crop) const { in intersect() argument
1691 return C2PlanarSection(*this, crop); in intersect()
1704 inline constexpr C2PlanarSection section(const C2Rect &crop) const { in section() argument
1705 return C2PlanarSection(*this, crop); in section()
1949 C2ConstGraphicBlock share(const C2Rect &crop, C2Fence fence);