Zao SDK for Jetson / libzao-endpoint API リファレンス 1.5.0.0 (2024-09-25)
Loading...
Searching...
No Matches
Public Member Functions | List of all members
zao::endpoint::video::VideoFormat Class Reference

映像のフォーマット情報 More...

#include <VideoFormat.hpp>

Public Member Functions

 VideoFormat () noexcept
 VideoFormatオブジェクトをデフォルト構築する。
 
 VideoFormat (int width, int height, bool interlaced, double fps, uint32_t pixelformat, v4l2_quantization quantization, v4l2_colorspace colorspace) noexcept
 VideoFormatオブジェクトを初期値付きで構築する。
 
void GetFramerate (int &numerator, int &denominator) const noexcept
 フレームレートの分子と分母を取得する。
 
double GetFramerate () const noexcept
 フレームレートを浮動小数点で取得する。
 
int GetWidth () const noexcept
 ピクチャの横幅をピクセル数で取得する。
 
int GetHeight () const noexcept
 ピクチャの高さをピクセル数で取得する。
 
int GetFieldHeight () const noexcept
 フィールドの高さをピクセル数で取得する。
 
bool GetInterlaced () const noexcept
 インターレース方式か否かを取得する。
 
uint32_t GetPixelFormat () const noexcept
 ピクセルフォーマットを取得する。
 
v4l2_quantization GetQuantization () const noexcept
 Limited rangeかFull rangeかを取得する。
 
v4l2_colorspace GetColorSpace () const noexcept
 色空間を取得する。
 
bool operator== (const VideoFormat &other) const
 VideoFormat同士を等値比較する
 
bool operator!= (const VideoFormat &other) const
 VideoFormat同士を非等値比較する
 

Detailed Description

映像のフォーマット情報

Constructor & Destructor Documentation

◆ VideoFormat() [1/2]

zao::endpoint::video::VideoFormat::VideoFormat ( )
inlinenoexcept

VideoFormatオブジェクトをデフォルト構築する。

Note
各フィールドは無効な値で初期化される。

◆ VideoFormat() [2/2]

zao::endpoint::video::VideoFormat::VideoFormat ( int  width,
int  height,
bool  interlaced,
double  fps,
uint32_t  pixelformat,
v4l2_quantization  quantization,
v4l2_colorspace  colorspace 
)
inlinenoexcept

VideoFormatオブジェクトを初期値付きで構築する。

Parameters
widthピクチャの横幅
heightピクチャの高さ
interlacedインターレース方式か否か
fpsフレームレート
pixelformatV4L2固有ピクセルフォーマット
quantizationLimited rangeかFull rangeか
colorspace色空間

Member Function Documentation

◆ GetColorSpace()

v4l2_colorspace zao::endpoint::video::VideoFormat::GetColorSpace ( ) const
inlinenoexcept

色空間を取得する。

Note
V4L2固有パラメータ

◆ GetFieldHeight()

int zao::endpoint::video::VideoFormat::GetFieldHeight ( ) const
inlinenoexcept

フィールドの高さをピクセル数で取得する。

Note
インターレース方式の場合 GetHeight() の半分の値が返却される。
プログレッシブ方式の場合 GetHeight() と同じ値が返却される。
See also
GetHeight()

◆ GetFramerate()

void zao::endpoint::video::VideoFormat::GetFramerate ( int &  numerator,
int &  denominator 
) const
inlinenoexcept

フレームレートの分子と分母を取得する。

Parameters
numerator分子の格納先
denominator分母の格納先

◆ GetHeight()

int zao::endpoint::video::VideoFormat::GetHeight ( ) const
inlinenoexcept

ピクチャの高さをピクセル数で取得する。

Note
インターレース方式の場合、元画像(または表示画像)の高さを示し、 実際の1フィールド分データの高さは GetHeight() の半分になる。
See also
GetFieldHeight()

◆ GetInterlaced()

bool zao::endpoint::video::VideoFormat::GetInterlaced ( ) const
inlinenoexcept

インターレース方式か否かを取得する。

Return values
trueインターレース方式である
falseプログレッシブ方式である

◆ GetPixelFormat()

uint32_t zao::endpoint::video::VideoFormat::GetPixelFormat ( ) const
inlinenoexcept

ピクセルフォーマットを取得する。

Note
V4L2固有パラメータ

◆ GetQuantization()

v4l2_quantization zao::endpoint::video::VideoFormat::GetQuantization ( ) const
inlinenoexcept

Limited rangeかFull rangeかを取得する。

Note
V4L2固有パラメータ

◆ operator!=()

bool zao::endpoint::video::VideoFormat::operator!= ( const VideoFormat other) const
inline

VideoFormat同士を非等値比較する

Parameters
other比較対象
Return values
true一致しない
false一致する

◆ operator==()

bool zao::endpoint::video::VideoFormat::operator== ( const VideoFormat other) const
inline

VideoFormat同士を等値比較する

Parameters
other比較対象
Return values
true一致する
false一致しない

The documentation for this class was generated from the following file: