Blender V2.61 - r43446
|
#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 | name [240] |
ListBase | ibufs |
struct GPUTexture * | gputexture |
struct anim * | anim |
struct RenderResult * | rr |
struct RenderResult * | renders [8] |
short | render_slot |
short | last_render_slot |
short | ok |
short | flag |
short | source |
short | type |
int | lastframe |
short | tpageflag |
short | totbind |
short | xrep |
short | yrep |
short | twsta |
short | twend |
unsigned int | bindcode |
unsigned int * | repbind |
struct PackedFile * | packedfile |
struct PreviewImage * | preview |
float | lastupdate |
int | lastused |
short | animspeed |
short | gen_x |
short | gen_y |
char | gen_type |
char | gen_flag |
float | aspx |
float | aspy |
32 bit RGBA image.
Definition at line 44 of file source/blender/imbuf/intern/dds/Image.h.
enum Image::Format |
Definition at line 48 of file source/blender/imbuf/intern/dds/Image.h.
Image::Image | ( | ) |
Definition at line 42 of file source/blender/imbuf/intern/dds/Image.cpp.
Image::~Image | ( | ) |
Definition at line 46 of file source/blender/imbuf/intern/dds/Image.cpp.
References addon::engine::free().
Definition at line 51 of file source/blender/imbuf/intern/dds/Image.cpp.
References addon::engine::free(), and simple_enum_gen::w.
Referenced by DirectDrawSurface::mipmap().
Image::Format Image::format | ( | ) | const |
Definition at line 123 of file source/blender/imbuf/intern/dds/Image.cpp.
Referenced by imb_load_dds().
uint Image::height | ( | ) | const |
Definition at line 71 of file source/blender/imbuf/intern/dds/Image.cpp.
Referenced by ColorBlock::init().
Definition at line 99 of file source/blender/imbuf/intern/dds/Image.h.
Definition at line 104 of file source/blender/imbuf/intern/dds/Image.cpp.
Referenced by pixel().
Definition at line 113 of file source/blender/imbuf/intern/dds/Image.cpp.
Definition at line 94 of file source/blender/imbuf/intern/dds/Image.h.
Color32 * Image::pixels | ( | ) |
Definition at line 99 of file source/blender/imbuf/intern/dds/Image.cpp.
const Color32 * Image::pixels | ( | ) | const |
Definition at line 94 of file source/blender/imbuf/intern/dds/Image.cpp.
Referenced by imb_load_dds(), and ColorBlock::init().
Definition at line 76 of file source/blender/imbuf/intern/dds/Image.cpp.
Definition at line 85 of file source/blender/imbuf/intern/dds/Image.cpp.
void Image::setFormat | ( | Image::Format | f | ) |
Definition at line 128 of file source/blender/imbuf/intern/dds/Image.cpp.
Referenced by DirectDrawSurface::mipmap().
uint Image::width | ( | ) | const |
Definition at line 66 of file source/blender/imbuf/intern/dds/Image.cpp.
Referenced by ColorBlock::init(), and pixel().
struct anim* Image::anim |
Definition at line 78 of file DNA_image_types.h.
Referenced by BKE_add_image_file(), direct_link_image(), image_free_buffers(), image_info(), image_load_movie_file(), set_frames_cb(), and uiTemplateImage().
short Image::animspeed |
Definition at line 101 of file DNA_image_types.h.
Referenced by copy_image(), do_versions(), and GPU_update_image_time().
float Image::aspx |
Definition at line 108 of file DNA_image_types.h.
Referenced by copy_image(), do_versions(), draw_empty_image(), ED_image_aspect(), image_alloc(), and image_main_area_set_view2d().
float Image::aspy |
Definition at line 108 of file DNA_image_types.h.
Referenced by copy_image(), do_versions(), draw_empty_image(), ED_image_aspect(), image_alloc(), and image_main_area_set_view2d().
unsigned int Image::bindcode |
Definition at line 92 of file DNA_image_types.h.
Referenced by blo_end_image_pointer_map(), direct_link_image(), free_old_images(), GPU_free_image(), GPU_paint_set_mipmap(), GPU_paint_update_image(), GPU_verify_image(), BL_Texture::InitFromImage(), and tex_mat_set_texture_cb().
short Image::flag |
Definition at line 84 of file DNA_image_types.h.
Referenced by ConvertMaterial(), copy_image(), do_versions(), free_old_images(), gpu_verify_reflection(), image_assign_ibuf(), image_get_render_result(), image_initialize_after_load(), image_load_image_file(), image_load_sequence_file(), node_composit_exec_image(), and ntree_version_245().
char Image::gen_flag |
Definition at line 105 of file DNA_image_types.h.
Referenced by BKE_add_image_size(), and BKE_image_acquire_ibuf().
char Image::gen_type |
Definition at line 105 of file DNA_image_types.h.
Referenced by BKE_add_image_size(), BKE_image_acquire_ibuf(), copy_image(), do_versions(), image_alloc(), image_undo_push_tile(), and image_undo_restore().
short Image::gen_x |
Definition at line 104 of file DNA_image_types.h.
Referenced by BKE_add_image_size(), BKE_image_acquire_ibuf(), BKE_image_signal(), copy_image(), do_versions(), and image_alloc().
short Image::gen_y |
Definition at line 104 of file DNA_image_types.h.
Referenced by BKE_add_image_size(), BKE_image_acquire_ibuf(), BKE_image_signal(), copy_image(), do_versions(), and image_alloc().
struct GPUTexture* Image::gputexture |
Definition at line 75 of file DNA_image_types.h.
Referenced by blo_end_image_pointer_map(), blo_make_image_pointer_map(), direct_link_image(), GPU_free_image(), and GPU_texture_from_blender().
Definition at line 74 of file DNA_image_types.h.
Referenced by BKE_image_free_all_textures(), BKE_image_free_anim_ibufs(), BKE_image_merge(), blo_end_image_pointer_map(), blo_make_image_pointer_map(), direct_link_image(), free_old_images(), GPU_render_text(), image_assign_ibuf(), image_free_buffers(), image_get_ibuf(), image_mem_size(), image_remove_ibuf(), image_save_sequence_exec(), image_undo_restore(), imagewrap(), imagewraposa(), imagewraposa_aniso(), pack_all_invoke(), and project_paint_PickColor().
Definition at line 70 of file DNA_image_types.h.
Referenced by background_image_add_invoke(), bake_images(), BKE_add_image_file(), BKE_image_all_free_anim_ibufs(), BKE_image_free_all_textures(), BKE_image_print_memlist(), BKE_image_signal(), BKE_image_verify_viewer(), BL_ConvertMesh(), blo_end_image_pointer_map(), blo_make_image_pointer_map(), brush_clone_image_delete(), brush_clone_image_set_nr(), clear_images(), ConvertMaterial(), copy_image(), count_images(), countPackedFiles(), do_versions(), ED_object_assign_active_image(), ED_space_image_set(), ED_uvedit_assign_image(), ED_view3D_background_image_remove(), finish_bake_internal(), free_image(), free_old_images(), get_next_bake_face(), GPU_free_images(), GPU_free_images_anim(), GPU_free_unused_buffers(), GPU_paint_set_mipmap(), GPU_update_images_framechange(), image_changed(), image_initialize_after_load(), image_load_image_file(), image_load_movie_file(), image_load_sequence_file(), image_new_exec(), image_open_exec(), image_pack_exec(), image_undo_push_tile(), image_undo_restore(), image_unpack_invoke(), imapaint_canvas_set(), BL_Texture::InitCubeMap(), BL_Texture::InitFromImage(), lib_link_image(), lib_link_mtface(), localize_texture(), make_local_brush(), make_local_image(), pack_all_invoke(), packAll(), project_paint_begin(), RE_bake_shade_all_selected(), save_image_doit(), texture_paint_camera_project_exec(), texture_paint_image_from_view_exec(), uiTemplateImage(), unpackAll(), view3d_duplicate(), view3d_free(), and write_images().
short Image::last_render_slot |
Definition at line 82 of file DNA_image_types.h.
Referenced by BKE_image_acquire_renderresult(), BKE_image_backup_render(), BKE_image_release_renderresult(), direct_link_image(), image_cycle_render_slot_exec(), image_get_render_result(), and image_rect_update().
int Image::lastframe |
Definition at line 86 of file DNA_image_types.h.
Referenced by GPU_update_image_time(), GPU_update_images_framechange(), GPU_verify_image(), image_get_ibuf_threadsafe(), image_load_movie_file(), and image_load_sequence_file().
float Image::lastupdate |
Definition at line 99 of file DNA_image_types.h.
Referenced by GPU_update_image_time().
int Image::lastused |
Definition at line 100 of file DNA_image_types.h.
Referenced by free_old_images(), image_initialize_after_load(), and tag_image_time().
char Image::name[240] |
Definition at line 72 of file DNA_image_types.h.
Referenced by autotexname(), BKE_add_image_file(), BKE_add_image_imbuf(), BKE_add_image_size(), BKE_image_acquire_ibuf(), BKE_image_signal(), BLO_blendhandle_print_sizes(), bpath_traverse_id(), copy_image(), do_versions(), IDnames_to_dyn_pupstring(), image_load_image_file(), image_load_movie_file(), image_load_sequence_file(), image_open_invoke(), image_pack_exec(), image_replace_exec(), image_replace_invoke(), image_unpack_invoke(), ImagesExporter::operator()(), packAll(), save_image_doit(), and unpackImage().
short Image::ok |
Definition at line 84 of file DNA_image_types.h.
Referenced by BKE_add_image_file(), BKE_add_image_imbuf(), BKE_add_image_size(), BKE_image_acquire_ibuf(), BKE_image_signal(), direct_link_image(), envmap_split_ima(), envmaptex(), finish_bake_internal(), GPU_verify_image(), icon_preview_startjob(), image_alloc(), image_free_buffers(), image_get_ibuf_multilayer(), image_get_render_result(), image_initialize_after_load(), image_load_image_file(), image_load_movie_file(), image_load_sequence_file(), image_load_sequence_multilayer(), BL_Texture::InitCubeMap(), BL_Texture::InitFromImage(), my_envmap_split_ima(), node_composit_exec_splitviewer(), node_composit_exec_viewer(), render_realtime_texture(), and BL_Texture::SplitEnvMap().
struct PackedFile* Image::packedfile |
Definition at line 95 of file DNA_image_types.h.
Referenced by BKE_image_memorypack(), BKE_image_signal(), bpath_traverse_id(), countPackedFiles(), direct_link_image(), free_image(), image_load_image_file(), image_pack_exec(), image_pack_test(), image_unpack_exec(), image_unpack_invoke(), imapaint_canvas_set(), packAll(), uiTemplateImage(), unpackAll(), unpackImage(), and write_images().
struct PreviewImage* Image::preview |
Definition at line 96 of file DNA_image_types.h.
Referenced by BKE_previewimg_free_id(), BKE_previewimg_get(), direct_link_image(), do_versions(), free_image(), image_initialize_after_load(), and write_images().
short Image::render_slot |
Definition at line 82 of file DNA_image_types.h.
Referenced by BKE_image_acquire_renderresult(), BKE_image_backup_render(), BKE_image_release_renderresult(), direct_link_image(), image_cycle_render_slot_exec(), image_get_render_result(), image_rect_update(), uiTemplateImage(), and uiTemplateImageLayers().
struct RenderResult* Image::renders[8] |
Definition at line 81 of file DNA_image_types.h.
Referenced by BKE_image_acquire_renderresult(), BKE_image_backup_render(), blo_end_image_pointer_map(), blo_make_image_pointer_map(), direct_link_image(), free_image(), image_cycle_render_slot_exec(), and image_get_render_result().
unsigned int* Image::repbind |
Definition at line 93 of file DNA_image_types.h.
Referenced by direct_link_image(), free_old_images(), GPU_free_image(), gpu_make_repbind(), GPU_paint_update_image(), and GPU_verify_image().
struct RenderResult* Image::rr |
Definition at line 79 of file DNA_image_types.h.
Referenced by BKE_image_acquire_renderresult(), BKE_image_release_renderresult(), compbuf_multilayer_get(), direct_link_image(), image_create_multilayer(), image_free_buffers(), image_get_ibuf_multilayer(), image_load_sequence_multilayer(), imapaint_canvas_set(), node_composit_exec_image(), node_composit_get_image(), ntreeCompositForceHidden(), and uiTemplateImage().
short Image::source |
Definition at line 85 of file DNA_image_types.h.
Referenced by BKE_add_image_file(), BKE_image_acquire_ibuf(), BKE_image_all_free_anim_ibufs(), BKE_image_memorypack(), BKE_image_signal(), BKE_image_verify_viewer(), BKE_texture_dependsOnTime(), bpath_traverse_id(), copy_image(), do_versions(), draw_image_main(), ED_image_update_frame(), GPU_free_images_anim(), image_alloc(), image_get_ibuf_threadsafe(), image_info(), image_mem_size(), image_pack_test(), image_refresh(), image_save_sequence_exec(), image_undo_push_tile(), image_undo_restore(), image_unpack_exec(), image_unpack_invoke(), image_verify_buffer_float(), init_render_texture(), load_frame_image_sequence(), ntreeCompositTagAnimated(), packAll(), RE_init_sample_material(), save_image_doit(), save_image_options_init(), and uiTemplateImage().
short Image::totbind |
Definition at line 89 of file DNA_image_types.h.
Referenced by GPU_free_image(), gpu_make_repbind(), and GPU_verify_image().
short Image::tpageflag |
Definition at line 89 of file DNA_image_types.h.
Referenced by copy_image(), draw_image_buffer_repeated(), draw_image_main(), GPU_free_image(), gpu_make_repbind(), GPU_paint_set_mipmap(), GPU_paint_update_image(), GPU_update_image_time(), GPU_update_images_framechange(), GPU_verify_image(), gpu_verify_repeat(), image_get_ibuf_threadsafe(), image_load_sequence_file(), project_bucket_init(), set_tile_invoke(), and uvedit_set_tile().
short Image::twend |
Definition at line 91 of file DNA_image_types.h.
Referenced by GPU_update_image_time(), and GPU_update_images_framechange().
short Image::twsta |
Definition at line 91 of file DNA_image_types.h.
Referenced by GPU_update_image_time(), and GPU_update_images_framechange().
short Image::type |
Definition at line 85 of file DNA_image_types.h.
Referenced by BKE_image_acquire_ibuf(), BKE_image_acquire_renderresult(), BKE_image_memorypack(), BKE_image_release_renderresult(), BKE_image_signal(), BKE_image_verify_viewer(), copy_image(), do_versions(), draw_image_main(), ED_image_aspect(), ED_space_image_acquire_buffer(), ED_space_image_set(), ED_space_image_show_render(), ED_space_image_size(), ED_uvedit_assign_image(), ED_uvedit_ensure_uvs(), find_area_showing_r_result(), image_alloc(), image_cycle_render_slot_poll(), image_get_ibuf_multilayer(), image_get_ibuf_threadsafe(), image_load_image_file(), image_load_sequence_file(), image_load_sequence_multilayer(), image_save_as_invoke(), image_save_sequence_exec(), node_composit_exec_image(), ntreeCompositForceHidden(), save_image_doit(), save_image_options_init(), uiTemplateImage(), uiTemplateImageLayers(), and uvedit_set_tile().
short Image::xrep |
Definition at line 90 of file DNA_image_types.h.
Referenced by BL_ConvertMesh(), draw_image_buffer_tiled(), gpu_make_repbind(), GPU_update_image_time(), GPU_update_images_framechange(), GPU_verify_image(), image_alloc(), set_tile_exec(), and set_tile_invoke().
short Image::yrep |
Definition at line 90 of file DNA_image_types.h.
Referenced by BL_ConvertMesh(), draw_image_buffer_tiled(), gpu_make_repbind(), GPU_update_image_time(), GPU_update_images_framechange(), GPU_verify_image(), image_alloc(), and set_tile_invoke().