Home
last modified time | relevance | path

Searched refs:nb_pal (Results 1 - 2 of 2) sorted by relevance

/third_party/ffmpeg/libavformat/
H A Dicodec.c36 int nb_pal; member
107 ico->images[i].nb_pal = avio_r8(pb); in read_header()
108 if (ico->images[i].nb_pal == 255) in read_header()
109 ico->images[i].nb_pal = 0; in read_header()
192 image->nb_pal = AV_RL32(buf + 32); in read_packet()
194 if (st->codecpar->bits_per_coded_sample <= 8 && !image->nb_pal) { in read_packet()
195 image->nb_pal = 1 << st->codecpar->bits_per_coded_sample; in read_packet()
196 AV_WL32(buf + 32, image->nb_pal); in read_packet()
199 if (image->nb_pal > INT_MAX / 4 - 14 - 40) in read_packet()
202 AV_WL32(buf - 4, 14 + 40 + image->nb_pal * in read_packet()
[all...]
/third_party/ffmpeg/libavcodec/
H A Dsga.c46 int nb_pal; member
254 const int bits = (s->nb_pal + 1) / 2; in decode_palmapdata()
320 s->nb_pal = avpkt->data[9]; in sga_decode_frame()
324 if (s->nb_pal > 4) in sga_decode_frame()
453 s->paldata_size = s->nb_pal * 18; in sga_decode_frame()
457 s->palmapdata_size = (s->flags & HAVE_TILEMAP) || s->nb_pal < 2 ? 0 : (s->tiles_w * s->tiles_h * ((s->nb_pal + 1) / 2) + 7) / 8; in sga_decode_frame()
462 for (int n = 0; n < s->nb_pal; n++) { in sga_decode_frame()

Completed in 2 milliseconds