Lines Matching refs:codecpar
59 st->codecpar->codec_tag = 0;
60 st->codecpar->codec_type = AVMEDIA_TYPE_VIDEO;
63 st->codecpar->width = (80<<3);
64 st->codecpar->height = (25<<4);
178 st->codecpar->codec_id = AV_CODEC_ID_BINTEXT;
180 if ((ret = ff_alloc_extradata(st->codecpar, 2)) < 0)
182 st->codecpar->extradata[0] = 16;
183 st->codecpar->extradata[1] = 0;
191 predict_width(st->codecpar, bin->fsize, got_width);
192 if (st->codecpar->width < 8)
194 calculate_height(st->codecpar, bin->fsize);
225 st->codecpar->width = avio_rl16(pb)<<3;
226 st->codecpar->height = avio_rl16(pb);
228 st->codecpar->height *= fontheight;
231 st->codecpar->extradata_size = 2;
233 st->codecpar->extradata_size += 48;
235 st->codecpar->extradata_size += fontheight * (flags & 0x10 ? 512 : 256);
236 st->codecpar->codec_id = flags & 4 ? AV_CODEC_ID_XBIN : AV_CODEC_ID_BINTEXT;
238 ret = ff_alloc_extradata(st->codecpar, st->codecpar->extradata_size);
241 st->codecpar->extradata[0] = fontheight;
242 st->codecpar->extradata[1] = flags;
243 if (avio_read(pb, st->codecpar->extradata + 2, st->codecpar->extradata_size - 2) < 0)
247 bin->fsize = avio_size(pb) - 9 - st->codecpar->extradata_size;
249 avio_seek(pb, 9 + st->codecpar->extradata_size, SEEK_SET);
270 st->codecpar->codec_id = AV_CODEC_ID_BINTEXT;
272 if ((ret = ff_alloc_extradata(st->codecpar, 2 + 48 + 4096)) < 0)
274 st->codecpar->extradata[0] = 16;
275 st->codecpar->extradata[1] = BINTEXT_PALETTE|BINTEXT_FONT;
277 if (avio_read(pb, st->codecpar->extradata + 2, 24) < 0)
280 if (avio_read(pb, st->codecpar->extradata + 2 + 24, 24) < 0)
282 if (avio_read(pb, st->codecpar->extradata + 2 + 48, 4096) < 0)
288 st->codecpar->width = 80<<3;
290 if (st->codecpar->width < 8)
293 calculate_height(st->codecpar, bin->fsize);
327 st->codecpar->codec_id = AV_CODEC_ID_IDF;
329 if ((ret = ff_alloc_extradata(st->codecpar, 2 + 48 + 4096)) < 0)
331 st->codecpar->extradata[0] = 16;
332 st->codecpar->extradata[1] = BINTEXT_PALETTE|BINTEXT_FONT;
336 if (avio_read(pb, st->codecpar->extradata + 2 + 48, 4096) < 0)
338 if (avio_read(pb, st->codecpar->extradata + 2, 48) < 0)
343 if (st->codecpar->width < 8)
346 calculate_height(st->codecpar, bin->fsize);