tinypbrt 1.1.1
pbrt-v4 scene file parser for C11 with a header-only C++20 wrapper
Loading...
Searching...
No Matches
tpbrt_film_t Struct Reference

PBRT film representation. More...

#include <tinypbrt/detail/film.h>

Data Fields

tpbrt_float_t crop_window [4]
 The sub-region of the image to render. The four values specified should be fractions in the range [0,1], and they represent x_min, x_max, y_min, and y_max, respectively. These values are in normalized device coordinates, with (0,0) in the upper-left corner of the image.
 
tpbrt_uint_t pixel_bounds [4]
 A sub-region of the image to render, specified using pixel coordinates.
 
tpbrt_string_t file_name
 The output filename.
 
tpbrt_uint_t x_resolution
 The number of pixels in the x direction.
 
tpbrt_uint_t y_resolution
 The number of pixels in the y direction.
 
tpbrt_float_t diagonal
 Diagonal length of the film, in mm. (This value is only used when the RealisticCamera is used.)
 
tpbrt_float_t iso
 Film sensitivity to light; final pixel values are scaled by the "iso" value divided by 100.
 
tpbrt_float_t white_balance
 If non-zero, this gives a temperature in kelvin that is used as the reference color temperature used for white balancing.
 
tpbrt_float_t max_component_value
 Image sample values with luminance greater than this value are clamped to have this luminance. (This is a hack, but can be useful for eliminating large variance spikes in scenes with difficult light transport.)
 
union { 
 
   tpbrt_film_gbuffer_params_t   gbuffer 
 GBuffer film type parameters. More...
 
   tpbrt_film_spectral_params_t   spectral 
 Spectral film type parameters. More...
 
} as 
 value dependent on type.
 
tpbrt_film_type_t type: 3
 Film type.
 
tpbrt_film_sensor_t sensor: 6
 Characterizes the sensor's response for red, green, and blue colors.
 
tpbrt_bool_t save_fp16: 1
 Whether 16-bit floating point values (as opposed to 32-bit floating point values) should be used when saving images in OpenEXR format.
 

Detailed Description

PBRT film representation.

Examples
examples/scene_info/main.c.

Field Documentation

◆ crop_window

tpbrt_float_t tpbrt_film_t::crop_window[4]

The sub-region of the image to render. The four values specified should be fractions in the range [0,1], and they represent x_min, x_max, y_min, and y_max, respectively. These values are in normalized device coordinates, with (0,0) in the upper-left corner of the image.

Examples
examples/scene_info/main.c.

◆ pixel_bounds

tpbrt_uint_t tpbrt_film_t::pixel_bounds[4]

A sub-region of the image to render, specified using pixel coordinates.

◆ file_name

tpbrt_string_t tpbrt_film_t::file_name

The output filename.

Examples
examples/quickstart/main.c, and examples/scene_info/main.c.

◆ x_resolution

tpbrt_uint_t tpbrt_film_t::x_resolution

The number of pixels in the x direction.

Examples
examples/quickstart/main.c, and examples/scene_info/main.c.

◆ y_resolution

tpbrt_uint_t tpbrt_film_t::y_resolution

The number of pixels in the y direction.

Examples
examples/quickstart/main.c, and examples/scene_info/main.c.

◆ diagonal

tpbrt_float_t tpbrt_film_t::diagonal

Diagonal length of the film, in mm. (This value is only used when the RealisticCamera is used.)

Examples
examples/scene_info/main.c.

◆ iso

tpbrt_float_t tpbrt_film_t::iso

Film sensitivity to light; final pixel values are scaled by the "iso" value divided by 100.

Examples
examples/scene_info/main.c.

◆ white_balance

tpbrt_float_t tpbrt_film_t::white_balance

If non-zero, this gives a temperature in kelvin that is used as the reference color temperature used for white balancing.

◆ max_component_value

tpbrt_float_t tpbrt_film_t::max_component_value

Image sample values with luminance greater than this value are clamped to have this luminance. (This is a hack, but can be useful for eliminating large variance spikes in scenes with difficult light transport.)

◆ gbuffer

tpbrt_film_gbuffer_params_t tpbrt_film_t::gbuffer

GBuffer film type parameters.

◆ spectral

tpbrt_film_spectral_params_t tpbrt_film_t::spectral

Spectral film type parameters.

◆ [union]

union { ... } tpbrt_film_t::as

value dependent on type.

◆ type

tpbrt_film_type_t tpbrt_film_t::type

Film type.

Examples
examples/scene_info/main.c.

◆ sensor

tpbrt_film_sensor_t tpbrt_film_t::sensor

Characterizes the sensor's response for red, green, and blue colors.

◆ save_fp16

tpbrt_bool_t tpbrt_film_t::save_fp16

Whether 16-bit floating point values (as opposed to 32-bit floating point values) should be used when saving images in OpenEXR format.


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