Blender
V2.93
source
blender
imbuf
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
49
void
IMB_metadata_ensure
(
struct
IDProperty
**
metadata
);
50
void
IMB_metadata_free
(
struct
IDProperty
*
metadata
);
51
61
bool
IMB_metadata_get_field
(
struct
IDProperty
*
metadata
,
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);
77
struct
IDProperty
*
IMB_anim_load_metadata
(
struct
anim
*
anim
);
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
IMB_metadata_set_field
void IMB_metadata_set_field(struct IDProperty *metadata, const char *key, const char *value)
Definition:
metadata.c:89
IMB_metadata_foreach
void IMB_metadata_foreach(struct ImBuf *ibuf, IMBMetadataForeachCb callback, void *userdata)
Definition:
metadata.c:107
IMBMetadataForeachCb
void(* IMBMetadataForeachCb)(const char *field, const char *value, void *userdata)
Definition:
IMB_metadata.h:80
IMB_anim_load_metadata
struct IDProperty * IMB_anim_load_metadata(struct anim *anim)
Definition:
anim_movie.c:247
IMB_metadata_copy
void IMB_metadata_copy(struct ImBuf *dimb, struct ImBuf *simb)
Definition:
metadata.c:80
IMB_metadata_get_field
bool IMB_metadata_get_field(struct IDProperty *metadata, const char *key, char *value, const size_t len)
Definition:
metadata.c:60
IMB_metadata_ensure
void IMB_metadata_ensure(struct IDProperty **metadata)
Definition:
metadata.c:41
IMB_metadata_free
void IMB_metadata_free(struct IDProperty *metadata)
Definition:
metadata.c:51
callback
DEGForeachIDComponentCallback callback
Definition:
depsgraph_query_foreach.cc:125
IDProperty
Definition:
DNA_ID.h:69
ImBuf
Definition:
IMB_imbuf_types.h:178
anim
Definition:
IMB_anim.h:87
anim::metadata
struct IDProperty * metadata
Definition:
IMB_anim.h:152
len
uint len
Definition:
uvedit_unwrap_ops.c:1146
Generated on Tue Jan 31 2023 14:37:24 for Blender by
doxygen
1.9.1