Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/imbuf/intern/IMB_indexer.h')
-rw-r--r--source/blender/imbuf/intern/IMB_indexer.h77
1 files changed, 35 insertions, 42 deletions
diff --git a/source/blender/imbuf/intern/IMB_indexer.h b/source/blender/imbuf/intern/IMB_indexer.h
index 02ba846d148..4817518dab6 100644
--- a/source/blender/imbuf/intern/IMB_indexer.h
+++ b/source/blender/imbuf/intern/IMB_indexer.h
@@ -14,7 +14,6 @@
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
-
#ifndef __IMB_INDEXER_H__
#define __IMB_INDEXER_H__
@@ -49,74 +48,68 @@
*/
typedef struct anim_index_entry {
- int frameno;
- unsigned long long seek_pos;
- unsigned long long seek_pos_dts;
- unsigned long long pts;
+ int frameno;
+ unsigned long long seek_pos;
+ unsigned long long seek_pos_dts;
+ unsigned long long pts;
} anim_index_entry;
struct anim_index {
- char name[1024];
+ char name[1024];
- int num_entries;
- struct anim_index_entry *entries;
+ int num_entries;
+ struct anim_index_entry *entries;
};
struct anim_index_builder;
typedef struct anim_index_builder {
- FILE *fp;
- char name[FILE_MAX];
- char temp_name[FILE_MAX];
+ FILE *fp;
+ char name[FILE_MAX];
+ char temp_name[FILE_MAX];
- void *private_data;
+ void *private_data;
- void (*delete_priv_data)(struct anim_index_builder *idx);
- void (*proc_frame)(struct anim_index_builder *idx,
- unsigned char *buffer,
- int data_size,
- struct anim_index_entry *entry);
+ void (*delete_priv_data)(struct anim_index_builder *idx);
+ void (*proc_frame)(struct anim_index_builder *idx,
+ unsigned char *buffer,
+ int data_size,
+ struct anim_index_entry *entry);
} anim_index_builder;
anim_index_builder *IMB_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_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_index *IMB_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);
+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);
+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);
+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);
-struct anim *IMB_anim_open_proxy(
- struct anim *anim, IMB_Proxy_Size preview_size);
-struct anim_index *IMB_anim_open_index(
- struct anim *anim, IMB_Timecode_Type tc);
+struct anim *IMB_anim_open_proxy(struct anim *anim, IMB_Proxy_Size preview_size);
+struct anim_index *IMB_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);