Blender  V2.59
Defines | Functions
anim_movie.c File Reference
#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 ImBufmovie_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 animIMB_open_anim (const char *name, int ib_flags)
static int startavi (struct anim *anim)
static ImBufavi_fetchibuf (struct anim *anim, int position)
static struct ImBufanim_getnew (struct anim *anim)
struct ImBufIMB_anim_previewframe (struct anim *anim)
struct ImBufIMB_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)

Detailed Description

Definition in file anim_movie.c.


Define Documentation

#define PATHSEPERATOR   '/'

Definition at line 231 of file anim_movie.c.

Referenced by an_stringdec().


Function Documentation

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().

static struct ImBuf* anim_getnew ( struct anim anim) [static, read]
static ImBuf* avi_fetchibuf ( struct anim anim,
int  position 
) [static]
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().

struct ImBuf* IMB_anim_absolute ( struct anim anim,
int  position 
) [read]
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().

struct ImBuf* IMB_anim_previewframe ( struct anim anim) [read]
Attention:
Defined in anim.c fetches a define previewframe, usually half way into the movie

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)
void IMB_free_anim_ibuf ( struct anim anim)
Attention:
Defined in anim.c

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]
Attention:
Defined in anim.c

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 ImBuf* movie_fetchibuf ( struct anim UNUSEDanim,
int   UNUSEDposition 
) [static]

Definition at line 223 of file anim_movie.c.

References NULL.

Referenced by IMB_anim_absolute().

static int startavi ( struct anim anim) [static]
static int startmovie ( struct anim UNUSEDanim) [static]

Definition at line 222 of file anim_movie.c.

Referenced by anim_getnew().