Lines Matching refs:ico
54 IcoDemuxContext *ico = s->priv_data;
59 ico->nb_images = avio_rl16(pb);
61 ico->images = av_malloc_array(ico->nb_images, sizeof(IcoImage));
62 if (!ico->images)
65 for (i = 0; i < ico->nb_images; i++) {
79 ico->images[i].nb_pal = avio_r8(pb);
80 if (ico->images[i].nb_pal == 255)
81 ico->images[i].nb_pal = 0;
85 ico->images[i].size = avio_rl32(pb);
86 ico->images[i].offset = avio_rl32(pb);
88 if (avio_seek(pb, ico->images[i].offset, SEEK_SET) < 0)
99 if (ico->images[i].size < 40)
120 IcoDemuxContext *ico = s->priv_data;
126 if (ico->current_image >= ico->nb_images)
129 image = &ico->images[ico->current_image];
134 if (s->streams[ico->current_image]->codec->codec_id == AV_CODEC_ID_PNG) {
168 pkt->stream_index = ico->current_image++;
175 .name = "ico",