Changeset View
Changeset View
Standalone View
Standalone View
source/blender/imbuf/IMB_imbuf.h
| Show First 20 Lines • Show All 317 Lines • ▼ Show 20 Lines | typedef enum IMB_Proxy_Size { | ||||
| IMB_PROXY_NONE = 0, | IMB_PROXY_NONE = 0, | ||||
| IMB_PROXY_25 = 1, | IMB_PROXY_25 = 1, | ||||
| IMB_PROXY_50 = 2, | IMB_PROXY_50 = 2, | ||||
| IMB_PROXY_75 = 4, | IMB_PROXY_75 = 4, | ||||
| IMB_PROXY_100 = 8, | IMB_PROXY_100 = 8, | ||||
| IMB_PROXY_MAX_SLOT = 4, | IMB_PROXY_MAX_SLOT = 4, | ||||
| } IMB_Proxy_Size; | } IMB_Proxy_Size; | ||||
| /* Apply pre-defined scale on ImBuf after it was read from source but before it is returned to | |||||
| * caller code. Effectively, can think of downscale as run-time proxy system. */ | |||||
| typedef enum IMB_Downscale { | |||||
| IMB_DOWNSCALE_NONE = 0, | |||||
| IMB_DOWNSCALE_2X = 1, | |||||
| IMB_DOWNSCALE_4X = 2, | |||||
| IMB_DOWNSCALE_8X = 3, | |||||
| IMB_DOWNSCALE_16X = 4, | |||||
| IMB_DOWNSCALE_32X = 5, | |||||
| IMB_DOWNSCALE_MAX_SLOT = 6, | |||||
| } IMB_Downscale; | |||||
| /* Defaults to BL_proxy within the directory of the animation. */ | /* Defaults to BL_proxy within the directory of the animation. */ | ||||
| void IMB_anim_set_index_dir(struct anim *anim, const char *dir); | void IMB_anim_set_index_dir(struct anim *anim, const char *dir); | ||||
| void IMB_anim_get_fname(struct anim *anim, char *file, int size); | void IMB_anim_get_fname(struct anim *anim, char *file, int size); | ||||
| int IMB_anim_index_get_frame_index(struct anim *anim, IMB_Timecode_Type tc, int position); | int IMB_anim_index_get_frame_index(struct anim *anim, IMB_Timecode_Type tc, int position); | ||||
| IMB_Proxy_Size IMB_anim_proxy_get_existing(struct anim *anim); | IMB_Proxy_Size IMB_anim_proxy_get_existing(struct anim *anim); | ||||
| ▲ Show 20 Lines • Show All 45 Lines • ▼ Show 20 Lines | |||||
| * \attention Defined in anim_movie.c | * \attention Defined in anim_movie.c | ||||
| */ | */ | ||||
| int ismovie(const char *filepath); | int ismovie(const char *filepath); | ||||
| void IMB_anim_set_preseek(struct anim *anim, int preseek); | void IMB_anim_set_preseek(struct anim *anim, int preseek); | ||||
| int IMB_anim_get_preseek(struct anim *anim); | int IMB_anim_get_preseek(struct anim *anim); | ||||
| int IMB_anim_get_image_width(struct anim *anim); | int IMB_anim_get_image_width(struct anim *anim); | ||||
| int IMB_anim_get_image_height(struct anim *anim); | int IMB_anim_get_image_height(struct anim *anim); | ||||
| IMB_Downscale downscale_factor_to_downscale_index(const float downscale_factor); | |||||
| int downscale_index_to_downscale_factor(const IMB_Downscale downscale_index); | |||||
| /** | /** | ||||
| * | * | ||||
| * \attention Defined in anim_movie.c | * \attention Defined in anim_movie.c | ||||
| */ | */ | ||||
| struct ImBuf *IMB_anim_absolute(struct anim *anim, | struct ImBuf *IMB_anim_absolute(struct anim *anim, | ||||
| int position, | int position, | ||||
| IMB_Timecode_Type tc /* = 1 = IMB_TC_RECORD_RUN */, | IMB_Timecode_Type tc /* = 1 = IMB_TC_RECORD_RUN */, | ||||
| IMB_Proxy_Size preview_size /* = 0 = IMB_PROXY_NONE */); | IMB_Proxy_Size preview_size /* = 0 = IMB_PROXY_NONE */, | ||||
| IMB_Downscale scale_factor); | |||||
| /** | /** | ||||
| * | * | ||||
| * \attention Defined in anim_movie.c | * \attention Defined in anim_movie.c | ||||
| * fetches a define preview-frame, usually half way into the movie. | * fetches a define preview-frame, usually half way into the movie. | ||||
| */ | */ | ||||
| struct ImBuf *IMB_anim_previewframe(struct anim *anim); | struct ImBuf *IMB_anim_previewframe(struct anim *anim); | ||||
| ▲ Show 20 Lines • Show All 395 Lines • Show Last 20 Lines | |||||