|
Blender
V2.59
|
#include <sys/types.h>#include <ctype.h>#include <stdlib.h>#include <stdio.h>#include <dirent.h>#include "BLI_blenlib.h"#include "BLI_utildefines.h"#include "MEM_guardedalloc.h"#include "DNA_userdef_types.h"#include "BKE_global.h"#include "BKE_depsgraph.h"#include "imbuf.h"#include "AVI_avi.h"#include "IMB_imbuf_types.h"#include "IMB_imbuf.h"#include "IMB_allocimbuf.h"#include "IMB_anim.h"Go to the source code of this file.
Defines | |
| #define | PATHSEPERATOR '/' |
Functions | |
| int | ismovie (const char *UNUSED(name)) |
| static int | startmovie (struct anim *UNUSED(anim)) |
| static ImBuf * | movie_fetchibuf (struct anim *UNUSED(anim), int UNUSED(position)) |
| static void | free_anim_movie (struct anim *UNUSED(anim)) |
| static int | an_stringdec (const char *string, char *head, char *tail, unsigned short *numlen) |
| static void | an_stringenc (char *string, const char *head, const char *tail, unsigned short numlen, int pic) |
| static void | free_anim_avi (struct anim *anim) |
| void | IMB_free_anim_ibuf (struct anim *anim) |
| void | IMB_free_anim (struct anim *anim) |
| void | IMB_close_anim (struct anim *anim) |
| struct anim * | IMB_open_anim (const char *name, int ib_flags) |
| static int | startavi (struct anim *anim) |
| static ImBuf * | avi_fetchibuf (struct anim *anim, int position) |
| static struct ImBuf * | anim_getnew (struct anim *anim) |
| struct ImBuf * | IMB_anim_previewframe (struct anim *anim) |
| struct ImBuf * | IMB_anim_absolute (struct anim *anim, int position) |
| int | IMB_anim_get_duration (struct anim *anim) |
| void | IMB_anim_set_preseek (struct anim *anim, int preseek) |
| int | IMB_anim_get_preseek (struct anim *anim) |
Definition in file anim_movie.c.
| #define PATHSEPERATOR '/' |
Definition at line 231 of file anim_movie.c.
Referenced by an_stringdec().
| static int an_stringdec | ( | const char * | string, |
| char * | head, | ||
| char * | tail, | ||
| unsigned short * | numlen | ||
| ) | [static] |
Definition at line 234 of file anim_movie.c.
References FALSE, i, PATHSEPERATOR, and TRUE.
Referenced by IMB_anim_absolute().
| static void an_stringenc | ( | char * | string, |
| const char * | head, | ||
| const char * | tail, | ||
| unsigned short | numlen, | ||
| int | pic | ||
| ) | [static] |
Definition at line 269 of file anim_movie.c.
References BLI_stringenc().
Referenced by IMB_anim_absolute().
Definition at line 1000 of file anim_movie.c.
References ANIM_AVI, ANIM_FFMPEG, ANIM_MOVIE, ANIM_QTIME, ANIM_REDCODE, ANIM_SEQUENCE, anim::curtype, anim::duration, anim::first, free_anim_avi(), free_anim_movie(), free_anim_quicktime(), anim::ib_flags, IMB_allocImBuf(), imb_get_anim_type(), IMB_loadiffname(), anim::name, NULL, startavi(), startmovie(), startquicktime(), anim::x, and anim::y.
Referenced by IMB_anim_absolute().
Definition at line 464 of file anim_movie.c.
References anim::avi, AVI_FORMAT_RGB32, AVI_get_stream(), AVI_read_frame(), AVIST_VIDEO, B_ENDIAN, anim::curposition, anim::duration, ENDIAN_ORDER, FALSE, anim::framesize, i, IB_animdeinterlace, anim::ib_flags, IB_PROFILE_SRGB, IB_rect, IB_rectfloat, if(), IMB_allocImBuf(), IMB_filtery(), IMB_freeImBuf(), IMB_ibImageFromMemory(), anim::interlacing, MEM_callocN(), MEM_freeN(), anim::name, NULL, anim::orientation, anim::params, anim::preseek, ImBuf::profile, ImBuf::rect, ImBuf::rect_float, table, simple_enum_gen::w, ImBuf::x, anim::x, ImBuf::y, and anim::y.
Referenced by IMB_anim_absolute().
| static void free_anim_avi | ( | struct anim * | anim | ) | [static] |
Definition at line 273 of file anim_movie.c.
References anim::avi, AVI_close(), anim::duration, i, MEM_freeN(), and NULL.
Referenced by anim_getnew(), IMB_free_anim(), and startavi().
| static void free_anim_movie | ( | struct anim * | UNUSEDanim | ) | [static] |
Definition at line 224 of file anim_movie.c.
Referenced by anim_getnew(), and IMB_free_anim().
Definition at line 1075 of file anim_movie.c.
References an_stringdec(), an_stringenc(), ANIM_AVI, ANIM_FFMPEG, anim_getnew(), ANIM_MOVIE, ANIM_QTIME, ANIM_REDCODE, ANIM_SEQUENCE, avi_fetchibuf(), anim::curposition, anim::curtype, anim::duration, anim::first, IB_animdeinterlace, anim::ib_flags, IB_PROFILE_SRGB, IB_rect, IMB_convert_rgba_to_abgr(), IMB_filtery(), IMB_freeImBuf(), IMB_loadiffname(), movie_fetchibuf(), ImBuf::name, anim::name, NULL, ImBuf::profile, and qtime_fetchibuf().
Referenced by image_load_movie_file(), IMB_anim_previewframe(), IMB_thumb_create(), openanim(), seq_proxy_fetch(), and seq_render_strip().
| int IMB_anim_get_duration | ( | struct anim * | anim | ) |
Return the length (in frames) of the given anim.
Definition at line 1154 of file anim_movie.c.
References anim::duration.
Referenced by image_info(), image_load_movie_file(), reload_sequence_new_file(), sequencer_add_movie_strip(), and set_frames_cb().
| int IMB_anim_get_preseek | ( | struct anim * | anim | ) |
Definition at line 1163 of file anim_movie.c.
References anim::preseek.
Referenced by reload_sequence_new_file(), and sequencer_add_movie_strip().
Definition at line 1062 of file anim_movie.c.
References anim::duration, IMB_anim_absolute(), IMB_freeImBuf(), and NULL.
Referenced by IMB_thumb_create().
| void IMB_anim_set_preseek | ( | struct anim * | anim, |
| int | preseek | ||
| ) |
Definition at line 1158 of file anim_movie.c.
References anim::preseek.
Referenced by seq_render_strip().
| void IMB_close_anim | ( | struct anim * | anim | ) |
Definition at line 346 of file anim_movie.c.
References IMB_free_anim(), and NULL.
| void IMB_free_anim | ( | struct anim * | anim | ) |
Definition at line 323 of file anim_movie.c.
References free_anim_avi(), free_anim_movie(), free_anim_quicktime(), IMB_free_anim_ibuf(), MEM_freeN(), and NULL.
Referenced by free_anim_seq(), free_proxy_seq(), image_free_buffers(), IMB_close_anim(), IMB_thumb_create(), openanim(), reload_sequence_new_file(), seq_free_sequence(), and seq_free_strip().
| void IMB_free_anim_ibuf | ( | struct anim * | anim | ) |
Definition at line 307 of file anim_movie.c.
References anim::ibuf1, anim::ibuf2, IMB_freeImBuf(), and NULL.
Referenced by IMB_free_anim().
| struct anim* IMB_open_anim | ( | const char * | name, |
| int | ib_flags | ||
| ) | [read] |
Definition at line 353 of file anim_movie.c.
References anim::ib_flags, MEM_callocN(), anim::name, and NULL.
Referenced by IMB_thumb_create(), and openanim().
| int ismovie | ( | const char * | UNUSEDname | ) |
Definition at line 217 of file anim_movie.c.
| static int startavi | ( | struct anim * | anim | ) | [static] |
Definition at line 365 of file anim_movie.c.
References anim::avi, AVI_ERROR_COMPRESSION, AVI_ERROR_FORMAT, AVI_ERROR_NONE, AVI_open_movie(), AVI_print_error(), BYTE, anim::curposition, anim::duration, anim::framesize, free_anim_avi(), _AviMovie::header, _AviMainHeader::Height, HRESULT, i, anim::interlacing, L, MAXNUMSTREAMS, MEM_callocN(), anim::name, NULL, anim::orientation, anim::params, anim::preseek, _AviMainHeader::TotalFrames, _AviMainHeader::Width, anim::x, and anim::y.
Referenced by anim_getnew().
| static int startmovie | ( | struct anim * | UNUSEDanim | ) | [static] |
Definition at line 222 of file anim_movie.c.
Referenced by anim_getnew().