Open CASCADE Technology  7.4.0
Public Member Functions | Data Fields

Image_VideoParams Struct Reference

Auxiliary structure defining video parameters. Please refer to FFmpeg documentation for defining text values. More...

#include <Image_VideoRecorder.hxx>

Public Member Functions

 Image_VideoParams ()
 Empty constructor. More...
 
void SetFramerate (const Standard_Integer theNumerator, const Standard_Integer theDenominator)
 Setup playback FPS. More...
 
void SetFramerate (const Standard_Integer theValue)
 Setup playback FPS. For fixed-fps content, timebase should be 1/framerate and timestamp increments should be identical to 1. More...
 

Data Fields

TCollection_AsciiString Format
 [optional] video format (container), if empty - will be determined from the file name More...
 
TCollection_AsciiString VideoCodec
 [optional] codec identifier, if empty - default codec from file format will be used More...
 
TCollection_AsciiString PixelFormat
 [optional] pixel format, if empty - default codec pixel format will be used More...
 
Standard_Integer Width
 [mandatory] video frame width More...
 
Standard_Integer Height
 [mandatory] video frame height More...
 
Standard_Integer FpsNum
 [mandatory] framerate numerator More...
 
Standard_Integer FpsDen
 [mandatory] framerate denumerator More...
 
Resource_DataMapOfAsciiStringAsciiString VideoCodecParams
 map of advanced video codec parameters More...
 

Detailed Description

Auxiliary structure defining video parameters. Please refer to FFmpeg documentation for defining text values.

Constructor & Destructor Documentation

◆ Image_VideoParams()

Image_VideoParams::Image_VideoParams ( )
inline

Empty constructor.

Member Function Documentation

◆ SetFramerate() [1/2]

void Image_VideoParams::SetFramerate ( const Standard_Integer  theNumerator,
const Standard_Integer  theDenominator 
)
inline

Setup playback FPS.

◆ SetFramerate() [2/2]

void Image_VideoParams::SetFramerate ( const Standard_Integer  theValue)
inline

Setup playback FPS. For fixed-fps content, timebase should be 1/framerate and timestamp increments should be identical to 1.

Field Documentation

◆ Format

TCollection_AsciiString Image_VideoParams::Format

[optional] video format (container), if empty - will be determined from the file name

◆ FpsDen

Standard_Integer Image_VideoParams::FpsDen

[mandatory] framerate denumerator

◆ FpsNum

Standard_Integer Image_VideoParams::FpsNum

[mandatory] framerate numerator

◆ Height

Standard_Integer Image_VideoParams::Height

[mandatory] video frame height

◆ PixelFormat

TCollection_AsciiString Image_VideoParams::PixelFormat

[optional] pixel format, if empty - default codec pixel format will be used

◆ VideoCodec

TCollection_AsciiString Image_VideoParams::VideoCodec

[optional] codec identifier, if empty - default codec from file format will be used

◆ VideoCodecParams

Resource_DataMapOfAsciiStringAsciiString Image_VideoParams::VideoCodecParams

map of advanced video codec parameters

◆ Width

Standard_Integer Image_VideoParams::Width

[mandatory] video frame width


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