Blender V2.61 - r43446
Defines | Functions

anim_movie.c File Reference

#include <sys/types.h>
#include <ctype.h>
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include <dirent.h>
#include "BLI_blenlib.h"
#include "BLI_utildefines.h"
#include "BLI_math_base.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"
#include "IMB_indexer.h"

Go to the source code of this file.

Defines

#define PATHSEPERATOR   '/'

Functions

int ismovie (const char *UNUSED(filepath))
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 (struct anim *anim)
void IMB_close_anim (struct anim *anim)
struct animIMB_open_anim (const char *name, int ib_flags, int streamindex)
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, IMB_Timecode_Type tc, IMB_Proxy_Size preview_size)
int IMB_anim_get_duration (struct anim *anim, IMB_Timecode_Type tc)
int IMB_anim_get_fps (struct anim *anim, short *frs_sec, float *frs_sec_base)
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 127 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 130 of file anim_movie.c.

References FALSE, i, len(), PATHSEPERATOR, strlen(), 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 166 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 171 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 121 of file anim_movie.c.

Referenced by anim_getnew(), and IMB_free_anim().

struct ImBuf* IMB_anim_absolute ( struct anim anim,
int  position,
IMB_Timecode_Type  tc,
IMB_Proxy_Size  preview_size 
) [read]
int IMB_anim_get_duration ( struct anim anim,
IMB_Timecode_Type  tc 
)
int IMB_anim_get_fps ( struct anim anim,
short *  frs_sec,
float *  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 1315 of file anim_movie.c.

References FALSE, anim::frs_sec, anim::frs_sec_base, and TRUE.

Referenced by alloc_proxy_output_avi().

int IMB_anim_get_preseek ( struct anim anim)

Definition at line 1331 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_movie.c fetches a define previewframe, usually half way into the movie

Definition at line 1192 of file anim_movie.c.

References anim::duration, IMB_anim_absolute(), IMB_freeImBuf(), IMB_PROXY_NONE, IMB_TC_NONE, and NULL.

Referenced by IMB_thumb_create().

void IMB_anim_set_preseek ( struct anim anim,
int  preseek 
)

Definition at line 1326 of file anim_movie.c.

References anim::preseek.

Referenced by seq_render_strip().

void IMB_close_anim ( struct anim anim)

Definition at line 237 of file anim_movie.c.

References IMB_free_anim(), and NULL.

Referenced by IMB_free_indices().

void IMB_free_anim ( struct anim anim)
struct anim* IMB_open_anim ( const char *  name,
int  ib_flags,
int  streamindex 
) [read]
Attention:
Defined in anim_movie.c

Definition at line 245 of file anim_movie.c.

References BLI_strncpy(), anim::ib_flags, MEM_callocN(), anim::name, NULL, and anim::streamindex.

Referenced by IMB_anim_open_proxy(), IMB_thumb_create(), and openanim().

int ismovie ( const char *  UNUSEDfilepath)

Definition at line 113 of file anim_movie.c.

static ImBuf* movie_fetchibuf ( struct anim UNUSEDanim,
int   UNUSEDposition 
) [static]

Definition at line 120 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 119 of file anim_movie.c.

Referenced by anim_getnew().