Lines Matching refs:ico
60 av_log(s, AV_LOG_ERROR, "PNG in ico requires pixel format to be rgba\n");
79 IcoMuxContext *ico = s->priv_data;
89 ico->current_image = 0;
90 ico->nb_images = s->nb_streams;
104 ico->images = av_mallocz_array(ico->nb_images, sizeof(IcoMuxContext));
105 if (!ico->images)
115 IcoMuxContext *ico = s->priv_data;
121 if (ico->current_image >= ico->nb_images) {
122 av_log(s, AV_LOG_ERROR, "ICO already contains %d images\n", ico->current_image);
126 image = &ico->images[ico->current_image++];
159 IcoMuxContext *ico = s->priv_data;
165 avio_wl16(pb, ico->current_image);
167 for (i = 0; i < ico->nb_images; i++) {
168 avio_w8(pb, ico->images[i].width);
169 avio_w8(pb, ico->images[i].height);
173 avio_w8(pb, (ico->images[i].bits >= 8) ? 0 : 1 << ico->images[i].bits);
180 avio_wl16(pb, ico->images[i].bits);
181 avio_wl32(pb, ico->images[i].size);
182 avio_wl32(pb, ico->images[i].offset);
185 av_freep(&ico->images);
191 .name = "ico",
195 .extensions = "ico",