Home
last modified time | relevance | path

Searched refs:j2s_pool (Results 1 – 2 of 2) sorted by relevance

/OK3568_Linux_fs/external/camera_engine_rkaiq/rkaiq/tools/j2s4b/src/j2s4b/
H A Dj2s4b_utils.cpp33 j2s_pool_t *j2s_pool = (j2s_pool_t *)ctx->priv; in j2s_alloc_map_record() local
35 if (!j2s_pool->maps_list) { in j2s_alloc_map_record()
36 j2s_pool->maps_list = (map_index_t *)calloc(1, sizeof(map_index_t)); in j2s_alloc_map_record()
37 j2s_pool->map_len = 1; in j2s_alloc_map_record()
39 j2s_pool->map_len++; in j2s_alloc_map_record()
40 j2s_pool->maps_list = (map_index_t *)realloc( in j2s_alloc_map_record()
41 j2s_pool->maps_list, j2s_pool->map_len * sizeof(map_index_t)); in j2s_alloc_map_record()
44 j2s_pool->maps_list[j2s_pool->map_len - 1].dst_offset = in j2s_alloc_map_record()
45 (void *)((uint8_t *)dst - j2s_pool->data); in j2s_alloc_map_record()
47 j2s_pool->maps_list[j2s_pool->map_len - 1].ptr_offset = in j2s_alloc_map_record()
[all …]
H A Dj2s.cpp1324 j2s_pool_t *j2s_pool = NULL; in j2s_json_to_bin() local
1336 j2s_pool = (j2s_pool_t *)ctx->priv; in j2s_json_to_bin()
1338 size_t map_start = j2s_pool->used; in j2s_json_to_bin()
1339 memcpy(current_index, j2s_pool->data, j2s_pool->used); in j2s_json_to_bin()
1340 current_index += j2s_pool->used; in j2s_json_to_bin()
1341 memcpy(current_index, j2s_pool->maps_list, sizeof(map_index_t) * j2s_pool->map_len); in j2s_json_to_bin()
1342 current_index += sizeof(map_index_t) * j2s_pool->map_len; in j2s_json_to_bin()
1345 memcpy(current_index, &j2s_pool->map_len, sizeof(size_t)); in j2s_json_to_bin()
1348 bin_size = j2s_pool->used + sizeof(map_index_t) * j2s_pool->map_len + sizeof(size_t) * 2; in j2s_json_to_bin()
1354 DBG("maps [%zu][%zu][%zu]\n", sizeof(map_index_t), j2s_pool->map_len, map_start); in j2s_json_to_bin()