Blender V5.3
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< uint3 > data
uint3 max_value = uint3(0)

Static Public Attributes

static constexpr int NUM_BINS = 256

Detailed Description

Definition at line 24 of file sequencer_scopes.hh.

Member Function Documentation

◆ bin_to_float()

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

Definition at line 42 of file sequencer_scopes.hh.

References float, and NUM_BINS.

Referenced by blender::ed::vse::draw_histogram().

◆ calc_from_ibuf()

◆ float_to_bin()

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

Definition at line 36 of file sequencer_scopes.hh.

References blender::math::clamp(), and NUM_BINS.

Referenced by calc_from_ibuf().

Member Data Documentation

◆ data

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

◆ max_value

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

Definition at line 30 of file sequencer_scopes.hh.

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

◆ NUM_BINS

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

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