Home
last modified time | relevance | path

Searched refs:key (Results 1 – 22 of 22) sorted by relevance

/rockchip-linux_mpp/utils/
H A Ddictionary.c75 new_key = (char**) calloc(d->size * 2, sizeof * d->key); in dictionary_grow()
89 memcpy(new_key, d->key, d->size * sizeof(char *)); in dictionary_grow()
93 free(d->key); in dictionary_grow()
98 d->key = new_key; in dictionary_grow()
118 unsigned dictionary_hash(const char * key) in dictionary_hash() argument
124 if (!key) in dictionary_hash()
127 len = strlen(key); in dictionary_hash()
129 hash += (unsigned)key[i] ; in dictionary_hash()
162 d->key = (char**) calloc(size, sizeof * d->key); in dictionary_new()
183 if (d->key[i] != NULL) in dictionary_del()
[all …]
H A Diniparser.c172 if (d->key[i] == NULL) in iniparser_getnsec()
174 if (strchr(d->key[i], ':') == NULL) { in iniparser_getnsec()
203 if (d->key[i] == NULL) in iniparser_getsecname()
205 if (strchr(d->key[i], ':') == NULL) { in iniparser_getsecname()
214 return d->key[i] ; in iniparser_getsecname()
236 if (d->key[i] == NULL) in iniparser_dump()
239 fprintf(f, "[%s]=[%s]\n", d->key[i], d->val[i]); in iniparser_dump()
241 fprintf(f, "[%s]=UNDEF\n", d->key[i]); in iniparser_dump()
270 if (d->key[i] == NULL) in iniparser_dump_ini()
272 fprintf(f, "%s = %s\n", d->key[i], d->val[i]); in iniparser_dump_ini()
[all …]
H A Ddictionary.h49 char ** key ; /** List of string keys */ member
70 unsigned dictionary_hash(const char * key);
110 const char * dictionary_get(const dictionary * d, const char * key, const char * def);
139 int dictionary_set(dictionary * vd, const char * key, const char * val);
152 void dictionary_unset(dictionary * d, const char * key);
H A Diniparser.h174 const char * iniparser_getstring(const dictionary * d, const char * key, const char * def);
203 int iniparser_getint(const dictionary * d, const char * key, int notfound);
230 long int iniparser_getlongint(const dictionary * d, const char * key, long int notfound);
246 double iniparser_getdouble(const dictionary * d, const char * key, double notfound);
280 int iniparser_getboolean(const dictionary * d, const char * key, int notfound);
/rockchip-linux_mpp/mpp/base/
H A Dmpp_task.c13 MPP_RET mpp_task_meta_set_s32(MppTask task, MppMetaKey key, RK_S32 val) in mpp_task_meta_set_s32() argument
19 return mpp_meta_set_s32(impl->meta, key, val); in mpp_task_meta_set_s32()
22 MPP_RET mpp_task_meta_set_s64(MppTask task, MppMetaKey key, RK_S64 val) in mpp_task_meta_set_s64() argument
28 return mpp_meta_set_s64(impl->meta, key, val); in mpp_task_meta_set_s64()
31 MPP_RET mpp_task_meta_set_ptr(MppTask task, MppMetaKey key, void *val) in mpp_task_meta_set_ptr() argument
37 return mpp_meta_set_ptr(impl->meta, key, val); in mpp_task_meta_set_ptr()
40 MPP_RET mpp_task_meta_set_frame(MppTask task, MppMetaKey key, MppFrame frame) in mpp_task_meta_set_frame() argument
46 return mpp_meta_set_frame(impl->meta, key, frame); in mpp_task_meta_set_frame()
49 MPP_RET mpp_task_meta_set_packet(MppTask task, MppMetaKey key, MppPacket packet) in mpp_task_meta_set_packet() argument
55 return mpp_meta_set_packet(impl->meta, key, packet); in mpp_task_meta_set_packet()
[all …]
H A Dmpp_meta.c74 static inline RK_U64 META_KEY_TO_U64(RK_U32 key, RK_U32 type) in META_KEY_TO_U64() argument
76 return (RK_U64)((RK_U32)htobe32(key)) | ((RK_U64)type << 32); in META_KEY_TO_U64()
79 #define EXPAND_AS_TRIE(key, type) \ argument
81 RK_U64 val = META_KEY_TO_U64(key, type); \
86 #define EXPAND_AS_LOG(key, type) \ argument
88 RK_U32 key_val = htobe32(key); \
91 i++, #key, str[0], str[1], str[2], str[3], #type); \
179 static inline RK_S32 get_index_of_key(MppMetaKey key, MppMetaType type, const char *caller);
180 #define get_index_of_key_f(key, type) get_index_of_key(key, type, __FUNCTION__); argument
262 static inline RK_S32 get_index_of_key(MppMetaKey key, MppMetaType type, const char *caller) in MPP_SINGLETON()
[all …]
H A Dmpp_trie.c58 rk_u16 key; member
97 static rk_s32 trie_get_node(MppTrieImpl *trie, rk_s32 prev, rk_u64 key) in trie_get_node() argument
126 node->key = key; in trie_get_node()
177 rk_u32 key = s[i]; in trie_pave_node() local
178 rk_s32 key0 = (key >> 4) & 0xf; in trie_pave_node()
179 rk_s32 key1 = (key >> 0) & 0xf; in trie_pave_node()
185 p, name, i, key, key, key0, key1, idx, next); in trie_pave_node()
197 p, name, i, key, key, node->idx, next); in trie_pave_node()
205 p, s, i, key, key, key0, key1, idx, next); in trie_pave_node()
217 p, name, i, key, key, node->idx, next); in trie_pave_node()
[all …]
H A Dmpp_buffer_impl.c1331 rk_u32 key; in service_dump() local
1340 hash_for_each_safe(srv->hash_group, key, n, group, hlist) { in service_dump()
/rockchip-linux_mpp/kmpp/base/inc/
H A Dkmpp_meta.h28 rk_s32 kmpp_meta_set_s32(KmppMeta meta, KmppMetaKey key, rk_s32 val);
29 rk_s32 kmpp_meta_set_s64(KmppMeta meta, KmppMetaKey key, rk_s64 val);
30 rk_s32 kmpp_meta_set_ptr(KmppMeta meta, KmppMetaKey key, void *val);
31 rk_s32 kmpp_meta_get_s32(KmppMeta meta, KmppMetaKey key, rk_s32 *val);
32 rk_s32 kmpp_meta_get_s64(KmppMeta meta, KmppMetaKey key, rk_s64 *val);
33 rk_s32 kmpp_meta_get_ptr(KmppMeta meta, KmppMetaKey key, void **val);
34 rk_s32 kmpp_meta_get_s32_d(KmppMeta meta, KmppMetaKey key, rk_s32 *val, rk_s32 def);
35 rk_s32 kmpp_meta_get_s64_d(KmppMeta meta, KmppMetaKey key, rk_s64 *val, rk_s64 def);
36 rk_s32 kmpp_meta_get_ptr_d(KmppMeta meta, KmppMetaKey key, void **val, void *def);
38 rk_s32 kmpp_meta_set_obj(KmppMeta meta, KmppMetaKey key, KmppObj obj);
[all …]
/rockchip-linux_mpp/inc/
H A Dmpp_task.h219 MPP_RET mpp_task_meta_set_s32(MppTask task, MppMetaKey key, RK_S32 val);
220 MPP_RET mpp_task_meta_set_s64(MppTask task, MppMetaKey key, RK_S64 val);
221 MPP_RET mpp_task_meta_set_ptr(MppTask task, MppMetaKey key, void *val);
222 MPP_RET mpp_task_meta_set_frame (MppTask task, MppMetaKey key, MppFrame frame);
223 MPP_RET mpp_task_meta_set_packet(MppTask task, MppMetaKey key, MppPacket packet);
224 MPP_RET mpp_task_meta_set_buffer(MppTask task, MppMetaKey key, MppBuffer buffer);
226 MPP_RET mpp_task_meta_get_s32(MppTask task, MppMetaKey key, RK_S32 *val, RK_S32 default_val);
227 MPP_RET mpp_task_meta_get_s64(MppTask task, MppMetaKey key, RK_S64 *val, RK_S64 default_val);
228 MPP_RET mpp_task_meta_get_ptr(MppTask task, MppMetaKey key, void **val, void *default_val);
229 MPP_RET mpp_task_meta_get_frame (MppTask task, MppMetaKey key, MppFrame *frame);
[all …]
H A Dmpp_meta.h179 MPP_RET mpp_meta_set_s32(MppMeta meta, MppMetaKey key, RK_S32 val);
180 MPP_RET mpp_meta_set_s64(MppMeta meta, MppMetaKey key, RK_S64 val);
181 MPP_RET mpp_meta_set_ptr(MppMeta meta, MppMetaKey key, void *val);
182 MPP_RET mpp_meta_get_s32(MppMeta meta, MppMetaKey key, RK_S32 *val);
183 MPP_RET mpp_meta_get_s64(MppMeta meta, MppMetaKey key, RK_S64 *val);
184 MPP_RET mpp_meta_get_ptr(MppMeta meta, MppMetaKey key, void **val);
186 MPP_RET mpp_meta_set_frame (MppMeta meta, MppMetaKey key, MppFrame frame);
187 MPP_RET mpp_meta_set_packet(MppMeta meta, MppMetaKey key, MppPacket packet);
188 MPP_RET mpp_meta_set_buffer(MppMeta meta, MppMetaKey key, MppBuffer buffer);
189 MPP_RET mpp_meta_get_frame (MppMeta meta, MppMetaKey key, MppFrame *frame);
[all …]
/rockchip-linux_mpp/kmpp/base/
H A Dkmpp_meta.c44 #define META_KEY_TO_U64(key, type) ((rk_u64)((rk_u32)htobe32(key)) | ((rk_u64)type << 32)) argument
187 static void *meta_key_to_addr(KmppObj meta, KmppMetaKey key, KmppMetaType type) in meta_key_to_addr() argument
191 rk_u64 val = META_KEY_TO_U64(key, type); in meta_key_to_addr()
293 rk_s32 kmpp_meta_set_##func_type(KmppMeta meta, KmppMetaKey key, arg_type val) \
295 KmppMetaVal *meta_val = meta_key_to_addr(meta, key, key_type); \
304 rk_s32 kmpp_meta_get_##func_type(KmppMeta meta, KmppMetaKey key, arg_type *val) \
306 KmppMetaVal *meta_val = meta_key_to_addr(meta, key, key_type); \
316 …rk_s32 kmpp_meta_get_##func_type##_d(KmppMeta meta, KmppMetaKey key, arg_type *val, arg_type def) \
318 KmppMetaVal *meta_val = meta_key_to_addr(meta, key, key_type); \
334 rk_s32 kmpp_meta_set_obj(KmppMeta meta, KmppMetaKey key, KmppObj val) in KMPP_META_ACCESSOR()
[all …]
/rockchip-linux_mpp/mpp/legacy/
H A Drk_list.cpp28 RK_U32 key; member
37 static inline void list_node_init_with_key_and_size(rk_list_node *node, RK_U32 key, RK_S32 size) in list_node_init_with_key_and_size() argument
40 node->key = key; in list_node_init_with_key_and_size()
44 static rk_list_node* create_list(void *data, RK_S32 size, RK_U32 key) in create_list() argument
49 list_node_init_with_key_and_size(node, key, size); in create_list()
184 RK_S32 rk_list::add_by_key(void *data, RK_S32 size, RK_U32 *key) in add_by_key() argument
189 (void)key; in add_by_key()
193 RK_S32 rk_list::del_by_key(void *data, RK_S32 size, RK_U32 key) in del_by_key() argument
198 (void)key; in del_by_key()
203 RK_S32 rk_list::show_by_key(void *data, RK_U32 key) in show_by_key() argument
[all …]
H A Drk_list.h32 RK_S32 add_by_key(void *data, RK_S32 size, RK_U32 *key);
33 RK_S32 del_by_key(void *data, RK_S32 size, RK_U32 key);
34 RK_S32 show_by_key(void *data, RK_U32 key);
/rockchip-linux_mpp/osal/
H A Dmpp_list.c26 static inline void list_node_init_with_key_and_size(MppListNode *node, rk_u32 key, rk_s32 size) in list_node_init_with_key_and_size() argument
29 node->key = key; in list_node_init_with_key_and_size()
33 static MppListNode* create_list(void *data, rk_s32 size, rk_u32 key) in create_list() argument
39 list_node_init_with_key_and_size(node, key, size); in create_list()
157 static MppListNode* create_list_with_size(void *data, rk_s32 size, rk_u32 key) in create_list_with_size() argument
163 list_node_init_with_key_and_size(node, key, size); in create_list_with_size()
228 rk_s32 mpp_list_add_by_key(MppList *list, void *data, rk_s32 size, rk_u32 *key) in mpp_list_add_by_key() argument
236 *key = list_key; in mpp_list_add_by_key()
249 rk_s32 mpp_list_del_by_key(MppList *list, void *data, rk_s32 size, rk_u32 key) in mpp_list_del_by_key() argument
258 if (tmp->key == key) { in mpp_list_del_by_key()
[all …]
/rockchip-linux_mpp/osal/inc/
H A Dmpp_list.h31 rk_u32 key; member
54 rk_s32 mpp_list_add_by_key(MppList *list, void *data, rk_s32 size, rk_u32 *key);
55 rk_s32 mpp_list_del_by_key(MppList *list, void *data, rk_s32 size, rk_u32 key);
56 rk_s32 mpp_list_show_by_key(MppList *list, void *data, rk_u32 key);
H A Dmpp_hash.h260 #define hash_add(hashtable, node, key) \ argument
261 hlist_add_head(node, &hashtable[hash_min(key, HASH_BITS(hashtable))])
298 #define hash_for_each_possible(name, obj, member, key) \ argument
299 hlist_for_each_entry(obj, &name[hash_min(key, HASH_BITS(name))], member)
/rockchip-linux_mpp/tools/
H A Dresolution_test.sh145 key="$1"
146 case ${key} in
H A Dmpp_doxyfile1457 # search using the keyboard; to jump to the search box use <access key> + S
1458 # (what the <access key> is depends on the OS and browser, but it is typically
1460 # key> to jump into the search results window, the results can be navigated
/rockchip-linux_mpp/doc/
H A DRockchip_Developer_Guide_MPP_CN.md247 MppTask是一个通过关键字key值(MppMetaKey)来进行扩展的结构,可以通过扩展支持的数据类型来支持复杂的高级需求。可以使用通过mpp_task_meta_set/get_xxx系列接口…
591 为了缓解这个问题MppEncCfg使用(void \*)作为类型,使用<字符串-值>进行key map式的配置,函数接口分为s32/u32/s64/u64/ptr,对应的接口函数分为set与get两…
H A DRockchip_Developer_Guide_MPP_EN.md279 …aces. The description of the codec interface is shown below, and then some key points in the work …
565 To alleviate this problem, MppEncCfg uses (void \*) as the type, and uses \<string-value\> for key
/rockchip-linux_mpp/
H A DCHANGELOG.md11 - [mpp_meta]: Add more frame buffer key to meta
194 - [mpp_meta]: Use trie to index the meta key