Lines Matching refs:res
69 static int read_bits_signed(bit_iterator_t * it, int n_bits, lv_fs_res_t * res);
70 static unsigned int read_bits(bit_iterator_t * it, int n_bits, lv_fs_res_t * res);
170 static unsigned int read_bits(bit_iterator_t * it, int n_bits, lv_fs_res_t * res) in read_bits() argument
179 *res = lv_fs_read(it->fp, &(it->byte_value), 1, NULL); in read_bits()
180 if(*res != LV_FS_RES_OK) { in read_bits()
188 *res = LV_FS_RES_OK; in read_bits()
192 static int read_bits_signed(bit_iterator_t * it, int n_bits, lv_fs_res_t * res) in read_bits_signed() argument
194 unsigned int value = read_bits(it, n_bits, res); in read_bits_signed()
226 lv_fs_res_t res = lv_fs_seek(fp, cmaps_start + cmap_table[i].data_offset, LV_FS_SEEK_SET); in load_cmaps_tables() local
227 if(res != LV_FS_RES_OK) { in load_cmaps_tables()
334 lv_fs_res_t res = lv_fs_seek(fp, start + glyph_offset[i], LV_FS_SEEK_SET); in load_glyph() local
335 if(res != LV_FS_RES_OK) { in load_glyph()
345 gdsc->adv_w = read_bits(&bit_it, header->advance_width_bits, &res); in load_glyph()
346 if(res != LV_FS_RES_OK) { in load_glyph()
355 gdsc->ofs_x = read_bits_signed(&bit_it, header->xy_bits, &res); in load_glyph()
356 if(res != LV_FS_RES_OK) { in load_glyph()
360 gdsc->ofs_y = read_bits_signed(&bit_it, header->xy_bits, &res); in load_glyph()
361 if(res != LV_FS_RES_OK) { in load_glyph()
365 gdsc->box_w = read_bits(&bit_it, header->wh_bits, &res); in load_glyph()
366 if(res != LV_FS_RES_OK) { in load_glyph()
370 gdsc->box_h = read_bits(&bit_it, header->wh_bits, &res); in load_glyph()
371 if(res != LV_FS_RES_OK) { in load_glyph()
400 lv_fs_res_t res = lv_fs_seek(fp, start + glyph_offset[i], LV_FS_SEEK_SET); in load_glyph() local
401 if(res != LV_FS_RES_OK) { in load_glyph()
408 read_bits(&bit_it, nbits, &res); in load_glyph()
409 if(res != LV_FS_RES_OK) { in load_glyph()
427 glyph_bmp[cur_bmp_size + k] = read_bits(&bit_it, 8, &res); in load_glyph()
428 if(res != LV_FS_RES_OK) { in load_glyph()
432 glyph_bmp[cur_bmp_size + bmp_size - 1] = read_bits(&bit_it, 8 - nbits % 8, &res); in load_glyph()
433 if(res != LV_FS_RES_OK) { in load_glyph()