Blender  V3.3
Public Types | Public Member Functions | Public Attributes | List of all members
Image Struct Reference

#include <Image.h>

Public Types

enum  Format { Format_RGB , Format_ARGB }
 

Public Member Functions

 Image ()
 
 ~Image ()
 
void allocate (uint w, uint h)
 
uint width () const
 
uint height () const
 
const Color32 * scanline (uint h) const
 
Color32 * scanline (uint h)
 
const Color32 * pixels () const
 
Color32 * pixels ()
 
const Color32 & pixel (uint idx) const
 
Color32 & pixel (uint idx)
 
const Color32 & pixel (uint x, uint y) const
 
Color32 & pixel (uint x, uint y)
 
Format format () const
 
void setFormat (Format f)
 

Public Attributes

ID id
 
char filepath [1024]
 
struct MovieCache * cache
 
struct GPUTexture * gputexture [3][2]
 
ListBase anims
 
struct RenderResult * rr
 
ListBase renderslots
 
short render_slot
 
short last_render_slot
 
int flag
 
short source
 
short type
 
int lastframe
 
int gpuframenr
 
short gpuflag
 
short gpu_pass
 
short gpu_layer
 
short gpu_view
 
char _pad2 [4]
 
struct PackedFile *packedfile DNA_DEPRECATED
 
struct ListBase packedfiles
 
struct PreviewImage * preview
 
int lastused
 
int gen_x
 
int gen_y
 
char gen_type
 
char gen_flag
 
short gen_depth
 
float gen_color [4]
 
float aspx
 
float aspy
 
ColorManagedColorspaceSettings colorspace_settings
 
char alpha_mode
 
char _pad
 
char eye
 
char views_format
 
int active_tile_index
 
ListBase tiles
 
ListBase views
 
struct Stereo3dFormat * stereo3d_format
 
Image_Runtime runtime
 

Detailed Description

32 bit RGBA image.

Definition at line 22 of file imbuf/intern/dds/Image.h.

Member Enumeration Documentation

◆ Format

Enumerator
Format_RGB 
Format_ARGB 

Definition at line 24 of file imbuf/intern/dds/Image.h.

Constructor & Destructor Documentation

◆ Image()

Image::Image ( )

Definition at line 21 of file Image.cpp.

◆ ~Image()

Image::~Image ( )

Definition at line 25 of file Image.cpp.

Member Function Documentation

◆ allocate()

void Image::allocate ( uint  w,
uint  h 
)

Definition at line 30 of file Image.cpp.

References w().

Referenced by DirectDrawSurface::mipmap().

◆ format()

Image::Format Image::format ( ) const

Definition at line 100 of file Image.cpp.

Referenced by imb_load_dds().

◆ height()

uint Image::height ( void  ) const

Definition at line 49 of file Image.cpp.

Referenced by ColorBlock::init().

◆ pixel() [1/4]

Color32 & Image::pixel ( uint  idx)

Definition at line 91 of file Image.cpp.

◆ pixel() [2/4]

const Color32 & Image::pixel ( uint  idx) const

Definition at line 82 of file Image.cpp.

Referenced by pixel().

◆ pixel() [3/4]

Color32 & Image::pixel ( uint  x,
uint  y 
)
inline

Definition at line 73 of file imbuf/intern/dds/Image.h.

References pixel(), width(), x, and y.

◆ pixel() [4/4]

const Color32 & Image::pixel ( uint  x,
uint  y 
) const
inline

Definition at line 68 of file imbuf/intern/dds/Image.h.

References pixel(), width(), x, and y.

◆ pixels() [1/2]

Color32 * Image::pixels ( )

Definition at line 77 of file Image.cpp.

◆ pixels() [2/2]

const Color32 * Image::pixels ( ) const

Definition at line 72 of file Image.cpp.

Referenced by imb_load_dds(), and ColorBlock::init().

◆ scanline() [1/2]

