Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
20 | pmbaty | 1 | #ifndef _TOKENVAL_H_ |
2 | #define _TOKENVAL_H_ |
||
3 | |||
4 | #include "brender/br_types.h" |
||
5 | |||
6 | br_tv_template* BrTVTemplateAllocate(void* res, br_tv_template_entry* entries, int n_entries); |
||
7 | |||
8 | void BrTVTemplateFree(br_tv_template* t); |
||
9 | |||
10 | void templateResolveNames(br_tv_template* template); |
||
11 | |||
12 | void templateMakeMap(br_tv_template* template); |
||
13 | |||
14 | br_fixed_ls* ConvertFloatToFixed(br_fixed_ls** pextra, br_float* src, br_int_32 count, br_size_t* pextra_space); |
||
15 | |||
16 | br_float* ConvertFixedToFloat(br_float** pextra, br_fixed_ls* src, br_int_32 count, br_size_t* pextra_space); |
||
17 | |||
18 | br_uint_32* ConvertLongCopy(br_uint_32** pextra, br_uint_32* src, br_int_32 count, br_size_t* pextra_space); |
||
19 | |||
20 | br_error ValueQuery(br_token_value* tv, void** pextra, br_size_t* pextra_size, void* block, br_tv_template_entry* tep); |
||
21 | |||
22 | br_error ValueSet(void* block, br_token_value* tv, br_tv_template_entry* tep); |
||
23 | |||
24 | br_size_t ValueExtraSize(void* block, br_tv_template_entry* tep); |
||
25 | |||
26 | br_error BrTokenValueQuery(br_uint_32* pvalue, br_uint_32* extra, br_size_t extra_size, br_token t, void* block, br_tv_template* template); |
||
27 | |||
28 | br_error BrTokenValueQueryMany(br_token_value* tv, void* extra, br_size_t extra_size, br_int_32* pcount, void* block, br_tv_template* template); |
||
29 | |||
30 | br_error BrTokenValueQueryManySize(br_size_t* psize, br_token_value* tv, void* block, br_tv_template* template); |
||
31 | |||
32 | br_error BrTokenValueQueryAll(br_token_value* buffer, br_size_t buffer_size, void* block, br_tv_template* template); |
||
33 | |||
34 | br_error BrTokenValueQueryAllSize(br_size_t* psize, void* block, br_tv_template* template); |
||
35 | |||
36 | br_error BrTokenValueSet(void* mem, br_uint_32* pcombined_mask, br_token t, br_uint_32 value, br_tv_template* template); |
||
37 | |||
38 | br_error BrTokenValueSetMany(void* mem, br_int_32* pcount, br_uint_32* pcombined_mask, br_token_value* tv, br_tv_template* template); |
||
39 | |||
40 | void DumpMatrixInteger(br_int_32* ip, int rows, int cols, char* prefix, char* info_0, char* info_n, br_putline_cbfn* putline, void* arg); |
||
41 | |||
42 | void DumpMatrixFixed(br_fixed_ls* xp, int rows, int cols, char* prefix, char* info_0, char* info_n, br_putline_cbfn* putline, void* arg); |
||
43 | |||
44 | void DumpMatrixFloat(br_float* fp, int rows, int cols, char* prefix, char* info_0, char* info_n, br_putline_cbfn* putline, void* arg); |
||
45 | |||
46 | void DumpObject(br_object* h, char* prefix, char* info, br_putline_cbfn* putline, void* arg); |
||
47 | |||
48 | void BrTokenValueDump(br_token_value* tv, char* prefix, br_putline_cbfn* putline, void* arg); |
||
49 | |||
50 | br_error BrStringToTokenValue(br_token_value* buffer, br_size_t buffer_size, char* str); |
||
51 | |||
52 | br_error parseTokenValue(br_lexer* l, br_token_value* tv, br_size_t size); |
||
53 | |||
54 | br_boolean BrTokenValueCompare(br_token_value* tv1, br_token_value* tv2); |
||
55 | |||
56 | br_error BrTokenValueDup(br_token_value** dstp, br_token_value* src); |
||
57 | |||
58 | #endif |