Byakuren 1.0.1
A theme color extracting library implemented by C.
Loading...
Searching...
No Matches
bkr_octree_node Struct Reference

Octree node structure for color quantization. More...

#include <bkr_common.h>

Data Fields

uint32_t red_components
 Sum of red components.
 
uint32_t green_components
 Sum of green components.
 
uint32_t blue_components
 Sum of blue components.
 
uint8_t is_leaf
 Flag indicating if this node is a leaf.
 
uint32_t pixel_count
 Number of pixels represented by this node.
 
struct bkr_octree_nodechildren [8]
 Pointers to child nodes.
 

Detailed Description

Octree node structure for color quantization.

This structure represents a node in the octree used for color quantization. It stores color component sums, leaf status, pixel count, and pointers to child nodes.

Definition at line 116 of file bkr_common.h.

Field Documentation

◆ blue_components

uint32_t bkr_octree_node::blue_components

Sum of blue components.

Definition at line 119 of file bkr_common.h.

◆ children

struct bkr_octree_node* bkr_octree_node::children[8]

Pointers to child nodes.

Definition at line 124 of file bkr_common.h.

◆ green_components

uint32_t bkr_octree_node::green_components

Sum of green components.

Definition at line 118 of file bkr_common.h.

◆ is_leaf

uint8_t bkr_octree_node::is_leaf

Flag indicating if this node is a leaf.

Definition at line 121 of file bkr_common.h.

◆ pixel_count

uint32_t bkr_octree_node::pixel_count

Number of pixels represented by this node.

Definition at line 122 of file bkr_common.h.

◆ red_components

uint32_t bkr_octree_node::red_components

Sum of red components.

Definition at line 117 of file bkr_common.h.


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