Home
last modified time | relevance | path

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

/third_party/ffmpeg/libavformat/
Dicodec.c37 int nb_pal; member
110 ico->images[i].nb_pal = avio_r8(pb); in read_header()
111 if (ico->images[i].nb_pal == 255) in read_header()
112 ico->images[i].nb_pal = 0; in read_header()
199 image->nb_pal = AV_RL32(buf + 32); in read_packet()
201 if (st->codecpar->bits_per_coded_sample <= 8 && !image->nb_pal) { in read_packet()
202 image->nb_pal = 1 << st->codecpar->bits_per_coded_sample; in read_packet()
203 AV_WL32(buf + 32, image->nb_pal); in read_packet()
206 AV_WL32(buf - 4, 14 + 40 + image->nb_pal * 4); in read_packet()
/third_party/ffmpeg/libavcodec/
Dsga.c46 int nb_pal; member
254 const int bits = (s->nb_pal + 1) / 2; in decode_palmapdata()
321 s->nb_pal = avpkt->data[9]; in sga_decode_frame()
325 if (s->nb_pal > 4) in sga_decode_frame()
454 s->paldata_size = s->nb_pal * 18; in sga_decode_frame()
458 …almapdata_size = (s->flags & HAVE_TILEMAP) || s->nb_pal < 2 ? 0 : (s->tiles_w * s->tiles_h * ((s-> in sga_decode_frame()
463 for (int n = 0; n < s->nb_pal; n++) { in sga_decode_frame()