Home
last modified time | relevance | path

Searched refs:pal (Results 1 – 25 of 378) sorted by relevance

12345678910>>...16

/third_party/ffmpeg/libavcodec/
Dbfi.c37 uint32_t pal[256]; member
60 uint32_t *pal; in bfi_decode_frame() local
77 pal = (uint32_t *)frame->data[1]; in bfi_decode_frame()
80 *pal = 0xFFU << 24; in bfi_decode_frame()
82 *pal += ((avctx->extradata[i * 3 + j] << 2) | in bfi_decode_frame()
84 pal++; in bfi_decode_frame()
86 memcpy(bfi->pal, frame->data[1], sizeof(bfi->pal)); in bfi_decode_frame()
92 memcpy(frame->data[1], bfi->pal, sizeof(bfi->pal)); in bfi_decode_frame()
Dimx.c28 uint32_t pal[256]; member
54 const uint8_t *pal = av_packet_get_side_data(avpkt, AV_PKT_DATA_PALETTE, &pal_size); in imx_decode_frame() local
61 if (pal && pal_size == AVPALETTE_SIZE) { in imx_decode_frame()
62 memcpy(imx->pal, pal, pal_size); in imx_decode_frame()
72 memcpy(frame->data[1], imx->pal, AVPALETTE_SIZE); in imx_decode_frame()
171 memset(imx->pal, 0, sizeof(imx->pal)); in imx_decode_flush()
Dmsrle.c46 uint32_t pal[256]; member
78 s->pal[i] = 0xFFU<<24 | AV_RL32(avctx->extradata+4*i); in msrle_decode_init()
101 const uint8_t *pal = av_packet_get_side_data(avpkt, AV_PKT_DATA_PALETTE, &size); in msrle_decode_frame() local
103 if (pal && size == AVPALETTE_SIZE) { in msrle_decode_frame()
105 memcpy(s->pal, pal, AVPALETTE_SIZE); in msrle_decode_frame()
106 } else if (pal) { in msrle_decode_frame()
110 memcpy(s->frame->data[1], s->pal, AVPALETTE_SIZE); in msrle_decode_frame()
Dpcxenc.c105 const uint32_t *pal = NULL; in pcx_encode_frame() local
127 pal = palette256; in pcx_encode_frame()
132 pal = (uint32_t *)frame->data[1]; in pcx_encode_frame()
137 pal = monoblack_pal; in pcx_encode_frame()
147 max_pkt_size = 128 + avctx->height * 2 * line_bytes * nplanes + (pal ? 256*3 + 1 : 0); in pcx_encode_frame()
169 bytestream_put_be24(&buf, pal ? pal[i] : 0);// palette (<= 16 color only) in pcx_encode_frame()
196 bytestream_put_be24(&buf, pal[i]); in pcx_encode_frame()
Dbmpenc.c71 const uint32_t *pal = NULL; in bmp_encode_frame() local
86 pal = rgb444_masks; // abuse pal to hold color masks in bmp_encode_frame()
91 pal = rgb565_masks; // abuse pal to hold color masks in bmp_encode_frame()
101 pal = palette256; in bmp_encode_frame()
104 pal = (uint32_t *)p->data[1]; in bmp_encode_frame()
107 pal = monoblack_pal; in bmp_encode_frame()
110 if (pal && !pal_entries) pal_entries = 1 << bit_count; in bmp_encode_frame()
142 bytestream_put_le32(&buf, pal[i] & 0xFFFFFF); in bmp_encode_frame()
D8bps.c52 uint32_t pal[256]; member
126 const uint8_t *pal = av_packet_get_side_data(avpkt, in decode_frame() local
129 if (pal && size == AVPALETTE_SIZE) { in decode_frame()
131 memcpy(c->pal, pal, AVPALETTE_SIZE); in decode_frame()
132 } else if (pal) { in decode_frame()
136 memcpy (frame->data[1], c->pal, AVPALETTE_SIZE); in decode_frame()
Dtscc.c61 uint32_t pal[256]; member
76 const uint8_t *pal = av_packet_get_side_data(avpkt, AV_PKT_DATA_PALETTE, &size); in decode_frame() local
78 if (pal && size == AVPALETTE_SIZE) { in decode_frame()
80 memcpy(c->pal, pal, AVPALETTE_SIZE); in decode_frame()
81 } else if (pal) { in decode_frame()
118 memcpy(frame->data[1], c->pal, AVPALETTE_SIZE); in decode_frame()
Didcinvideo.c75 uint32_t pal[256]; member
218 const uint8_t *pal = av_packet_get_side_data(avpkt, AV_PKT_DATA_PALETTE, &pal_size); in idcin_decode_frame() local
231 if (pal && pal_size == AVPALETTE_SIZE) { in idcin_decode_frame()
233 memcpy(s->pal, pal, AVPALETTE_SIZE); in idcin_decode_frame()
234 } else if (pal) { in idcin_decode_frame()
238 memcpy(frame->data[1], s->pal, AVPALETTE_SIZE); in idcin_decode_frame()
Dmsvideo1.c56 uint32_t pal[256]; member
73 memcpy(s->pal, avctx->extradata, AVPALETTE_SIZE); in msvideo1_decode_init()
183 memcpy(s->frame->data[1], s->pal, AVPALETTE_SIZE); in msvideo1_decode_8bit()
318 const uint8_t *pal = av_packet_get_side_data(avpkt, AV_PKT_DATA_PALETTE, &size); in msvideo1_decode_frame() local
320 if (pal && size == AVPALETTE_SIZE) { in msvideo1_decode_frame()
321 memcpy(s->pal, pal, AVPALETTE_SIZE); in msvideo1_decode_frame()
323 } else if (pal) { in msvideo1_decode_frame()
Dmscc.c41 uint32_t pal[256]; member
156 const uint8_t *pal = av_packet_get_side_data(avpkt, AV_PKT_DATA_PALETTE, &size); in decode_frame() local
158 if (pal && size == AVPALETTE_SIZE) { in decode_frame()
161 s->pal[j] = 0xFF000000 | AV_RL32(pal + j * 4); in decode_frame()
162 } else if (pal) { in decode_frame()
165 memcpy(frame->data[1], s->pal, AVPALETTE_SIZE); in decode_frame()
Dsga.c53 uint32_t pal[256]; member
67 static int decode_palette(GetByteContext *gb, uint32_t *pal) in decode_palette() argument
74 memset(pal, 0, 16 * sizeof(*pal)); in decode_palette()
80 pal[15 - index] |= color << (5 + 16); in decode_palette()
87 pal[15 - index] |= color << (5 + 8); in decode_palette()
94 pal[15 - index] |= color << (5 + 0); in decode_palette()
99 pal[index] = (0xFFU << 24) | pal[index] | (pal[index] >> 3); in decode_palette()
464 ret = decode_palette(gb, s->pal + 16 * n); in sga_decode_frame()
500 memcpy(frame->data[1], s->pal, AVPALETTE_SIZE); in sga_decode_frame()
Dqpeg.c34 uint32_t pal[256]; member
278 const uint8_t *pal = av_packet_get_side_data(avpkt, AV_PKT_DATA_PALETTE, &pal_size); in decode_frame() local
303 if (pal && pal_size == AVPALETTE_SIZE) { in decode_frame()
305 memcpy(a->pal, pal, AVPALETTE_SIZE); in decode_frame()
306 } else if (pal) { in decode_frame()
309 memcpy(p->data[1], a->pal, AVPALETTE_SIZE); in decode_frame()
334 a->pal[i] = 0xFFU<<24 | AV_RL32(pal_src+4*i); in decode_flush()
Dkmvc.c48 uint32_t pal[MAX_PALSIZE]; member
272 const uint8_t *pal = av_packet_get_side_data(avpkt, AV_PKT_DATA_PALETTE, &pal_size); in decode_frame() local
285 ctx->pal[i + (header & 0x81)] = 0xFFU << 24 | bytestream2_get_be24(&ctx->g); in decode_frame()
303 ctx->pal[i] = 0xFFU << 24 | bytestream2_get_be24(&ctx->g); in decode_frame()
307 if (pal && pal_size == AVPALETTE_SIZE) { in decode_frame()
309 memcpy(ctx->pal, pal, AVPALETTE_SIZE); in decode_frame()
310 } else if (pal) { in decode_frame()
320 memcpy(frame->data[1], ctx->pal, 1024); in decode_frame()
389 c->pal[i] = 0xFFU << 24 | i * 0x10101; in decode_init()
408 c->pal[i] = AV_RL32(src); in decode_init()
Dtarga.c117 int idlen, pal, compr, y, w, h, bpp, flags, ret; in decode_frame() local
125 pal = bytestream2_get_byte(&s->gb); in decode_frame()
137 if (!pal && (first_clr || colors || csize)) { in decode_frame()
211 uint32_t *pal = ((uint32_t *)p->data[1]) + first_clr; in decode_frame() local
221 *pal++ = bytestream2_get_le32u(&s->gb); in decode_frame()
226 *pal++ = (0xffU<<24) | bytestream2_get_le24u(&s->gb); in decode_frame()
237 *pal++ = (0xffU<<24) | v; in decode_frame()
Dxwdenc.c44 uint32_t pal[256]; in xwd_encode_frame() local
185 memcpy(pal, p->data[1], sizeof(pal)); in xwd_encode_frame()
187 avpriv_set_systematic_pal2(pal, pix_fmt); in xwd_encode_frame()
194 val = pal[i]; in xwd_encode_frame()
Dsmc.c58 uint32_t pal[256]; member
115 memcpy(s->frame->data[1], s->pal, AVPALETTE_SIZE); in smc_decode_stream()
439 const uint8_t *pal = av_packet_get_side_data(avpkt, AV_PKT_DATA_PALETTE, &pal_size); in smc_decode_frame() local
451 if (pal && pal_size == AVPALETTE_SIZE) { in smc_decode_frame()
453 memcpy(s->pal, pal, AVPALETTE_SIZE); in smc_decode_frame()
454 } else if (pal) { in smc_decode_frame()
Dzmbvenc.c68 uint8_t pal[768]; member
199 c->work_buf[work_size++] = tpal[0] ^ c->pal[i * 3 + 0]; in encode_frame()
200 c->work_buf[work_size++] = tpal[1] ^ c->pal[i * 3 + 1]; in encode_frame()
201 c->work_buf[work_size++] = tpal[2] ^ c->pal[i * 3 + 2]; in encode_frame()
202 c->pal[i * 3 + 0] = tpal[0]; in encode_frame()
203 c->pal[i * 3 + 1] = tpal[1]; in encode_frame()
204 c->pal[i * 3 + 2] = tpal[2]; in encode_frame()
211 AV_WB24(c->pal+(i*3), palptr[i]); in encode_frame()
213 memcpy(c->work_buf, c->pal, 768); in encode_frame()
Davs.c78 uint32_t *pal = (uint32_t *) p->data[1]; in avs_decode_frame() local
86 pal[i] = (buf[0] << 18) | (buf[1] << 10) | (buf[2] << 2); in avs_decode_frame()
87 pal[i] |= 0xFFU << 24 | (pal[i] >> 6) & 0x30303; in avs_decode_frame()
/third_party/ffmpeg/libavformat/
Dsmacker.c61 uint8_t pal[768]; member
250 uint8_t *pal = smk->pal; in smacker_read_packet() local
253 memcpy(oldpal, pal, 768); in smacker_read_packet()
267 pal += ((t & 0x7F) + 1) * 3; in smacker_read_packet()
280 *pal++ = oldpal[off + 0]; in smacker_read_packet()
281 *pal++ = oldpal[off + 1]; in smacker_read_packet()
282 *pal++ = oldpal[off + 2]; in smacker_read_packet()
287 *pal++ = smk_pal[t]; in smacker_read_packet()
288 *pal++ = smk_pal[avio_r8(s->pb) & 0x3F]; in smacker_read_packet()
289 *pal++ = smk_pal[avio_r8(s->pb) & 0x3F]; in smacker_read_packet()
[all …]
Dgdv.c34 unsigned pal[256]; member
146 gdv->pal[i] = 0xFFU << 24 | r << 18 | g << 10 | b << 2; in gdv_read_header()
171 uint8_t *pal; in gdv_read_packet() local
182 pal = av_packet_new_side_data(pkt, AV_PKT_DATA_PALETTE, in gdv_read_packet()
184 if (!pal) { in gdv_read_packet()
187 memcpy(pal, gdv->pal, AVPALETTE_SIZE); in gdv_read_packet()
Dimx.c32 uint8_t pal[AVPALETTE_SIZE]; member
123 AV_WL32(imx->pal + i * 4, (0xFFU << 24) | r | g | b); in simbiosis_imx_read_packet()
140 uint8_t *pal = av_packet_new_side_data(pkt, AV_PKT_DATA_PALETTE, in simbiosis_imx_read_packet() local
142 if (!pal) in simbiosis_imx_read_packet()
144 memcpy(pal, imx->pal, AVPALETTE_SIZE); in simbiosis_imx_read_packet()
Ddxa.c157 uint8_t buf[DXA_EXTRA_SIZE], pal[768+4]; in dxa_read_packet() local
185 if(pal_size) memcpy(pkt->data, pal, pal_size); in dxa_read_packet()
193 memcpy(pal, buf, 4); in dxa_read_packet()
194 avio_read(s->pb, pal + 4, 768); in dxa_read_packet()
215 if(pal_size) memcpy(pkt->data, pal, pal_size); in dxa_read_packet()
/third_party/ffmpeg/libswscale/
Dhscale.c35 uint32_t *pal; member
90 uint32_t * pal = instance->pal; in lum_convert() local
108 c->lumToYV12(dst, src[0], src[1], src[2], srcW, pal); in lum_convert()
117 c->alpToYV12(dst, src[3], src[1], src[2], srcW, pal); in lum_convert()
127 …t ff_init_desc_fmt_convert(SwsFilterDescriptor *desc, SwsSlice * src, SwsSlice *dst, uint32_t *pal) in ff_init_desc_fmt_convert() argument
132 li->pal = pal; in ff_init_desc_fmt_convert()
206 uint32_t * pal = instance->pal; in chr_convert() local
227 c->chrToYV12(dst1, dst2, src[0], src[1], src[2], srcW, pal); in chr_convert()
235 … ff_init_desc_cfmt_convert(SwsFilterDescriptor *desc, SwsSlice * src, SwsSlice *dst, uint32_t *pal) in ff_init_desc_cfmt_convert() argument
240 li->pal = pal; in ff_init_desc_cfmt_convert()
/third_party/flutter/skia/third_party/externals/sdl/src/video/
DSDL_pixels.c772 SDL_FindColor(SDL_Palette * pal, Uint8 r, Uint8 g, Uint8 b, Uint8 a) in SDL_FindColor() argument
782 for (i = 0; i < pal->ncolors; ++i) { in SDL_FindColor()
783 rd = pal->colors[i].r - r; in SDL_FindColor()
784 gd = pal->colors[i].g - g; in SDL_FindColor()
785 bd = pal->colors[i].b - b; in SDL_FindColor()
786 ad = pal->colors[i].a - a; in SDL_FindColor()
918 SDL_Palette *pal = src->palette; in Map1toN() local
921 map = (Uint8 *) SDL_malloc(pal->ncolors * bpp); in Map1toN()
928 for (i = 0; i < pal->ncolors; ++i) { in Map1toN()
929 Uint8 R = (Uint8) ((pal->colors[i].r * Rmod) / 255); in Map1toN()
[all …]
/third_party/ffmpeg/tests/ref/fate/
Dopt236 Setting options string 'size=pal'
237 Setting entry with key 'size' to value 'pal'
238 OK 'size=pal'
263 Setting options string 'video_rate=pal'
264 Setting entry with key 'video_rate' to value 'pal'
265 OK 'video_rate=pal'
392 Setting options string '5:hello:size=pal'
395 Setting 'size' to value 'pal'
396 OK '5:hello:size=pal'
397 Setting options string '5:size=pal:hello'
[all …]

12345678910>>...16