Blender V5.3
colortools.cc File Reference
#include <algorithm>
#include <cfloat>
#include <cmath>
#include <cstdlib>
#include <cstring>
#include "MEM_guardedalloc.h"
#include "DNA_color_types.h"
#include "DNA_curve_types.h"
#include "BLI_math_base.hh"
#include "BLI_math_color_c.hh"
#include "BLI_math_matrix_types.hh"
#include "BLI_math_vector.hh"
#include "BLI_math_vector_types.hh"
#include "BLI_rect.hh"
#include "BLI_string_utf8.hh"
#include "BLI_task_c.hh"
#include "BLI_utildefines.hh"
#include "BKE_colortools.hh"
#include "BKE_curve.hh"
#include "BKE_fcurve.hh"
#include "IMB_colormanagement.hh"
#include "IMB_imbuf_types.hh"
#include "OCIO_scope.hh"
#include "BLO_read_write.hh"

Go to the source code of this file.

Classes

struct  blender::ScopesUpdateData
struct  blender::ScopesUpdateDataChunk

Namespaces

namespace  blender
 BMesh Iterators.

Macros

#define p2_h1   ((p2) - 3)
#define p2_h2   ((p2) + 3)
#define INV_255   (1.0f / 255.0f)

Functions

void blender::BKE_curvemapping_set_defaults (CurveMapping *cumap, int tot, float minx, float miny, float maxx, float maxy, eBezTriple_Handle default_handle_type)
CurveMapping * blender::BKE_curvemapping_add (int tot, float minx, float miny, float maxx, float maxy)
void blender::BKE_curvemapping_free_data_single (CurveMapping *cumap, int index)
void blender::BKE_curvemapping_free_data (CurveMapping *cumap)
void blender::BKE_curvemapping_free (CurveMapping *cumap)
void blender::BKE_curvemapping_copy_data_single (CurveMapping *target, const CurveMapping *cumap, int to_idx, int from_idx, bool make_copy)
void blender::BKE_curvemapping_copy_data (CurveMapping *target, const CurveMapping *cumap)
CurveMapping * blender::BKE_curvemapping_copy (const CurveMapping *cumap)
void blender::BKE_curvemapping_set_black_white_ex (const float black[3], const float white[3], float r_bwmul[3])
void blender::BKE_curvemapping_set_black_white (CurveMapping *cumap, const float black[3], const float white[3])
bool blender::BKE_curvemap_remove_point (CurveMap *cuma, CurveMapPoint *point)
void blender::BKE_curvemap_remove (CurveMap *cuma, short flag)
CurveMapPoint * blender::BKE_curvemap_insert (CurveMap *cuma, float x, float y)
void blender::BKE_curvemap_reset (CurveMap *cuma, const rctf *clipr, int preset, CurveMapSlopeType slope)
void blender::BKE_curvemap_activate_nearest_point (struct CurveMap *cuma, const int i_last)
void blender::BKE_curvemap_handle_set (CurveMap *cuma, int type)
static void blender::calchandle_curvemap (BezTriple *bezt, const BezTriple *prev, const BezTriple *next)
static float blender::curvemap_calc_extend (const CurveMapping *cumap, const CurveMap *cuma, float x, const float first[2], const float last[2])
static void blender::curve_eval_bezier_point (float start[3][3], float end[3][3], float *point)
static void blender::curvemap_make_table (const CurveMapping *cumap, CurveMap *cuma)
void blender::BKE_curvemapping_premultiply (CurveMapping *cumap, bool restore)
CurveMapPoint * blender::BKE_curvemap_active_get (CurveMap *cuma)
void blender::BKE_curvemap_translate_selection (CurveMap *cuma, const blender::float2 &offset)
void blender::BKE_curvemapping_changed (CurveMapping *cumap, bool rem_doubles)
void blender::BKE_curvemapping_changed_all (CurveMapping *cumap)
void blender::BKE_curvemapping_reset_view (CurveMapping *cumap)
float blender::BKE_curvemap_evaluateF (const CurveMapping *cumap, const CurveMap *cuma, float value)
float blender::BKE_curvemapping_evaluateF (const CurveMapping *cumap, int cur, float value)
void blender::BKE_curvemapping_evaluate3F (const CurveMapping *cumap, float vecout[3], const float vecin[3])
void blender::BKE_curvemapping_evaluateRGBF (const CurveMapping *cumap, float vecout[3], const float vecin[3])
static float3 blender::evaluate_film_like (const CurveMapping *curve_mapping, float3 input)
void blender::BKE_curvemapping_evaluate_premulRGBF_ex (const CurveMapping *cumap, float vecout[3], const float vecin[3], const float black[3], const float bwmul[3])
void blender::BKE_curvemapping_evaluate_premulRGBF (const CurveMapping *cumap, float vecout[3], const float vecin[3])
void blender::BKE_curvemapping_evaluate_premulRGB (const CurveMapping *cumap, unsigned char vecout_byte[3], const unsigned char vecin_byte[3])
bool blender::BKE_curvemapping_RGBA_does_something (const CurveMapping *cumap)
void blender::BKE_curvemapping_get_range_minimums (const CurveMapping *curve_mapping, float minimums[CM_TOT])
void blender::BKE_curvemapping_compute_range_dividers (const CurveMapping *curve_mapping, float dividers[CM_TOT])
void blender::BKE_curvemapping_compute_slopes (const CurveMapping *curve_mapping, float start_slopes[CM_TOT], float end_slopes[CM_TOT])
bool blender::BKE_curvemapping_is_map_identity (const CurveMapping *curve_mapping, int index)
void blender::BKE_curvemapping_init (CurveMapping *cumap)
void blender::BKE_curvemapping_table_F (const CurveMapping *cumap, float **array, int *size)
void blender::BKE_curvemapping_table_RGBA (const CurveMapping *cumap, float **array, int *size)
int blender::BKE_curvemapping_num_channels (const CurveMapping *cumap)
void blender::BKE_curvemapping_blend_write (BlendWriter *writer, const CurveMapping *cumap)
void blender::BKE_curvemapping_curves_blend_write (BlendWriter *writer, const CurveMapping *cumap)
void blender::BKE_curvemapping_blend_read (BlendDataReader *reader, CurveMapping *cumap)
BLI_INLINE int blender::get_bin_float (float f)
static void blender::save_sample_line (Scopes *scopes, ColormanageProcessor *cm_processor_colors, const float3x3 &yuv_matrix, const int idx, const float fx, const float position_rgb[3], const float position_ycc[3], const float color_rgb[3])
void blender::BKE_histogram_update_sample_line (Histogram *hist, ImBuf *ibuf, const ColorManagedViewSettings *view_settings, const ColorManagedDisplaySettings *display_settings)
static void blender::scopes_update_cb (void *__restrict userdata, const int y, const TaskParallelTLS *__restrict tls)
static void blender::scopes_update_reduce (const void *__restrict, void *__restrict chunk_join, void *__restrict chunk)
void blender::BKE_scopes_update (Scopes *scopes, ImBuf *ibuf, const ColorManagedViewSettings *view_settings, const ColorManagedDisplaySettings *display_settings)
void blender::BKE_scopes_free (Scopes *scopes)
void blender::BKE_scopes_new (Scopes *scopes)
void blender::BKE_color_managed_display_settings_init (ColorManagedDisplaySettings *settings)
void blender::BKE_color_managed_display_settings_copy (ColorManagedDisplaySettings *new_settings, const ColorManagedDisplaySettings *settings)
void blender::BKE_color_managed_view_settings_init (ColorManagedViewSettings *view_settings, const ColorManagedDisplaySettings *display_settings, const char *view_transform)
void blender::BKE_color_managed_view_settings_copy (ColorManagedViewSettings *new_settings, const ColorManagedViewSettings *settings)
void blender::BKE_color_managed_view_settings_copy_keep_curve_mapping (ColorManagedViewSettings *new_settings, const ColorManagedViewSettings *settings)
void blender::BKE_color_managed_view_settings_free (ColorManagedViewSettings *settings)
void blender::BKE_color_managed_view_settings_blend_write (BlendWriter *writer, const ColorManagedViewSettings *settings)
void blender::BKE_color_managed_view_settings_blend_read_data (BlendDataReader *reader, ColorManagedViewSettings *settings)
void blender::BKE_color_managed_colorspace_settings_init (ColorManagedColorspaceSettings *colorspace_settings)
void blender::BKE_color_managed_colorspace_settings_copy (ColorManagedColorspaceSettings *colorspace_settings, const ColorManagedColorspaceSettings *settings)
bool blender::BKE_color_managed_colorspace_settings_equals (const ColorManagedColorspaceSettings *settings1, const ColorManagedColorspaceSettings *settings2)

Macro Definition Documentation

◆ INV_255

#define INV_255   (1.0f / 255.0f)

Definition at line 1551 of file colortools.cc.

Referenced by blender::scopes_update_cb().

◆ p2_h1

#define p2_h1   ((p2) - 3)

◆ p2_h2

#define p2_h2   ((p2) + 3)