Home
last modified time | relevance | path

Searched refs:palette_size (Results 1 – 25 of 31) sorted by relevance

12

/external/libgav1/libgav1/src/tile/bitstream/
Dpalette.cc64 const uint8_t palette_size = bp.palette_mode_info.size[plane_type]; in ReadPaletteColors() local
68 for (int i = 0; i < n && index < palette_size; ++i) { in ReadPaletteColors()
74 if (index < palette_size) { in ReadPaletteColors()
79 if (index < palette_size) { in ReadPaletteColors()
91 Memset(&palette_color[index + 1], max_value, palette_size - index - 1); in ReadPaletteColors()
97 } while (++index < palette_size); in ReadPaletteColors()
102 palette_color + palette_size); in ReadPaletteColors()
108 for (int i = 1; i < palette_size; ++i) { in ReadPaletteColors()
123 for (int i = 0; i < palette_size; ++i) { in ReadPaletteColors()
253 const int palette_size = palette_mode_info.size[plane_type]; in ReadPaletteTokens() local
[all …]
/external/mesa3d/src/mesa/main/
Dtexcompress_cpal.c47 GLuint palette_size; member
85 if (info->palette_size == 16) { in paletted_to_color()
124 expect_size = info->palette_size * info->size; in _mesa_cpal_compressed_size()
133 if (info->palette_size == 16) in _mesa_cpal_compressed_size()
169 indices = (const GLubyte *) palette + info->palette_size * info->size; in _mesa_cpal_compressed_teximage2d()
202 if (info->palette_size == 16) in _mesa_cpal_compressed_teximage2d()
/external/webp/src/enc/
Dvp8l_enc.c126 int* const palette_size) { in AnalyzeAndCreatePalette() argument
129 *palette_size = 0; in AnalyzeAndCreatePalette()
132 *palette_size = num_colors; in AnalyzeAndCreatePalette()
191 int palette_size, int transform_bits, in AnalyzeEntropy() argument
197 if (use_palette && palette_size <= 16) { in AnalyzeEntropy()
295 entropy[kPalette] += palette_size * 8; in AnalyzeEntropy()
1294 int palette_size, in SearchColorGreedy() argument
1296 (void)palette_size; in SearchColorGreedy()
1297 assert(palette_size < APPLY_PALETTE_GREEDY_MAX); in SearchColorGreedy()
1361 const uint32_t* palette, int palette_size, in ApplyPalette() argument
[all …]
Dalpha_enc.c276 stats->palette_size = best.stats.palette_size; in ApplyFiltersAndEncode()
/external/pdfium/core/fpdfapi/page/
Dcpdf_image.cpp222 size_t palette_size = pBitmap->GetPaletteSize(); in SetImage() local
223 if (palette_size > 0) { in SetImage()
224 ASSERT(palette_size <= 256); in SetImage()
228 pCS->AddNew<CPDF_Number>(static_cast<int>(palette_size - 1)); in SetImage()
230 FX_Alloc2D(uint8_t, palette_size, 3)); in SetImage()
232 for (size_t i = 0; i < palette_size; i++) { in SetImage()
241 std::move(pColorTable), palette_size * 3, std::move(pNewDict)); in SetImage()
/external/libaom/libaom/av1/encoder/
Dpalette.c101 const int n = pmi->palette_size[1]; in av1_get_palette_delta_bits_v()
120 const int n = pmi->palette_size[0]; in av1_palette_color_cost_y()
134 const int n = pmi->palette_size[1]; in av1_palette_color_cost_uv()
Dintra_mode_search.c315 const int use_palette = mbmi->palette_mode_info.palette_size[0] > 0; in intra_mode_info_cost_y()
333 const int plt_size = mbmi->palette_mode_info.palette_size[0]; in intra_mode_info_cost_y()
371 const int use_palette = mbmi->palette_mode_info.palette_size[1] > 0; in intra_mode_info_cost_uv()
381 x->palette_uv_mode_cost[pmi->palette_size[0] > 0][use_palette]; in intra_mode_info_cost_uv()
384 const int plt_size = pmi->palette_size[1]; in intra_mode_info_cost_uv()
427 mbmi->palette_mode_info.palette_size[0] = 0; in rd_pick_filter_intra_sby()
588 pmi->palette_size[0] = num_unique_colors; in palette_rd_y()
999 if (best_mbmi->palette_mode_info.palette_size[0] > 0) { in rd_pick_palette_intra_sby()
1118 pmi->palette_size[1] = n; in rd_pick_palette_intra_sbuv()
1148 if (best_mbmi->palette_mode_info.palette_size[1] > 0) { in rd_pick_palette_intra_sbuv()
[all …]
Drdopt_utils.h573 mbmi->palette_mode_info.palette_size[1] = 0; in init_sbuv_mode()
584 int is_palette_mode = mbmi->palette_mode_info.palette_size[PLANE_TYPE_Y] > 0; in store_winner_mode_stats()
Dtokenize.c88 params->n_colors = pmi->palette_size[plane]; in get_palette_params()
Dbitstream.c671 const int n = pmi->palette_size[0]; in write_palette_colors_y()
695 const int n = pmi->palette_size[1]; in write_palette_colors_uv()
762 const int n = pmi->palette_size[0]; in write_palette_mode_info()
778 const int n = pmi->palette_size[1]; in write_palette_mode_info()
779 const int palette_uv_mode_ctx = (pmi->palette_size[0] > 0); in write_palette_mode_info()
1515 mbmi->palette_mode_info.palette_size[plane]; in write_modes_b()
Dencodeframe.c944 const int n = pmi->palette_size[0]; in update_palette_cdf()
962 const int n = pmi->palette_size[1]; in update_palette_cdf()
963 const int palette_uv_mode_ctx = (pmi->palette_size[0] > 0); in update_palette_cdf()
3100 if (pmi->palette_size[0] == 0 && pmi->palette_size[1] == 0) { in rd_pick_partition()
3194 if (pmi->palette_size[0] == 0 && pmi->palette_size[1] == 0) { in rd_pick_partition()
3284 if (pmi->palette_size[0] == 0 && pmi->palette_size[1] == 0) { in rd_pick_partition()
6341 if (mbmi->palette_mode_info.palette_size[plane] > 0) { in encode_superblock()
/external/u-boot/drivers/video/
Dpxa_lcd.c366 if (regno < fbi->palette_size) { in lcd_setcolreg()
417 fbi->palette_size = NBITS(vid->vl_bpix) == 8 ? 256 : 16; in pxafb_init_mem()
418 palette_mem_size = fbi->palette_size * sizeof(u16); in pxafb_init_mem()
575 fbi->dmadesc_palette->ldcmd = (fbi->palette_size * 2) | LDCMD_PAL; in pxafb_init()
/external/u-boot/include/
Dpxa_lcd.h41 u_int palette_size; member
/external/libaom/libaom/av1/decoder/
Dinspection.c89 mi->palette = (int16_t)mbmi->palette_mode_info.palette_size[0]; in ifd_inspect()
90 mi->uv_palette = (int16_t)mbmi->palette_mode_info.palette_size[1]; in ifd_inspect()
Ddecodemv.c478 const int n = pmi->palette_size[0]; in read_palette_colors_y()
507 const int n = pmi->palette_size[1]; in read_palette_colors_uv()
577 pmi->palette_size[0] = in read_palette_mode_info()
585 const int palette_uv_mode_ctx = (pmi->palette_size[0] > 0); in read_palette_mode_info()
589 pmi->palette_size[1] = in read_palette_mode_info()
792 mbmi->palette_mode_info.palette_size[0] = 0; in read_intra_frame_mode_info()
793 mbmi->palette_mode_info.palette_size[1] = 0; in read_intra_frame_mode_info()
1093 mbmi->palette_mode_info.palette_size[0] = 0; in read_intra_block_mode_info()
1094 mbmi->palette_mode_info.palette_size[1] = 0; in read_intra_block_mode_info()
1278 mbmi->palette_mode_info.palette_size[0] = 0; in read_inter_block_mode_info()
[all …]
Ddetokenize.c74 params.n_colors = mbmi->palette_mode_info.palette_size[plane]; in av1_decode_palette_tokens()
Ddecoder.c238 if (xd->mi[0]->palette_mode_info.palette_size[plane]) in av1_visit_palette()
241 assert(xd->mi[0]->palette_mode_info.palette_size[plane] == 0); in av1_visit_palette()
/external/libaom/libaom/av1/common/
Dreconintra.h71 mbmi->palette_mode_info.palette_size[0] == 0 && in av1_filter_intra_allowed()
Dpred_common.h198 if (above_mi) ctx += (above_mi->palette_mode_info.palette_size[0] > 0); in av1_get_palette_mode_ctx()
199 if (left_mi) ctx += (left_mi->palette_mode_info.palette_size[0] > 0); in av1_get_palette_mode_ctx()
Dpred_common.c81 if (above_mi) above_n = above_mi->palette_mode_info.palette_size[plane != 0]; in av1_get_palette_cache()
82 if (left_mi) left_n = left_mi->palette_mode_info.palette_size[plane != 0]; in av1_get_palette_cache()
Dentropymode.c901 int r, int c, int palette_size, in av1_get_palette_color_index_context() argument
903 assert(palette_size <= PALETTE_MAX_SIZE); in av1_get_palette_color_index_context()
935 for (int j = i + 1; j < palette_size; ++j) { in av1_get_palette_color_index_context()
Dentropymode.h205 int r, int c, int palette_size,
/external/pdfium/core/fxcodec/gif/
Dcfx_gifcontext.cpp387 uint32_t palette_size = palette_count * sizeof(CFX_GifPalette); in ReadLogicalScreenDescriptor() local
390 palette_size)) { in ReadLogicalScreenDescriptor()
/external/webp/src/webp/
Dencode.h225 int palette_size; // number of color in palette, if used member
/external/webp/include/webp/
Dencode.h225 int palette_size; // number of color in palette, if used member

12