1#ifndef ZAO_ENDPOINT_VIDEO_VIDEO_FORMAT_HPP_ 
    2#define ZAO_ENDPOINT_VIDEO_VIDEO_FORMAT_HPP_ 
    4#include <linux/videodev2.h> 
   47  VideoFormat(
int width, 
int height, 
bool interlaced, 
double fps,
 
   48              uint32_t pixelformat, v4l2_quantization quantization,
 
   49              v4l2_colorspace colorspace) noexcept
 
   52        interlaced_(interlaced),
 
   54        pixelformat_(pixelformat),
 
   55        quantization_(quantization),
 
   56        colorspace_(colorspace) {}
 
   69  void GetFramerate(
int& numerator, 
int& denominator) 
const noexcept {
 
   72    numerator = 
static_cast<int>(fps_ * denominator);
 
   85  int GetWidth() const noexcept { 
return width_; }
 
  111    return interlaced_ ? height_ / 2 : height_;
 
  161    return ((this->width_ == other.width_) &&
 
  162            (this->height_ == other.height_) &&
 
  163            (this->interlaced_ == other.interlaced_) &&
 
  165            (std::abs(this->fps_ - other.fps_) < 0.01) &&
 
  166            (this->pixelformat_ == other.pixelformat_) &&
 
  167            (this->quantization_ == other.quantization_) &&
 
  168            (this->colorspace_ == other.colorspace_));
 
  187  bool interlaced_ = 
false;
 
  193  uint32_t pixelformat_ = 0;
 
  194  v4l2_quantization quantization_ =
 
  195      v4l2_quantization::V4L2_QUANTIZATION_DEFAULT;
 
  196  v4l2_colorspace colorspace_ = v4l2_colorspace::V4L2_COLORSPACE_DEFAULT;
 
Zao製品共通の名前空間
Definition FactoryInterface.hpp:11