summaryrefslogtreecommitdiff
path: root/src/qcam/viewfinder_gl.h
diff options
context:
space:
mode:
authorNĂ­colas F. R. A. Prado <nfraprado@collabora.com>2021-03-17 16:28:29 -0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2021-03-19 01:56:33 +0200
commit30a4e7804322958b25d816e505eb7ea593069f35 (patch)
tree06e8ccf15c4c32af2417a4c6e47a5f1259701f3a /src/qcam/viewfinder_gl.h
parentd32accd6540ddd99225f0b87aff662651dd8d9d1 (diff)
Documentation: sensor-driver: Fix links to V4L2 documentation
Fix some links to the V4L2 documentation. The first one is indeed pointing to the wrong page. The second one has a highlight embedded, so not necessarily wrong, but not needed, so clean it up as well. Signed-off-by: NĂ­colas F. R. A. Prado <nfraprado@collabora.com> Reviewed-by: Sebastian Fricke <sebastian.fricke@posteo.net> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'src/qcam/viewfinder_gl.h')
0 files changed, 0 insertions, 0 deletions
span> /* * CamHelpers get registered by static RegisterCamHelper * initialisers. */ for (auto &p : cam_helpers) { if (cam_name.find(p.first) != std::string::npos) return p.second(); } return nullptr; } CamHelper::CamHelper(MdParser *parser) : parser_(parser), initialized_(false) { } CamHelper::~CamHelper() { delete parser_; } uint32_t CamHelper::ExposureLines(double exposure_us) const { assert(initialized_); return exposure_us * 1000.0 / mode_.line_length; } double CamHelper::Exposure(uint32_t exposure_lines) const { assert(initialized_); return exposure_lines * mode_.line_length / 1000.0; } void CamHelper::SetCameraMode(const CameraMode &mode) { mode_ = mode; parser_->SetBitsPerPixel(mode.bitdepth); parser_->SetLineLengthBytes(0); /* We use SetBufferSize. */ initialized_ = true; } void CamHelper::GetDelays(int &exposure_delay, int &gain_delay) const { /* * These values are correct for many sensors. Other sensors will * need to over-ride this method. */ exposure_delay = 2; gain_delay = 1; } bool CamHelper::SensorEmbeddedDataPresent() const { return false; } unsigned int CamHelper::HideFramesStartup() const { /* * By default, hide 6 frames completely at start-up while AGC etc. sort * themselves out (converge). */ return 6; } unsigned int CamHelper::HideFramesModeSwitch() const { /* After a mode switch, many sensors return valid frames immediately. */ return 0; } unsigned int CamHelper::MistrustFramesStartup() const { /* Many sensors return a single bad frame on start-up. */ return 1; } unsigned int CamHelper::MistrustFramesModeSwitch() const { /* Many sensors return valid metadata immediately. */ return 0; } CamTransform CamHelper::GetOrientation() const { /* Most sensors will be mounted the "right" way up? */ return CamTransform_IDENTITY; } RegisterCamHelper::RegisterCamHelper(char const *cam_name, CamHelperCreateFunc create_func) { cam_helpers[std::string(cam_name)] = create_func; }