/third_party/ffmpeg/libavformat/ |
H A D | avs.c | 94 uint8_t * palette, int palette_size) in avs_read_video_packet() 99 ret = av_new_packet(pkt, size + palette_size); in avs_read_video_packet() 103 if (palette_size) { in avs_read_video_packet() 106 pkt->data[2] = palette_size & 0xFF; in avs_read_video_packet() 107 pkt->data[3] = (palette_size >> 8) & 0xFF; in avs_read_video_packet() 108 memcpy(pkt->data + 4, palette, palette_size - 4); in avs_read_video_packet() 111 pkt->data[palette_size + 0] = sub_type; in avs_read_video_packet() 112 pkt->data[palette_size + 1] = type; in avs_read_video_packet() 113 pkt->data[palette_size + 2] = size & 0xFF; in avs_read_video_packet() 114 pkt->data[palette_size in avs_read_video_packet() 92 avs_read_video_packet(AVFormatContext * s, AVPacket * pkt, AvsBlockType type, int sub_type, int size, uint8_t * palette, int palette_size) avs_read_video_packet() argument 159 int palette_size = 0; avs_read_packet() local [all...] |
H A D | yop.c | 37 int palette_size; member 97 yop->palette_size = video_par->extradata[0] * 3 + 4; in yop_read_header() 104 yop->audio_block_length + yop->palette_size >= yop->frame_size) { in yop_read_header() 123 yop->audio_block_length - yop->palette_size; in yop_read_packet() 141 ret = avio_read(pb, yop->video_packet.data, yop->palette_size); in yop_read_packet() 144 }else if (ret < yop->palette_size) { in yop_read_packet() 158 ret = avio_read(pb, yop->video_packet.data + yop->palette_size, in yop_read_packet() 163 av_shrink_packet(&yop->video_packet, yop->palette_size + ret); in yop_read_packet()
|
H A D | jvdec.c | 39 uint16_t palette_size; /**< palette size (bytes) */ member 131 jvf->palette_size = avio_r8(pb) ? 768 : 0; in read_header() 136 - jvf->palette_size < 0) { in read_header() 141 jvf->palette_size = 0; in read_header() 185 if (jvf->video_size || jvf->palette_size) { in read_packet() 186 int size = jvf->video_size + jvf->palette_size; in read_packet() 209 - jvf->palette_size, 0)); in read_packet()
|
H A D | cdxl.c | 122 uint16_t audio_size, palette_size, width, height; in cdxl_read_packet() local 144 palette_size = AV_RB16(&cdxl->header[20]); in cdxl_read_packet() 158 video_size = palette_size + image_size; in cdxl_read_packet() 160 if ((type == 1 && palette_size > 512) || in cdxl_read_packet() 161 (type == 0 && palette_size > 768)) in cdxl_read_packet()
|
/third_party/mesa3d/src/mesa/main/ |
H A D | texcompress_cpal.c | 48 GLuint palette_size; member 86 if (info->palette_size == 16) { in paletted_to_color() 125 expect_size = info->palette_size * info->size; in _mesa_cpal_compressed_size() 134 if (info->palette_size == 16) in _mesa_cpal_compressed_size() 170 indices = (const GLubyte *) palette + info->palette_size * info->size; in _mesa_cpal_compressed_teximage2d() 203 if (info->palette_size == 16) in _mesa_cpal_compressed_teximage2d()
|
/third_party/ffmpeg/libavcodec/ |
H A D | cdxl.c | 51 int palette_size; member 71 for (int i = 0; i < c->palette_size / 2; i++) { in import_palette() 79 for (int i = 0; i < c->palette_size / 3; i++) { in import_palette() 261 c->palette_size = AV_RB16(&buf[20]); in cdxl_decode_frame() 263 c->video = c->palette + c->palette_size; in cdxl_decode_frame() 264 c->video_size = buf_size - c->palette_size - 32; in cdxl_decode_frame() 268 if (c->type == 1 && c->palette_size > 512) in cdxl_decode_frame() 270 if (c->type == 0 && c->palette_size > 768) in cdxl_decode_frame() 272 if (buf_size < c->palette_size + 32) in cdxl_decode_frame() 291 if (!encoding && c->palette_size in cdxl_decode_frame() [all...] |
H A D | aasc.c | 42 int palette_size; member 57 s->palette_size = FFMIN(avctx->extradata_size, AVPALETTE_SIZE); in aasc_decode_init() 58 for (i = 0; i < s->palette_size / 4; i++) { in aasc_decode_init() 133 memcpy(s->frame->data[1], s->palette, s->palette_size); in aasc_decode_frame()
|
H A D | iff.c | 159 int palette_size = avctx->extradata_size - AV_RB16(avctx->extradata); in cmap_read_palette() local 168 count = FFMIN(palette_size / 3, count); in cmap_read_palette() 211 int i, palette_size; in extract_header() local 217 palette_size = avctx->extradata_size - AV_RB16(avctx->extradata); in extract_header() 270 if (buf_size <= 1 || palette_size < 0) { in extract_header() 273 buf_size, palette_size); in extract_header() 332 int i, count = FFMIN(palette_size / 3, 1 << s->ham); in extract_header() 405 int palette_size; in decode_init() local 408 palette_size = avctx->extradata_size - AV_RB16(avctx->extradata); in decode_init() 410 palette_size in decode_init() [all...] |
/third_party/skia/third_party/externals/libwebp/extras/ |
H A D | extras.c | 119 const uint32_t palette[], int palette_size, in WebPImportColorMappedARGB() 126 palette == NULL || palette_size > MAX_PALETTE_SIZE || palette_size <= 0) { in WebPImportColorMappedARGB() 135 if (indexed[x] >= palette_size) { in WebPImportColorMappedARGB() 118 WebPImportColorMappedARGB(const uint8_t* indexed, int indexed_stride, const uint32_t palette[], int palette_size, WebPPicture* pic) WebPImportColorMappedARGB() argument
|
H A D | extras.h | 51 const uint32_t palette[], int palette_size,
|
/third_party/skia/third_party/externals/libwebp/src/enc/ |
H A D | vp8l_enc.c | 384 int palette_size, int transform_bits, in AnalyzeEntropy() 390 if (use_palette && palette_size <= 16) { in AnalyzeEntropy() 488 entropy[kPalette] += palette_size * 8; in AnalyzeEntropy() 1508 int palette_size, in SearchColorGreedy() 1510 (void)palette_size; in SearchColorGreedy() 1511 assert(palette_size < APPLY_PALETTE_GREEDY_MAX); in SearchColorGreedy() 1564 const uint32_t* palette, int palette_size, in ApplyPalette() 1573 if (palette_size < APPLY_PALETTE_GREEDY_MAX) { in ApplyPalette() 1574 APPLY_PALETTE_FOR(SearchColorGreedy(palette, palette_size, pix)); in ApplyPalette() 1589 for (j = 0; j < palette_size; in ApplyPalette() 381 AnalyzeEntropy(const uint32_t* argb, int width, int height, int argb_stride, int use_palette, int palette_size, int transform_bits, EntropyIx* const min_entropy_ix, int* const red_and_blue_always_zero) AnalyzeEntropy() argument 1507 SearchColorGreedy(const uint32_t palette[], int palette_size, uint32_t color) SearchColorGreedy() argument 1562 ApplyPalette(const uint32_t* src, uint32_t src_stride, uint32_t* dst, uint32_t dst_stride, const uint32_t* palette, int palette_size, int width, int height, int xbits) ApplyPalette() argument 1633 const int palette_size = enc->palette_size_; MapImageFromPalette() local 1659 const int palette_size = enc->palette_size_; EncodePalette() local [all...] |
H A D | alpha_enc.c | 276 stats->palette_size = best.stats.palette_size; in ApplyFiltersAndEncode()
|
/third_party/skia/third_party/externals/libwebp/src/webp/ |
H A D | encode.h | 226 int palette_size; // number of color in palette, if used member
|
/third_party/skia/third_party/externals/libwebp/examples/ |
H A D | cwebp.c | 182 if (stats->palette_size > 0) { in PrintFullLosslessInfo() 183 fprintf(stderr, " * Palette size: %d\n", stats->palette_size); in PrintFullLosslessInfo()
|
/third_party/skia/third_party/externals/libpng/ |
H A D | pngwutil.c | 1185 size_t palette_size = entry_size * (size_t)spalette->nentries; in png_write_sPLT() local 1200 (png_uint_32)(name_len + 2 + palette_size)); in png_write_sPLT()
|