cleanup: rename enum type to blender convention
This commit is contained in:
@@ -253,25 +253,25 @@ typedef enum {
|
||||
SEQ_STRIPELEM_IBUF_COMP,
|
||||
SEQ_STRIPELEM_IBUF_STARTSTILL,
|
||||
SEQ_STRIPELEM_IBUF_ENDSTILL
|
||||
} seq_stripelem_ibuf_t;
|
||||
} eSeqStripElemIBuf;
|
||||
|
||||
void BKE_sequencer_cache_destruct(void);
|
||||
void BKE_sequencer_cache_cleanup(void);
|
||||
|
||||
/* returned ImBuf is properly refed and has to be freed */
|
||||
struct ImBuf *BKE_sequencer_cache_get(const SeqRenderData *context, struct Sequence *seq, float cfra, seq_stripelem_ibuf_t type);
|
||||
struct ImBuf *BKE_sequencer_cache_get(const SeqRenderData *context, struct Sequence *seq, float cfra, eSeqStripElemIBuf type);
|
||||
|
||||
/* passed ImBuf is properly refed, so ownership is *not*
|
||||
* transferred to the cache.
|
||||
* you can pass the same ImBuf multiple times to the cache without problems.
|
||||
*/
|
||||
|
||||
void BKE_sequencer_cache_put(const SeqRenderData *context, struct Sequence *seq, float cfra, seq_stripelem_ibuf_t type, struct ImBuf *nval);
|
||||
void BKE_sequencer_cache_put(const SeqRenderData *context, struct Sequence *seq, float cfra, eSeqStripElemIBuf type, struct ImBuf *nval);
|
||||
|
||||
void BKE_sequencer_cache_cleanup_sequence(struct Sequence *seq);
|
||||
|
||||
struct ImBuf *BKE_sequencer_preprocessed_cache_get(const SeqRenderData *context, struct Sequence *seq, float cfra, seq_stripelem_ibuf_t type);
|
||||
void BKE_sequencer_preprocessed_cache_put(const SeqRenderData *context, struct Sequence *seq, float cfra, seq_stripelem_ibuf_t type, struct ImBuf *ibuf);
|
||||
struct ImBuf *BKE_sequencer_preprocessed_cache_get(const SeqRenderData *context, struct Sequence *seq, float cfra, eSeqStripElemIBuf type);
|
||||
void BKE_sequencer_preprocessed_cache_put(const SeqRenderData *context, struct Sequence *seq, float cfra, eSeqStripElemIBuf type, struct ImBuf *ibuf);
|
||||
void BKE_sequencer_preprocessed_cache_cleanup(void);
|
||||
void BKE_sequencer_preprocessed_cache_cleanup_sequence(struct Sequence *seq);
|
||||
|
||||
|
@@ -46,7 +46,7 @@ typedef struct SeqCacheKey {
|
||||
struct Sequence *seq;
|
||||
SeqRenderData context;
|
||||
float cfra;
|
||||
seq_stripelem_ibuf_t type;
|
||||
eSeqStripElemIBuf type;
|
||||
} SeqCacheKey;
|
||||
|
||||
typedef struct SeqPreprocessCacheElem {
|
||||
@@ -54,7 +54,7 @@ typedef struct SeqPreprocessCacheElem {
|
||||
|
||||
struct Sequence *seq;
|
||||
SeqRenderData context;
|
||||
seq_stripelem_ibuf_t type;
|
||||
eSeqStripElemIBuf type;
|
||||
|
||||
ImBuf *ibuf;
|
||||
} SeqPreprocessCacheElem;
|
||||
@@ -148,7 +148,7 @@ void BKE_sequencer_cache_cleanup_sequence(Sequence *seq)
|
||||
IMB_moviecache_cleanup(moviecache, seqcache_key_check_seq, seq);
|
||||
}
|
||||
|
||||
struct ImBuf *BKE_sequencer_cache_get(const SeqRenderData *context, Sequence *seq, float cfra, seq_stripelem_ibuf_t type)
|
||||
struct ImBuf *BKE_sequencer_cache_get(const SeqRenderData *context, Sequence *seq, float cfra, eSeqStripElemIBuf type)
|
||||
{
|
||||
if (moviecache && seq) {
|
||||
SeqCacheKey key;
|
||||
@@ -164,7 +164,7 @@ struct ImBuf *BKE_sequencer_cache_get(const SeqRenderData *context, Sequence *se
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void BKE_sequencer_cache_put(const SeqRenderData *context, Sequence *seq, float cfra, seq_stripelem_ibuf_t type, ImBuf *i)
|
||||
void BKE_sequencer_cache_put(const SeqRenderData *context, Sequence *seq, float cfra, eSeqStripElemIBuf type, ImBuf *i)
|
||||
{
|
||||
SeqCacheKey key;
|
||||
|
||||
@@ -210,7 +210,7 @@ static void preprocessed_cache_destruct(void)
|
||||
preprocess_cache = NULL;
|
||||
}
|
||||
|
||||
ImBuf *BKE_sequencer_preprocessed_cache_get(const SeqRenderData *context, Sequence *seq, float cfra, seq_stripelem_ibuf_t type)
|
||||
ImBuf *BKE_sequencer_preprocessed_cache_get(const SeqRenderData *context, Sequence *seq, float cfra, eSeqStripElemIBuf type)
|
||||
{
|
||||
SeqPreprocessCacheElem *elem;
|
||||
|
||||
@@ -237,7 +237,7 @@ ImBuf *BKE_sequencer_preprocessed_cache_get(const SeqRenderData *context, Sequen
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void BKE_sequencer_preprocessed_cache_put(const SeqRenderData *context, Sequence *seq, float cfra, seq_stripelem_ibuf_t type, ImBuf *ibuf)
|
||||
void BKE_sequencer_preprocessed_cache_put(const SeqRenderData *context, Sequence *seq, float cfra, eSeqStripElemIBuf type, ImBuf *ibuf)
|
||||
{
|
||||
SeqPreprocessCacheElem *elem;
|
||||
|
||||
|
Reference in New Issue
Block a user