Lines Matching defs:pkt
115 static int ico_write_packet(AVFormatContext *s, AVPacket *pkt)
120 AVCodecParameters *par = s->streams[pkt->stream_index]->codecpar;
135 image->size = pkt->size;
137 avio_write(pb, pkt->data, pkt->size);
139 if (AV_RL32(pkt->data + 14) != 40) { // must be BITMAPINFOHEADER
144 image->bits = AV_RL16(pkt->data + 28); // allows things like 1bit and 4bit images to be preserved
145 image->size = pkt->size - 14 + par->height * (par->width + 7) / 8;
147 avio_write(pb, pkt->data + 14, 8); // Skip the BITMAPFILEHEADER header
148 avio_wl32(pb, AV_RL32(pkt->data + 22) * 2); // rewrite height as 2 * height
149 avio_write(pb, pkt->data + 26, pkt->size - 26);