Banuba SDK
Public Member Functions | Public Attributes | List of all members
bnb::image_format Struct Reference

A structure stores format information about image. More...

#include <full_image.hpp>

Public Member Functions

uint32_t size () const noexcept
 
 image_format ()=default
 Construct a new image format object with default values.
 
 image_format (uint32_t width, uint32_t height, camera_orientation orientation, bool require_mirroring, int face_orientation, std::optional< float > fov=std::nullopt)
 Construct a new image format object with user's params. More...
 

Public Attributes

uint32_t width = 0
 It is a width of image in pixels.
 
uint32_t height = 0
 It is a height of image in pixels.
 
std::optional< float > fov = std::nullopt
 It is a field of view in degrees.
 
camera_orientation orientation = camera_orientation::deg_270
 It is a camera orientation in degrees as enum value (. More...
 
bool require_mirroring = false
 This value is responsible for mirroring image during rendering.
 
int face_orientation = 0
 It is a face orientation in degrees.
 

Detailed Description

A structure stores format information about image.

Definition at line 85 of file full_image.hpp.

Constructor & Destructor Documentation

◆ image_format()

bnb::image_format::image_format ( uint32_t  width,
uint32_t  height,
camera_orientation  orientation,
bool  require_mirroring,
int  face_orientation,
std::optional< float >  fov = std::nullopt 
)

Construct a new image format object with user's params.

Parameters
widthis a width of image in pixels.
heightis a height of image in pixels.
orientationis a camera orientation in degrees as enum value (
See also
camera_orientation).
Parameters
require_mirroringis a variable responsible for mirroring image during rendering, i.e. if it is true the image will mirror during rendering and won't in another way.
face_orientationis a face orientation in degrees.
fovis a field of view in degrees.

Member Function Documentation

◆ size()

uint32_t bnb::image_format::size ( ) const
noexcept
Returns
Returns the image size in pixels, i.e. width * height.

Member Data Documentation

◆ orientation

camera_orientation bnb::image_format::orientation = camera_orientation::deg_270

It is a camera orientation in degrees as enum value (.

See also
camera_orientation).

Definition at line 95 of file full_image.hpp.


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