Home
last modified time | relevance | path

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

12

/third_party/ffmpeg/libavformat/
Davs.c94 uint8_t * palette, int palette_size) in avs_read_video_packet() argument
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 + 3] = (size >> 8) & 0xFF; in avs_read_video_packet()
[all …]
Dyop.c36 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()
Djvdec.c39 int palette_size; /**< palette size (bytes) */ member
133 jvf->palette_size = avio_r8(pb) ? 768 : 0; in read_header()
138 - jvf->palette_size < 0) { in read_header()
147 jvf->palette_size = 0; in read_header()
190 if (jvf->video_size || jvf->palette_size) { in read_packet()
191 int size = jvf->video_size + jvf->palette_size; in read_packet()
214 - jvf->palette_size, 0)); in read_packet()
Dcdxl.c122 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/ffmpeg/libavcodec/
Dcdxl.c50 int palette_size; member
70 for (int i = 0; i < c->palette_size / 2; i++) { in import_palette()
78 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 && c->bpp <= 8 && c->format != CHUNKY) { in cdxl_decode_frame()
[all …]
Daasc.c41 int palette_size; member
56 s->palette_size = FFMIN(avctx->extradata_size, AVPALETTE_SIZE); in aasc_decode_init()
57 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()
Diff.c158 int palette_size = avctx->extradata_size - AV_RB16(avctx->extradata); in cmap_read_palette() local
167 count = FFMIN(palette_size / 3, count); in cmap_read_palette()
210 int i, palette_size; in extract_header() local
216 palette_size = avctx->extradata_size - AV_RB16(avctx->extradata); in extract_header()
269 if (buf_size <= 1 || palette_size < 0) { in extract_header()
272 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 = 0; in decode_init()
[all …]
/third_party/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()
/third_party/flutter/skia/third_party/externals/libwebp/extras/
Dextras.c118 const uint32_t palette[], int palette_size, in WebPImportColorMappedARGB() argument
125 palette == NULL || palette_size > MAX_PALETTE_SIZE || palette_size <= 0) { in WebPImportColorMappedARGB()
134 if (indexed[x] >= palette_size) { in WebPImportColorMappedARGB()
Dextras.h51 const uint32_t palette[], int palette_size,
/third_party/flutter/skia/third_party/externals/libwebp/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()
/third_party/skia/third_party/externals/libwebp/extras/
Dextras.c119 const uint32_t palette[], int palette_size, in WebPImportColorMappedARGB() argument
126 palette == NULL || palette_size > MAX_PALETTE_SIZE || palette_size <= 0) { in WebPImportColorMappedARGB()
135 if (indexed[x] >= palette_size) { in WebPImportColorMappedARGB()
Dextras.h51 const uint32_t palette[], int palette_size,
/third_party/skia/third_party/externals/libwebp/src/enc/
Dvp8l_enc.c384 int palette_size, int transform_bits, in AnalyzeEntropy() argument
390 if (use_palette && palette_size <= 16) { in AnalyzeEntropy()
488 entropy[kPalette] += palette_size * 8; in AnalyzeEntropy()
1508 int palette_size, in SearchColorGreedy() argument
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() argument
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; ++j) { in ApplyPalette()
[all …]
Dalpha_enc.c276 stats->palette_size = best.stats.palette_size; in ApplyFiltersAndEncode()
/third_party/flutter/skia/third_party/externals/libwebp/src/webp/
Dencode.h228 int palette_size; // number of color in palette, if used member
/third_party/skia/third_party/externals/libwebp/src/webp/
Dencode.h226 int palette_size; // number of color in palette, if used member
/third_party/flutter/skia/third_party/externals/libwebp/examples/
Dcwebp.c179 if (stats->palette_size > 0) { in PrintFullLosslessInfo()
180 fprintf(stderr, " * Palette size: %d\n", stats->palette_size); in PrintFullLosslessInfo()
/third_party/skia/third_party/externals/libwebp/examples/
Dcwebp.c182 if (stats->palette_size > 0) { in PrintFullLosslessInfo()
183 fprintf(stderr, " * Palette size: %d\n", stats->palette_size); in PrintFullLosslessInfo()
/third_party/flutter/skia/third_party/externals/libpng/
Dpngwutil.c1185 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()
/third_party/libpng/
Dpngwutil.c1185 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()
/third_party/skia/third_party/externals/libpng/
Dpngwutil.c1185 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()
/third_party/gstreamer/gstplugins_good/gst/isomp4/
Dqtdemux.c11174 gint depth, palette_size, palette_count; in qtdemux_parse_trak() local
11217 palette_size = palette_count * 4; in qtdemux_parse_trak()
11224 palette_data = g_memdup2 (ff_qt_default_palette_2, palette_size); in qtdemux_parse_trak()
11227 palette_data = g_memdup2 (ff_qt_default_palette_4, palette_size); in qtdemux_parse_trak()
11232 g_memdup2 (ff_qt_grayscale_palette_16, palette_size); in qtdemux_parse_trak()
11234 palette_data = g_memdup2 (ff_qt_default_palette_16, palette_size); in qtdemux_parse_trak()
11239 g_memdup2 (ff_qt_grayscale_palette_256, palette_size); in qtdemux_parse_trak()
11242 g_memdup2 (ff_qt_default_palette_256, palette_size); in qtdemux_parse_trak()
11274 palette_size = 256 * 4; in qtdemux_parse_trak()
11313 palette_data, palette_size, 0, palette_size, palette_data, g_free); in qtdemux_parse_trak()
/third_party/openGLES/extensions/ARB/
DARB_matrix_palette.txt632 for (i=0; i<palette_size; i++)

12