Blender V5.3
pbvh_pixels_copy.cc File Reference
#include <algorithm>
#include "BLI_array.hh"
#include "BLI_index_mask.hh"
#include "BLI_listbase.hh"
#include "BLI_math_color_c.hh"
#include "BLI_math_geom_c.hh"
#include "BLI_math_vector.hh"
#include "BLI_task.hh"
#include "BLI_vector.hh"
#include "IMB_imbuf.hh"
#include "IMB_imbuf_types.hh"
#include "BKE_image_wrappers.hh"
#include "BKE_mesh.hh"
#include "BKE_paint_bvh.hh"
#include "BKE_paint_bvh_pixels.hh"
#include "PRF_profile.hh"
#include "pbvh_pixels_copy.hh"
#include "pbvh_uv_islands.hh"

Go to the source code of this file.

Classes

struct  blender::bke::pbvh::pixels::Vertex< Space >
struct  blender::bke::pbvh::pixels::Edge< Space >
class  blender::bke::pbvh::pixels::NonManifoldTileEdges
class  blender::bke::pbvh::pixels::NonManifoldUVEdges
class  blender::bke::pbvh::pixels::PixelNodesTileData
struct  blender::bke::pbvh::pixels::CopyPixelCommand
struct  blender::bke::pbvh::pixels::Rows
struct  blender::bke::pbvh::pixels::Rows::Pixel

Namespaces

namespace  blender
 BMesh Iterators.
namespace  blender::bke
namespace  blender::bke::pbvh
namespace  blender::bke::pbvh::pixels

Enumerations

enum class  blender::bke::pbvh::pixels::CoordSpace { blender::bke::pbvh::pixels::UV , blender::bke::pbvh::pixels::Tile }

Functions

static rcti blender::bke::pbvh::pixels::get_bounds (const Edge< CoordSpace::Tile > &tile_edge)
static void blender::bke::pbvh::pixels::add_margin (rcti &bounds, int margin)
static void blender::bke::pbvh::pixels::clamp (rcti &bounds, int2 resolution)
static Vertex< CoordSpace::Tile > blender::bke::pbvh::pixels::convert_coord_space (const Vertex< CoordSpace::UV > &uv_vertex, const image::ImageTileWrapper image_tile, const int2 tile_resolution)
static Edge< CoordSpace::Tile > blender::bke::pbvh::pixels::convert_coord_space (const Edge< CoordSpace::UV > &uv_edge, const image::ImageTileWrapper image_tile, const int2 tile_resolution)
static DeltaCopyPixelCommand blender::bke::pbvh::pixels::encode_delta (const CopyPixelCommand &previous, const CopyPixelCommand &next)
static bool blender::bke::pbvh::pixels::can_be_extended (const CopyPixelCommand &previous, const CopyPixelCommand &next)
static int64_t blender::bke::pbvh::pixels::pixel_offset (const int width, const int2 coordinate)
static float4 blender::bke::pbvh::pixels::read_pixel (const float *buffer, const int width, const int2 coordinate)
static void blender::bke::pbvh::pixels::write_pixel (float *buffer, const int width, const int2 coordinate, const float4 &value)
static float4 blender::bke::pbvh::pixels::read_pixel (const uint8_t *buffer, const int width, const int2 coordinate)
static void blender::bke::pbvh::pixels::write_pixel (uint8_t *buffer, const int width, const int2 coordinate, const float4 &value)
template<typename T>
static void blender::bke::pbvh::pixels::copy_pixels (T *buffer, const int width, const Span< CopyPixelGroup > groups, const Span< DeltaCopyPixelCommand > command_deltas)
void blender::bke::pbvh::pixels::copy_update (bke::pbvh::Tree &pbvh, Image &image, const ImageUser &image_user, const uv_islands::MeshData &mesh_data)
void blender::bke::pbvh::pixels::copy_pixels (bke::pbvh::Tree &pbvh, Map< image::TileNumber, ImBuf * > &buffers, image::TileNumber tile_number, Span< uint8_t > seam_tiles_modified, FunctionRef< void(int x_start, int x_end, int y)> push_undo_tiles)

Variables

const int blender::bke::pbvh::pixels::THREADING_GRAIN_SIZE = 128