|
Blender V4.3
|
#include <cctype>#include <climits>#include <cmath>#include <cstdio>#include <cstdlib>#include <sys/types.h>#include <dirent.h>#include "BLI_math_base.hh"#include "BLI_path_utils.hh"#include "BLI_string.h"#include "BLI_threads.h"#include "BLI_utildefines.h"#include "DNA_scene_types.h"#include "MEM_guardedalloc.h"#include "IMB_imbuf.hh"#include "IMB_imbuf_types.hh"#include "IMB_colormanagement.hh"#include "IMB_colormanagement_intern.hh"#include "IMB_anim.hh"#include "IMB_indexer.hh"#include "IMB_metadata.hh"Go to the source code of this file.
Functions | |
| void | IMB_free_anim (ImBufAnim *anim) |
| void | IMB_close_anim (ImBufAnim *anim) |
| void | IMB_close_anim_proxies (ImBufAnim *anim) |
| IDProperty * | IMB_anim_load_metadata (ImBufAnim *anim) |
| ImBufAnim * | IMB_open_anim (const char *filepath, int ib_flags, int streamindex, char colorspace[IM_MAX_SPACE]) |
| bool | IMB_anim_can_produce_frames (const ImBufAnim *anim) |
| void | IMB_suffix_anim (ImBufAnim *anim, const char *suffix) |
| static bool | anim_getnew (ImBufAnim *anim) |
| ImBuf * | IMB_anim_previewframe (ImBufAnim *anim) |
| ImBuf * | IMB_anim_absolute (ImBufAnim *anim, int position, IMB_Timecode_Type tc, IMB_Proxy_Size preview_size) |
| int | IMB_anim_get_duration (ImBufAnim *anim, IMB_Timecode_Type tc) |
| double | IMD_anim_get_offset (ImBufAnim *anim) |
| bool | IMB_anim_get_fps (const ImBufAnim *anim, bool no_av_base, short *r_frs_sec, float *r_frs_sec_base) |
| int | IMB_anim_get_image_width (ImBufAnim *anim) |
| int | IMB_anim_get_image_height (ImBufAnim *anim) |
|
static |
Try to initialize the #anim struct. Returns true on success.
Definition at line 1200 of file anim_movie.cc.
References BLI_assert, ImBufAnim::Failed, ImBufAnim::state, ImBufAnim::Uninitialized, and ImBufAnim::Valid.
Referenced by IMB_anim_absolute().
| ImBuf * IMB_anim_absolute | ( | ImBufAnim * | anim, |
| int | position, | ||
| IMB_Timecode_Type | tc, | ||
| IMB_Proxy_Size | preview_size ) |
Definition at line 1258 of file anim_movie.cc.
References anim_getnew(), ImBufAnim::cur_position, ImBufAnim::duration_in_frames, ImBuf::filepath, ImBufAnim::filepath, IMB_anim_absolute(), IMB_anim_index_get_frame_index(), IMB_anim_open_proxy(), IMB_PROXY_NONE, IMB_TC_NONE, SNPRINTF, ImBufAnim::state, ImBufAnim::Uninitialized, and ImBufAnim::Valid.
Referenced by build_pict_list_from_anim(), ibuf_from_picture(), IMB_anim_absolute(), IMB_anim_previewframe(), load_movie_single(), movieclip_load_movie_file(), openanim(), seq_proxy_fetch(), seq_render_movie_strip_custom_file_proxy(), seq_render_movie_strip_view(), thumb_create_ex(), and wm_main_playanim_intern().
| bool IMB_anim_can_produce_frames | ( | const ImBufAnim * | anim | ) |
Definition at line 144 of file anim_movie.cc.
References UNUSED_VARS.
Referenced by SEQ_add_movie_reload_if_needed().
| int IMB_anim_get_duration | ( | ImBufAnim * | anim, |
| IMB_Timecode_Type | tc ) |
Return the length (in frames) of the given anim.
Definition at line 1309 of file anim_movie.cc.
References ImBufAnim::duration_in_frames, IMB_anim_open_index(), IMB_indexer_get_duration(), and IMB_TC_NONE.
Referenced by build_pict_list_from_anim(), image_match_len_exec(), load_movie_single(), movieclip_calc_length(), blender::nodes::node_geo_image_info_cc::node_geo_exec(), prefetch_data_fn(), SEQ_add_movie_strip(), SEQ_add_reload_new_file(), ui_tooltip_from_clip(), ui_tooltip_from_image(), and uiTemplateImageInfo().
| bool IMB_anim_get_fps | ( | const ImBufAnim * | anim, |
| bool | no_av_base, | ||
| short * | r_frs_sec, | ||
| float * | r_frs_sec_base ) |
Return the fps contained in movie files (function rval is false, and frs_sec and frs_sec_base untouched if none available!)
Definition at line 1329 of file anim_movie.cc.
References BLI_assert, double(), float, ImBufAnim::frs_sec, ImBufAnim::frs_sec_base, and UNUSED_VARS.
Referenced by BKE_movieclip_get_fps(), blender::nodes::node_geo_image_info_cc::node_geo_exec(), prefetch_data_fn(), SEQ_add_movie_strip(), seq_render_movie_strip(), SEQ_time_sequence_get_fps(), uiTemplateMovieclipInformation(), and wm_main_playanim_intern().
Definition at line 1370 of file anim_movie.cc.
References ImBufAnim::y.
Referenced by SEQ_add_movie_strip(), and ui_tooltip_from_clip().
Definition at line 1365 of file anim_movie.cc.
References ImBufAnim::x.
Referenced by SEQ_add_movie_strip(), and ui_tooltip_from_clip().
| IDProperty * IMB_anim_load_metadata | ( | ImBufAnim * | anim | ) |
Definition at line 94 of file anim_movie.cc.
References BLI_assert, IMB_metadata_ensure(), IMB_metadata_set_field(), ImBufAnim::metadata, ImBufAnim::state, and ImBufAnim::Valid.
Referenced by SEQ_add_movie_strip(), and SEQ_add_reload_new_file().
fetches a define preview-frame, usually half way into the movie.
Definition at line 1220 of file anim_movie.cc.
References ImBufAnim::duration_in_frames, IMB_anim_absolute(), IMB_freeImBuf(), IMB_metadata_ensure(), IMB_metadata_set_field(), IMB_PROXY_NONE, IMB_TC_NONE, ImBuf::metadata, SNPRINTF, ImBufAnim::x, and ImBufAnim::y.
Referenced by thumb_create_ex(), and ui_tooltip_from_clip().
| void IMB_close_anim | ( | ImBufAnim * | anim | ) |
Definition at line 76 of file anim_movie.cc.
References IMB_free_anim().
Referenced by build_pict_list_from_anim(), IMB_free_indices(), and wm_main_playanim_intern().
| void IMB_close_anim_proxies | ( | ImBufAnim * | anim | ) |
Definition at line 85 of file anim_movie.cc.
References IMB_free_indices().
Referenced by proxy_endjob(), and SEQ_proxy_rebuild_finish().
| void IMB_free_anim | ( | ImBufAnim * | anim | ) |
Definition at line 60 of file anim_movie.cc.
References IMB_free_indices(), IMB_metadata_free(), MEM_freeN(), ImBufAnim::metadata, and printf.
Referenced by free_buffers(), free_proxy_seq(), image_free_anims(), IMB_close_anim(), openanim(), prefetch_data_fn(), seq_free_strip(), SEQ_relations_sequence_free_anim(), and thumb_create_ex().
| ImBufAnim * IMB_open_anim | ( | const char * | filepath, |
| int | ib_flags, | ||
| int | streamindex, | ||
| char | colorspace[IM_MAX_SPACE] ) |
Definition at line 117 of file anim_movie.cc.
References BLI_assert, BLI_path_is_rel(), COLOR_ROLE_DEFAULT_BYTE, ImBufAnim::colorspace, colorspace_set_default_role(), ImBufAnim::filepath, ImBufAnim::ib_flags, IM_MAX_SPACE, MEM_callocN, ImBufAnim::streamindex, and STRNCPY.
Referenced by build_pict_list_from_anim(), IMB_anim_open_proxy(), openanim(), openanim_noload(), thumb_create_ex(), and wm_main_playanim_intern().
| void IMB_suffix_anim | ( | ImBufAnim * | anim, |
| const char * | suffix ) |
Definition at line 158 of file anim_movie.cc.
References STRNCPY, and ImBufAnim::suffix.
Referenced by open_anim_file_multiview(), and seq_anim_add_suffix().
Return the encoded start offset (in seconds) of the given anim.
Definition at line 1324 of file anim_movie.cc.
References ImBufAnim::start_offset.
Referenced by SEQ_add_movie_strip().