Blender V5.3
allocimbuf.cc File Reference
#include <algorithm>
#include <cstddef>
#include "IMB_colormanagement.hh"
#include "IMB_imbuf.hh"
#include "IMB_imbuf_types.hh"
#include "IMB_partial_update.hh"
#include "IMB_colormanagement_intern.hh"
#include "IMB_metadata.hh"
#include "imbuf.hh"
#include "MEM_guardedalloc.h"
#include "GPU_context.hh"
#include "GPU_state.hh"
#include "GPU_texture.hh"
#include "OCIO_colorspace.hh"
#include "CLG_log.h"
#include "atomic_ops.h"

Go to the source code of this file.

Namespaces

namespace  blender
 BMesh Iterators.

Functions

template<class BufferType>
bool blender::imb_alloc_buffer (BufferType &buffer, const uint x, const uint y, const uint channels, const size_t type_size, bool initialize_pixels)
void blender::IMB_free_float_pixels (ImBuf *ibuf)
void blender::IMB_free_byte_pixels (ImBuf *ibuf)
void blender::IMB_free_all_data (ImBuf *ibuf)
void blender::IMB_freeImBuf (ImBuf *ibuf)
void blender::IMB_refImBuf (ImBuf *ibuf)
ImBuf * blender::IMB_makeSingleUser (ImBuf *ibuf)
void * blender::imb_alloc_pixels (unsigned int x, unsigned int y, unsigned int channels, size_t typesize, bool initialize_pixels, const char *alloc_name)
bool blender::IMB_alloc_float_pixels (ImBuf *ibuf, unsigned int channels, bool initialize_pixels=true)
bool blender::IMB_alloc_byte_pixels (ImBuf *ibuf, bool initialize_pixels=true)
void blender::IMB_ensure_host_buffer (ImBuf *ibuf)
ImBuf * blender::IMB_allocFromBufferOwn (uint8_t *byte_buffer, float *float_buffer, unsigned int w, unsigned int h, unsigned int channels)
ImBuf * blender::IMB_allocFromBuffer (const uint8_t *byte_buffer, const float *float_buffer, unsigned int w, unsigned int h, unsigned int channels)
ImBuf * blender::IMB_allocImBuf (unsigned int x, unsigned int y, ImBufFlags flags)
bool blender::IMB_initImBuf (ImBuf *ibuf, unsigned int x, unsigned int y, ImBufFlags flags)
ImBuf * blender::IMB_dupImBuf (const ImBuf *ibuf1)
size_t blender::IMB_get_pixel_count (const ImBuf *ibuf)
 Get the length of the data of the given image buffer in pixels.
size_t blender::IMB_get_size_in_memory (const ImBuf *ibuf)
Image Buffer
ImColorMode blender::IMB_color_mode_from_channels (int channels)
bool blender::IMB_chan_id_is_color (StringRef chan_id)

Variables

static CLG_LogRef blender::LOG = {"image.buffer"}