summaryrefslogtreecommitdiff
path: root/utils
ModeNameSize
-rwxr-xr-xcheckstyle.py25680logplain
-rwxr-xr-xgen-controls.py6908logplain
-rwxr-xr-xgen-formats.py3547logplain
-rwxr-xr-xgen-header.sh623logplain
-rwxr-xr-xgen-ipa-priv-key.sh313logplain
-rwxr-xr-xgen-ipa-pub-key.py1261logplain
-rwxr-xr-xgen-version.sh1128logplain
d---------hooks113logplain
d---------ipc215logplain
d---------ipu3166logplain
-rw-r--r--meson.build357logplain
d---------raspberrypi79logplain
d---------rkisp145logplain
d---------tracepoints131logplain
-rwxr-xr-xupdate-kernel-headers.sh2252logplain
pan class="hl kwc">std::vector<unsigned int> formats; formats.reserve(data_.size()); /* \todo: Should this be cached instead of computed each time? */ for (auto const &it : data_) formats.push_back(it.first); return formats; } /** * \brief Retrieve all sizes for a specific format * \param[in] format The pixel format or mbus code * * Retrieve all size ranges for a specific format. For V4L2Device \a format is a * pixel format while for a V4L2Subdevice \a format is a media bus code. * * \return The list of image sizes supported for \a format, or an empty list if * the format is not supported */ const std::vector<SizeRange> &ImageFormats::sizes(unsigned int format) const { static const std::vector<SizeRange> empty; auto const &it = data_.find(format); if (it == data_.end()) return empty; return it->second; } /** * \brief Retrieve the map that associates formats to image sizes * \return The map that associates formats to image sizes */ const std::map<unsigned int, std::vector<SizeRange>> &ImageFormats::data() const { return data_; } } /* namespace libcamera */