Color32 * Image::scanline ( uint  h)

Definition at line 63 of file Image.cpp.

◆ scanline() [2/2]

const Color32 * Image::scanline ( uint  h) const

Definition at line 54 of file Image.cpp.

◆ setFormat()

void Image::setFormat ( Image::Format  f)

Definition at line 105 of file Image.cpp.

Referenced by DirectDrawSurface::mipmap().

◆ width()

uint Image::width ( void  ) const

Definition at line 44 of file Image.cpp.

Referenced by ColorBlock::init(), and pixel().

Member Data Documentation

◆ _pad

char Image::_pad

Definition at line 182 of file DNA_image_types.h.

◆ _pad2

char Image::_pad2[4]

Definition at line 160 of file DNA_image_types.h.

◆ active_tile_index

int Image::active_tile_index

◆ alpha_mode

char Image::alpha_mode

◆ anims

ListBase Image::anims

◆ aspx

float Image::aspx

◆ aspy

float Image::aspy

◆ cache

struct MovieCache* Image::cache

◆ colorspace_settings

ColorManagedColorspaceSettings Image::colorspace_settings

◆ DNA_DEPRECATED

struct PackedFile* packedfile Image::DNA_DEPRECATED

Deprecated.

Definition at line 163 of file DNA_image_types.h.

◆ eye

char Image::eye

For viewer node stereoscopy.

Definition at line 186 of file DNA_image_types.h.

Referenced by image_get_multiview_index(), and wm_draw_region_stereo_set().

◆ filepath

char Image::filepath[1024]

◆ flag

int Image::flag

◆ gen_color

float Image::gen_color[4]

Definition at line 173 of file DNA_image_types.h.

Referenced by BKE_image_add_generated(), and image_acquire_ibuf().

◆ gen_depth

short Image::gen_depth

Definition at line 172 of file DNA_image_types.h.

Referenced by BKE_image_add_generated(), and image_acquire_ibuf().

◆ gen_flag

char Image::gen_flag

Definition at line 171 of file DNA_image_types.h.

Referenced by BKE_image_add_generated(), and image_acquire_ibuf().

◆ gen_type

char Image::gen_type

◆ gen_x

int Image::gen_x

◆ gen_y

int Image::gen_y

◆ gpu_layer

short Image::gpu_layer

Definition at line 158 of file DNA_image_types.h.

Referenced by image_get_gpu_texture().

◆ gpu_pass

short Image::gpu_pass

Definition at line 157 of file DNA_image_types.h.

Referenced by image_get_gpu_texture().

◆ gpu_view

short Image::gpu_view

Definition at line 159 of file DNA_image_types.h.

Referenced by image_get_gpu_texture().

◆ gpuflag

short Image::gpuflag

◆ gpuframenr

int Image::gpuframenr

Definition at line 155 of file DNA_image_types.h.

Referenced by BKE_image_user_frame_calc().

◆ gputexture

struct GPUTexture* Image::gputexture[3][2]

◆ id

ID Image::id

Definition at line 133 of file DNA_image_types.h.

