|
RawSpeed
fast raw decoding library
|
#include "adt/Point.h"
Public Member Functions | |
| constexpr | iRectangle2D ()=default |
| constexpr | iRectangle2D (const iPoint2D &pos_, const iPoint2D &dim_) |
| constexpr | iRectangle2D (int w, int h) |
| constexpr | iRectangle2D (int x_pos, int y_pos, int w, int h) |
| constexpr int | getTop () const |
| constexpr int | getBottom () const |
| constexpr int | getLeft () const |
| constexpr int | getRight () const |
| constexpr int | getWidth () const |
| constexpr int | getHeight () const |
| constexpr iPoint2D | getTopLeft () const |
| constexpr iPoint2D | getBottomRight () const |
| constexpr iPoint2D | getTopRight () const |
| constexpr iPoint2D | getBottomLeft () const |
| constexpr bool RAWSPEED_READONLY | hasPositiveArea () const |
| constexpr bool RAWSPEED_READONLY | isPointInside (const iPoint2D &subPoint) const |
| constexpr bool RAWSPEED_READONLY | isPointInsideInclusive (const iPoint2D &subPoint) const |
| constexpr bool RAWSPEED_READONLY | isThisInside (const iRectangle2D &superRect) const |
| auto | area () const |
| void | offset (const iPoint2D &offset_) |
| void | setTopLeft (const iPoint2D &top_left) |
| void | setBottomRightAbsolute (const iPoint2D &bottom_right) |
| void | setAbsolute (const iPoint2D &top_left, const iPoint2D &bottom_right) |
| void | setAbsolute (int x1, int y1, int x2, int y2) |
| void | setSize (const iPoint2D &size) |
| bool | cropArea () |
| bool | cropOffsetToZero () |
| iRectangle2D | getOverlap (const iRectangle2D &other) const |
| iRectangle2D | combine (const iRectangle2D &other) const |
Public Attributes | |
| iPoint2D | pos {0, 0} |
| iPoint2D | dim {0, 0} |
|
constexprdefault |
Referenced by combine(), getOverlap(), and isThisInside().
|
inlineconstexpr |
|
inlineconstexpr |
|
inlinenodiscard |
Definition at line 151 of file Point.h.
References dim, and rawspeed::implicit_cast().
Referenced by rawspeed::RawImageData::clearArea().
|
inlinenodiscard |
Definition at line 210 of file Point.h.
References iRectangle2D(), getBottomRight(), pos, setAbsolute(), rawspeed::iPoint2D::x, and rawspeed::iPoint2D::y.
|
inline |
Definition at line 177 of file Point.h.
References dim, and hasPositiveArea().
Referenced by cropOffsetToZero().
|
inline |
Definition at line 186 of file Point.h.
References cropArea(), dim, pos, rawspeed::iPoint2D::x, and rawspeed::iPoint2D::y.
|
inlinenodiscardconstexpr |
Definition at line 118 of file Point.h.
Referenced by rawspeed::RawImageData::clearArea(), and rawspeed::anonymous_namespace{PanasonicV8Decompressor.cpp}::evaluateConsecutiveTiles().
|
inlinenodiscardconstexpr |
Definition at line 128 of file Point.h.
Referenced by rawspeed::anonymous_namespace{Cr2DecompressorImpl.h}::evaluateConsecutiveTiles(), rawspeed::anonymous_namespace{PanasonicV8Decompressor.cpp}::evaluateConsecutiveTiles(), and rawspeed::Cr2OutputTileIterator::operator++().
|
inlinenodiscardconstexpr |
Definition at line 124 of file Point.h.
Referenced by rawspeed::DngOpcodes::ROIOpcode::ROIOpcode(), combine(), rawspeed::anonymous_namespace{Cr2DecompressorImpl.h}::evaluateConsecutiveTiles(), rawspeed::anonymous_namespace{PanasonicV8Decompressor.cpp}::evaluateConsecutiveTiles(), getOverlap(), isPointInside(), isPointInsideInclusive(), isThisInside(), rawspeed::anonymous_namespace{PanasonicV8Decompressor.cpp}::isValidImageGrid(), and rawspeed::DngDecoder::parseACTIVEAREA().
|
inlinenodiscardconstexpr |
Definition at line 122 of file Point.h.
References dim.
Referenced by rawspeed::DngOpcodes::FixBadPixelsList::FixBadPixelsList(), rawspeed::anonymous_namespace{PanasonicV8Decompressor.cpp}::isValidImageGrid(), rawspeed::Cr2OutputTileIterator::operator*(), and rawspeed::Cr2OutputTileIterator::operator++().
|
inlinenodiscardconstexpr |
Definition at line 119 of file Point.h.
References pos.
Referenced by rawspeed::DngOpcodes::FixBadPixelsList::FixBadPixelsList(), rawspeed::DngOpcodes::PixelOpcode::applyOP(), rawspeed::RawImageData::clearArea(), and rawspeed::anonymous_namespace{Cr2DecompressorImpl.h}::evaluateConsecutiveTiles().
|
inlinenodiscard |
Definition at line 200 of file Point.h.
References iRectangle2D(), getBottomRight(), pos, setAbsolute(), rawspeed::iPoint2D::x, and rawspeed::iPoint2D::y.
Referenced by rawspeed::RawImageData::clearArea().
|
inlinenodiscardconstexpr |
Definition at line 120 of file Point.h.
Referenced by rawspeed::anonymous_namespace{Cr2DecompressorImpl.h}::evaluateConsecutiveTiles().
|
inlinenodiscardconstexpr |
Definition at line 117 of file Point.h.
References pos.
Referenced by rawspeed::DngOpcodes::FixBadPixelsList::FixBadPixelsList(), rawspeed::DngOpcodes::PixelOpcode::applyOP(), rawspeed::RawImageData::clearArea(), rawspeed::anonymous_namespace{Cr2DecompressorImpl.h}::evaluateConsecutiveTiles(), and rawspeed::Cr2OutputTileIterator::operator*().
|
inlinenodiscardconstexpr |
Definition at line 123 of file Point.h.
References pos.
Referenced by rawspeed::DngOpcodes::ROIOpcode::ROIOpcode(), rawspeed::anonymous_namespace{Cr2DecompressorImpl.h}::evaluateConsecutiveTiles(), rawspeed::anonymous_namespace{PanasonicV8Decompressor.cpp}::evaluateConsecutiveTiles(), isPointInside(), isPointInsideInclusive(), isThisInside(), and rawspeed::DngDecoder::parseACTIVEAREA().
|
inlinenodiscardconstexpr |
Definition at line 125 of file Point.h.
Referenced by rawspeed::anonymous_namespace{Cr2DecompressorImpl.h}::evaluateConsecutiveTiles(), and rawspeed::anonymous_namespace{PanasonicV8Decompressor.cpp}::evaluateConsecutiveTiles().
|
inlinenodiscardconstexpr |
Definition at line 121 of file Point.h.
References dim.
Referenced by rawspeed::DngOpcodes::FixBadPixelsList::FixBadPixelsList(), rawspeed::RawImageData::clearArea(), rawspeed::anonymous_namespace{PanasonicV8Decompressor.cpp}::isValidImageGrid(), and rawspeed::Cr2OutputTileIterator::operator++().
|
inlinenodiscardconstexpr |
Definition at line 131 of file Point.h.
References dim.
Referenced by cropArea(), rawspeed::anonymous_namespace{PanasonicV8Decompressor.cpp}::isValidImageGrid(), and rawspeed::RawImageData::subFrame().
|
inlinenodiscardconstexpr |
Definition at line 136 of file Point.h.
References getBottomRight(), and getTopLeft().
Referenced by rawspeed::DngOpcodes::FixBadPixelsList::FixBadPixelsList().
|
inlinenodiscardconstexpr |
Definition at line 141 of file Point.h.
References getBottomRight(), and getTopLeft().
Referenced by rawspeed::DngOpcodes::ROIOpcode::ROIOpcode(), rawspeed::DngDecoder::decodeMaskedAreas(), rawspeed::DngDecoder::handleMetadata(), and rawspeed::DngDecoder::parseACTIVEAREA().
|
inlinenodiscardconstexpr |
Definition at line 146 of file Point.h.
References iRectangle2D(), getBottomRight(), and getTopLeft().
Referenced by rawspeed::DngOpcodes::FixBadPixelsList::FixBadPixelsList(), rawspeed::anonymous_namespace{PanasonicV8Decompressor.cpp}::isValidImageGrid(), and rawspeed::DngDecoder::parseACTIVEAREA().
|
inline |
|
inline |
Definition at line 165 of file Point.h.
References pos, and setBottomRightAbsolute().
Referenced by combine(), getOverlap(), and setAbsolute().
|
inline |
Definition at line 169 of file Point.h.
References setAbsolute().
|
inline |
Definition at line 161 of file Point.h.
Referenced by rawspeed::DngDecoder::parseACTIVEAREA(), and setAbsolute().
|
inline |
|
inline |
Definition at line 158 of file Point.h.
References pos.
Referenced by rawspeed::DngDecoder::parseACTIVEAREA().
| iPoint2D rawspeed::iRectangle2D::dim {0, 0} |
Definition at line 221 of file Point.h.
Referenced by iRectangle2D(), iRectangle2D(), rawspeed::DngOpcodes::ROIOpcode::ROIOpcode(), rawspeed::DngOpcodes::TrimBounds::TrimBounds(), rawspeed::RafDecoder::applyCorrections(), area(), rawspeed::Cr2VerticalOutputStripIterator::coalesce(), cropArea(), cropOffsetToZero(), getBottom(), getBottomLeft(), getBottomRight(), getHeight(), rawspeed::anonymous_namespace{DngOpcodes.cpp}::getImageCropAsRectangle(), getRight(), getTopRight(), getWidth(), rawspeed::DngDecoder::handleMetadata(), hasPositiveArea(), rawspeed::Cr2OutputTileIterator::operator*(), rawspeed::operator==(), setBottomRightAbsolute(), setSize(), and rawspeed::RawImageData::subFrame().
| iPoint2D rawspeed::iRectangle2D::pos {0, 0} |
Definition at line 220 of file Point.h.
Referenced by iRectangle2D(), iRectangle2D(), rawspeed::DngOpcodes::TrimBounds::TrimBounds(), rawspeed::RafDecoder::applyCorrections(), combine(), cropOffsetToZero(), getBottom(), getBottomLeft(), getBottomRight(), rawspeed::anonymous_namespace{DngOpcodes.cpp}::getImageCropAsRectangle(), getLeft(), getOverlap(), getRight(), getTop(), getTopLeft(), getTopRight(), rawspeed::DngDecoder::handleMetadata(), rawspeed::anonymous_namespace{PanasonicV8Decompressor.cpp}::isValidImageGrid(), offset(), rawspeed::operator==(), setAbsolute(), setBottomRightAbsolute(), setTopLeft(), and rawspeed::RawImageData::subFrame().