summaryrefslogtreecommitdiff
path: root/test
ModeNameSize
-rw-r--r--bayer-format.cpp6357logplain
-rw-r--r--byte-stream-buffer.cpp4689logplain
-rw-r--r--camera-sensor.cpp2955logplain
d---------camera269logplain
d---------controls220logplain
-rw-r--r--delayed_controls.cpp7990logplain
-rw-r--r--event-dispatcher.cpp2128logplain
-rw-r--r--event-thread.cpp2224logplain
-rw-r--r--event.cpp2437logplain
-rw-r--r--file-descriptor.cpp5306logplain
-rw-r--r--file.cpp7971logplain
-rw-r--r--geometry.cpp16077logplain
-rw-r--r--hotplug-cameras.cpp2951logplain
d---------ipa136logplain
d---------ipc127logplain
d---------libtest281logplain
d---------log121logplain
-rw-r--r--mapped-buffer.cpp2460logplain
d---------media_device296logplain
-rw-r--r--meson.build2456logplain
-rw-r--r--message.cpp4237logplain
-rw-r--r--object-delete.cpp1666logplain
-rw-r--r--object-invoke.cpp4441logplain
-rw-r--r--object.cpp3480logplain
d---------pipeline103logplain
-rw-r--r--pixel-format.cpp1089logplain
d---------process83logplain
-rw-r--r--public-api.cpp431logplain
d---------serialization293logplain
-rw-r--r--signal-threads.cpp2296logplain
-rw-r--r--signal.cpp7211logplain
-rw-r--r--span.cpp4578logplain
d---------stream85logplain
-rw-r--r--threads.cpp2441logplain
-rw-r--r--timer-thread.cpp1877logplain
-rw-r--r--timer.cpp4083logplain
-rw-r--r--utils.cpp6219logplain
d---------v4l2_compat86logplain
d---------v4l2_subdevice227logplain
d---------v4l2_videodevice538logplain
opt">::Transpose; if (!!(t1 & Transform::HFlip)) reordered |= Transform::VFlip; if (!!(t1 & Transform::VFlip)) reordered |= Transform::HFlip; } return reordered ^ t0; } /** * \brief Invert a transform * \param[in] t The transform to be inverted * * That is, we return the transform such that `t * (-t)` and `(-t) * t` both * yield the identity transform. */ Transform operator-(Transform t) { /* All are self-inverses, except for Rot270 and Rot90. */ static const Transform inverses[] = { Transform::Identity, Transform::HFlip, Transform::VFlip, Transform::HVFlip, Transform::Transpose, Transform::Rot90, Transform::Rot270, Transform::Rot180Transpose }; return inverses[static_cast<int>(t)]; } /** * \fn operator!(Transform t) * \brief Return `true` if the transform is the `Identity`, otherwise `false` * \param[in] t The transform to be tested */ /** * \fn operator~(Transform t) * \brief Return the transform with all the bits inverted individually * \param[in] t The transform of which the bits will be inverted * * This inverts the bits that encode the transform in a bitwise manner. Note * that this is not the proper inverse of transform \a t (for which use \a * operator-). */ /** * \brief Return the transform representing a rotation of the given angle * clockwise * \param[in] angle The angle of rotation in a clockwise sense. Negative values * can be used to represent anticlockwise rotations * \param[out] success Set to `true` if the angle is a multiple of 90 degrees, * otherwise `false` * \return The transform corresponding to the rotation if \a success was set to * `true`, otherwise the `Identity` transform */ Transform transformFromRotation(int angle, bool *success) { angle = angle % 360; if (angle < 0) angle += 360; if (success != nullptr) *success = true; switch (angle) { case 0: return Transform::Identity; case 90: return Transform::Rot90; case 180: return Transform::Rot180; case 270: return Transform::Rot270; } if (success != nullptr) *success = false; return Transform::Identity; } /** * \brief Return a character string describing the transform * \param[in] t The transform to be described. */ const char *transformToString(Transform t) { static const char *strings[] = { "identity", "hflip", "vflip", "hvflip", "transpose", "rot270", "rot90", "rot180transpose" }; return strings[static_cast<int>(t)]; } } /* namespace libcamera */