Blender V2.61 - r43446
Classes | Typedefs | Functions

IMB_indexer.h File Reference

#include <stdlib.h>
#include <stdio.h>
#include "BKE_utildefines.h"
#include "IMB_anim.h"

Go to the source code of this file.

Classes

struct  anim_index_entry
struct  anim_index
struct  anim_index_builder

Typedefs

typedef struct anim_index_entry anim_index_entry
typedef struct anim_index_builder anim_index_builder

Functions

anim_index_builderIMB_index_builder_create (const char *name)
void IMB_index_builder_add_entry (anim_index_builder *fp, int frameno, unsigned long long seek_pos, unsigned long long seek_pos_dts, unsigned long long pts)
void IMB_index_builder_proc_frame (anim_index_builder *fp, unsigned char *buffer, int data_size, int frameno, unsigned long long seek_pos, unsigned long long seek_pos_dts, unsigned long long pts)
void IMB_index_builder_finish (anim_index_builder *fp, int rollback)
struct anim_indexIMB_indexer_open (const char *name)
unsigned long long IMB_indexer_get_seek_pos (struct anim_index *idx, int frameno_index)
unsigned long long IMB_indexer_get_seek_pos_dts (struct anim_index *idx, int frameno_index)
int IMB_indexer_get_frame_index (struct anim_index *idx, int frameno)
unsigned long long IMB_indexer_get_pts (struct anim_index *idx, int frame_index)
int IMB_indexer_get_duration (struct anim_index *idx)
int IMB_indexer_can_scan (struct anim_index *idx, int old_frame_index, int new_frame_index)
void IMB_indexer_close (struct anim_index *idx)
void IMB_free_indices (struct anim *anim)
int IMB_anim_index_get_frame_index (struct anim *anim, IMB_Timecode_Type tc, int position)
struct animIMB_anim_open_proxy (struct anim *anim, IMB_Proxy_Size preview_size)
struct anim_indexIMB_anim_open_index (struct anim *anim, IMB_Timecode_Type tc)
int IMB_proxy_size_to_array_index (IMB_Proxy_Size pr_size)
int IMB_timecode_to_array_index (IMB_Timecode_Type tc)

Typedef Documentation


Function Documentation

int IMB_anim_index_get_frame_index ( struct anim anim,
IMB_Timecode_Type  tc,
int  position 
)

Definition at line 1147 of file indexer.c.

References IMB_anim_open_index(), and IMB_indexer_get_frame_index().

struct anim_index* IMB_anim_open_index ( struct anim anim,
IMB_Timecode_Type  tc 
) [read]
struct anim* IMB_anim_open_proxy ( struct anim anim,
IMB_Proxy_Size  preview_size 
) [read]
void IMB_free_indices ( struct anim anim)
void IMB_index_builder_add_entry ( anim_index_builder fp,
int  frameno,
unsigned long long  seek_pos,
unsigned long long  seek_pos_dts,
unsigned long long  pts 
)

Definition at line 107 of file indexer.c.

References anim_index_builder::fp.

Referenced by IMB_index_builder_proc_frame(), and write_index().

anim_index_builder* IMB_index_builder_create ( const char *  name)
void IMB_index_builder_finish ( anim_index_builder fp,
int  rollback 
)
void IMB_index_builder_proc_frame ( anim_index_builder fp,
unsigned char *  buffer,
int  data_size,
int  frameno,
unsigned long long  seek_pos,
unsigned long long  seek_pos_dts,
unsigned long long  pts 
)
int IMB_indexer_can_scan ( struct anim_index idx,
int  old_frame_index,
int  new_frame_index 
)

Definition at line 302 of file indexer.c.

References IMB_indexer_get_seek_pos().

Referenced by avi_fetchibuf().

void IMB_indexer_close ( struct anim_index idx)

Definition at line 312 of file indexer.c.

References anim_index::entries, and MEM_freeN().

Referenced by IMB_free_indices().

int IMB_indexer_get_duration ( struct anim_index idx)

Definition at line 294 of file indexer.c.

References anim_index::entries, anim_index_entry::frameno, and anim_index::num_entries.

Referenced by IMB_anim_get_duration().

int IMB_indexer_get_frame_index ( struct anim_index idx,
int  frameno 
)
unsigned long long IMB_indexer_get_pts ( struct anim_index idx,
int  frame_index 
)

Definition at line 282 of file indexer.c.

References anim_index::entries, anim_index::num_entries, and anim_index_entry::pts.

Referenced by avi_fetchibuf().

unsigned long long IMB_indexer_get_seek_pos ( struct anim_index idx,
int  frameno_index 
)
unsigned long long IMB_indexer_get_seek_pos_dts ( struct anim_index idx,
int  frameno_index 
)

Definition at line 239 of file indexer.c.

References anim_index::entries, anim_index::num_entries, and anim_index_entry::seek_pos_dts.

Referenced by avi_fetchibuf().

struct anim_index* IMB_indexer_open ( const char *  name) [read]
int IMB_proxy_size_to_array_index ( IMB_Proxy_Size  pr_size)

Definition at line 318 of file indexer.c.

References IMB_PROXY_100, IMB_PROXY_25, IMB_PROXY_50, IMB_PROXY_75, and IMB_PROXY_NONE.

Referenced by get_proxy_filename(), and IMB_anim_open_proxy().

int IMB_timecode_to_array_index ( IMB_Timecode_Type  tc)