Blender  V2.93
IMB_metadata.h
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or
3  * modify it under the terms of the GNU General Public License
4  * as published by the Free Software Foundation; either version 2
5  * of the License, or (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  * GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * along with this program; if not, write to the Free Software Foundation,
14  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15  *
16  * The Original Code is Copyright (C) 2005 Blender Foundation
17  * All rights reserved.
18  */
19 
24 #pragma once
25 
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29 
30 struct IDProperty;
31 struct ImBuf;
32 struct anim;
33 
51 
62  const char *key,
63  char *value,
64  const size_t len);
65 
74 void IMB_metadata_set_field(struct IDProperty *metadata, const char *key, const char *value);
75 
76 void IMB_metadata_copy(struct ImBuf *dimb, struct ImBuf *simb);
78 
79 /* Invoke callback for every value stored in the metadata. */
80 typedef void (*IMBMetadataForeachCb)(const char *field, const char *value, void *userdata);
81 void IMB_metadata_foreach(struct ImBuf *ibuf, IMBMetadataForeachCb callback, void *userdata);
82 
83 #ifdef __cplusplus
84 }
85 #endif
void IMB_metadata_set_field(struct IDProperty *metadata, const char *key, const char *value)
Definition: metadata.c:89
void IMB_metadata_foreach(struct ImBuf *ibuf, IMBMetadataForeachCb callback, void *userdata)
Definition: metadata.c:107
void(* IMBMetadataForeachCb)(const char *field, const char *value, void *userdata)
Definition: IMB_metadata.h:80
struct IDProperty * IMB_anim_load_metadata(struct anim *anim)
Definition: anim_movie.c:247
void IMB_metadata_copy(struct ImBuf *dimb, struct ImBuf *simb)
Definition: metadata.c:80
bool IMB_metadata_get_field(struct IDProperty *metadata, const char *key, char *value, const size_t len)
Definition: metadata.c:60
void IMB_metadata_ensure(struct IDProperty **metadata)
Definition: metadata.c:41
void IMB_metadata_free(struct IDProperty *metadata)
Definition: metadata.c:51
DEGForeachIDComponentCallback callback
Definition: IMB_anim.h:87
struct IDProperty * metadata
Definition: IMB_anim.h:152
uint len