Blender V5.0
blender::ed::vse::ScopeHistogram Struct Reference

#include <sequencer_scopes.hh>

Public Member Functions

void calc_from_ibuf (const ImBuf *ibuf, const ColorManagedViewSettings &view_settings, const ColorManagedDisplaySettings &display_settings)

Static Public Member Functions

static int float_to_bin (float f)
static float bin_to_float (int bin)

Public Attributes

Array< uint3data
uint3 max_value = uint3(0)
uint3 max_bin = uint3(0)

Static Public Attributes

static constexpr int BINS_01 = 256
static constexpr int BINS_HDR = BINS_01 * 12

Detailed Description

Definition at line 21 of file sequencer_scopes.hh.

Member Function Documentation

◆ bin_to_float()

float blender::ed::vse::ScopeHistogram::bin_to_float ( int bin)
inlinestatic

◆ calc_from_ibuf()

◆ float_to_bin()

int blender::ed::vse::ScopeHistogram::float_to_bin ( float f)
inlinestatic

Definition at line 37 of file sequencer_scopes.hh.

References BINS_01, BINS_HDR, and blender::math::clamp().

Referenced by calc_from_ibuf().

Member Data Documentation

◆ BINS_01

int blender::ed::vse::ScopeHistogram::BINS_01 = 256
staticconstexpr

Definition at line 23 of file sequencer_scopes.hh.

Referenced by bin_to_float(), calc_from_ibuf(), and float_to_bin().

◆ BINS_HDR

int blender::ed::vse::ScopeHistogram::BINS_HDR = BINS_01 * 12
staticconstexpr

Definition at line 25 of file sequencer_scopes.hh.

Referenced by calc_from_ibuf(), and float_to_bin().

◆ data

Array<uint3> blender::ed::vse::ScopeHistogram::data

◆ max_bin

uint3 blender::ed::vse::ScopeHistogram::max_bin = uint3(0)

◆ max_value

uint3 blender::ed::vse::ScopeHistogram::max_value = uint3(0)

Definition at line 29 of file sequencer_scopes.hh.

Referenced by calc_from_ibuf(), and blender::ed::vse::draw_histogram().


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