~ubuntu-branches/ubuntu/trusty/blender/trusty

« back to all changes in this revision

Viewing changes to source/blender/imbuf/intern/IMB_indexer.h

  • Committer: Package Import Robot
  • Author(s): Jeremy Bicha
  • Date: 2013-03-06 12:08:47 UTC
  • mfrom: (1.5.1) (14.1.8 experimental)
  • Revision ID: package-import@ubuntu.com-20130306120847-frjfaryb2zrotwcg
Tags: 2.66a-1ubuntu1
* Resynchronize with Debian (LP: #1076930, #1089256, #1052743, #999024,
  #1122888, #1147084)
* debian/control:
  - Lower build-depends on libavcodec-dev since we're not
    doing the libav9 transition in Ubuntu yet

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
 
32
32
#include <stdlib.h>
33
33
#include <stdio.h>
34
 
#include "BKE_utildefines.h"
35
34
#include "IMB_anim.h"
36
35
/*
37
36
 * separate animation index files to solve the following problems:
63
62
        char name[1024];
64
63
 
65
64
        int num_entries;
66
 
        struct anim_index_entry * entries;
 
65
        struct anim_index_entry *entries;
67
66
};
68
67
 
69
68
struct anim_index_builder;
73
72
        char name[FILE_MAX];
74
73
        char temp_name[FILE_MAX];
75
74
 
76
 
        void * private_data;
 
75
        void *private_data;
77
76
 
78
77
        void (*delete_priv_data)(struct anim_index_builder * idx);
79
78
        void (*proc_frame)(struct anim_index_builder * idx,
80
 
                           unsigned char * buffer,
 
79
                           unsigned char *buffer,
81
80
                           int data_size,
82
 
                           struct anim_index_entry * entry);
 
81
                           struct anim_index_entry *entry);
83
82
} anim_index_builder;
84
83
 
85
84
anim_index_builder * IMB_index_builder_create(const char * name);
99
98
 
100
99
void IMB_index_builder_finish(anim_index_builder * fp, int rollback);
101
100
 
102
 
struct anim_index * IMB_indexer_open(const char * name);
 
101
struct anim_index *IMB_indexer_open(const char * name);
103
102
unsigned long long IMB_indexer_get_seek_pos(
104
 
        struct anim_index * idx, int frameno_index);
 
103
        struct anim_index *idx, int frameno_index);
105
104
unsigned long long IMB_indexer_get_seek_pos_dts(
106
 
        struct anim_index * idx, int frameno_index);
 
105
        struct anim_index *idx, int frameno_index);
107
106
 
108
107
int IMB_indexer_get_frame_index(struct anim_index * idx, int frameno);
109
 
unsigned long long IMB_indexer_get_pts(struct anim_index * idx, 
110
 
                                       int frame_index);
 
108
unsigned long long IMB_indexer_get_pts(struct anim_index *idx, 
 
109
                                       int frame_index);
111
110
int IMB_indexer_get_duration(struct anim_index * idx);
112
111
 
113
112
int IMB_indexer_can_scan(struct anim_index * idx, 
118
117
void IMB_free_indices(struct anim * anim);
119
118
 
120
119
int IMB_anim_index_get_frame_index(
121
 
        struct anim * anim, IMB_Timecode_Type tc, int position);
 
120
        struct anim *anim, IMB_Timecode_Type tc, int position);
122
121
 
123
 
struct anim * IMB_anim_open_proxy(
124
 
        struct anim * anim, IMB_Proxy_Size preview_size);
 
122
struct anim *IMB_anim_open_proxy(
 
123
        struct anim *anim, IMB_Proxy_Size preview_size);
125
124
struct anim_index * IMB_anim_open_index(
126
 
        struct anim * anim, IMB_Timecode_Type tc);
 
125
        struct anim *anim, IMB_Timecode_Type tc);
127
126
 
128
127
int IMB_proxy_size_to_array_index(IMB_Proxy_Size pr_size);
129
128
int IMB_timecode_to_array_index(IMB_Timecode_Type tc);