Referenced by bake_images(), bake_targets_init_internal(), bake_targets_refresh(), BKE_image_all_free_anim_ibufs(), BKE_image_ensure_viewer(), BKE_image_free_all_textures(), BKE_image_free_data(), BKE_image_load_exists_ex(), BKE_image_print_memlist(), BKE_image_save_options_init(), BKE_image_signal(), BKE_image_user_file_path_ex(), BKE_packedfile_count_all(), BKE_packedfile_pack_all(), BKE_packedfile_unpack_all(), blo_do_versions_260(), blo_do_versions_270(), blo_do_versions_pre250(), brush_make_local(), blender::deg::DepsgraphRelationBuilder::build_texture(), count_images(), ED_imapaint_bucket_fill(), ED_object_assign_active_image(), empty_drop_named_image_invoke(), blender::io::usd::export_in_memory_texture(), finish_images(), blender::io::usd::get_absolute_path(), blender::io::usd::get_in_memory_texture_filename(), gpencil_boundaryfill_area(), gpencil_erase_processed_area(), gpencil_invert_image(), gpencil_render_offscreen(), gpencil_set_borders(), gpu_texture_create_tile_array(), gpu_texture_create_tile_mapping(), image_blend_write(), image_changed(), image_copy_data(), image_file_browse_exec(), image_get_gpu_texture(), image_init_after_load(), image_new_exec(), image_open_exec(), image_open_invoke(), image_pack_exec(), image_reload_exec(), image_replace_exec(), image_save_update_filepath(), image_scale_exec(), image_unpack_invoke(), image_update_views_format(), load_image_single(), node_socket_copy_default_value(), pack_all_invoke(), paint_2d_redraw(), proj_paint_add_slot(), proj_paint_state_viewport_init(), project_paint_end(), socket_id_user_decrement(), and tracking_plane_tracks_copy().

◆ last_render_slot

short Image::last_render_slot

◆ lastframe

int Image::lastframe

◆ lastused

int Image::lastused

Definition at line 167 of file DNA_image_types.h.

Referenced by BKE_image_tag_time(), image_blend_read_data(), and image_blend_write().

◆ packedfiles

struct ListBase Image::packedfiles

◆ preview

struct PreviewImage* Image::preview

◆ render_slot

short Image::render_slot

◆ renderslots

ListBase Image::renderslots

◆ rr

struct RenderResult* Image::rr

◆ runtime

Image_Runtime Image::runtime

◆ source

short Image::source

Definition at line 151 of file DNA_image_types.h.

Referenced by BKE_image_add_tile(), BKE_image_ensure_viewer(), BKE_image_fill_tile(), BKE_image_get_tile(), BKE_image_get_tile_from_pos(), BKE_image_get_tile_uv(), BKE_image_is_multilayer(), BKE_image_is_openexr(), BKE_image_load(), BKE_image_load_exists_ex(), BKE_image_memorypack(), BKE_image_packfiles_from_mem(), BKE_image_reassign_tile(), BKE_image_remove_tile(), BKE_image_save(), BKE_image_save_options_init(), BKE_image_signal(), BKE_image_sort_tiles(), BKE_image_update_gputexture_delayed(), BKE_image_user_file_path_ex(), BKE_packedfile_pack_all(), blo_do_versions_260(), blo_do_versions_pre250(), blender::draw::image_engine::ImageEngine< DrawingMode >::cache_populate(), draw_image_main_helpers(), blender::io::usd::export_texture(), blender::io::obj::get_image_filepath(), blender::io::usd::get_in_memory_texture_filename(), gpencil_trace_image_exec(), image_acquire_ibuf(), image_file_browse_exec(), image_file_browse_invoke(), image_foreach_path(), image_get_cached_ibuf(), image_get_entry_and_index(), image_get_multiview_index(), image_init(), image_load_image_file(), image_open_exec(), image_open_single(), image_pack_test(), image_refresh(), image_replace_exec(), image_save_as_poll(), image_save_post(), image_should_be_saved(), image_should_pack_during_save_all(), image_unpack_exec(), image_unpack_invoke(), image_user_from_context_and_active_tile(), image_view_all(), imagewrap(), load_image_single(), blender::nodes::node_shader_tex_image_cc::node_shader_gpu_tex_image(), project_paint_face_paint_tile(), tile_add_poll(), tile_fill_poll(), tile_remove_poll(), trace_start_job(), uiTemplateImage(), uiTemplateImageInfo(), unpack_generate_paths(), and workbench_image_setup_ex().

◆ stereo3d_format

struct Stereo3dFormat* Image::stereo3d_format

◆ tiles

ListBase Image::tiles

◆ type

short Image::type

◆ views

ListBase Image::views

◆ views_format

char Image::views_format

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