Lines Matching refs:ap
80 * @param ap Parameters from avformat core
88 x11grab_read_header(AVFormatContext *s1, AVFormatParameters *ap)
107 av_log(s1, AV_LOG_INFO, "device: %s -> display: %s x: %d y: %d width: %d height: %d\n", s1->filename, param, x_off, y_off, ap->width, ap->height);
115 if (!ap || ap->width <= 0 || ap->height <= 0 || ap->time_base.den <= 0) {
137 ap->width, ap->height);
156 ap->width,ap->height,
220 x11grab->frame_size = ap->width * ap->height * image->bits_per_pixel/8;
222 x11grab->width = ap->width;
223 x11grab->height = ap->height;
224 x11grab->time_base = ap->time_base;
225 x11grab->time_frame = av_gettime() / av_q2d(ap->time_base);
234 st->codec->width = ap->width;
235 st->codec->height = ap->height;
237 st->codec->time_base = ap->time_base;
238 st->codec->bit_rate = x11grab->frame_size * 1/av_q2d(ap->time_base) * 8;