Lines Matching defs:width
48 #define FONT_WIDTH 8 /**< Font width */
91 if (!avctx->width || !avctx->height) {
95 } else if (avctx->width % FONT_WIDTH || avctx->height % s->font_height) {
96 av_log(avctx, AV_LOG_ERROR, "Invalid dimensions %d %d\n", avctx->width, avctx->height);
136 avctx->width);
139 DEFAULT_BG_COLOR, avctx->width);
156 memset(s->frame->data[0] + i * s->frame->linesize[0], DEFAULT_BG_COLOR, avctx->width);
180 if (s->x > avctx->width - FONT_WIDTH) {
194 int width = avctx->width;
205 s->x = FFMIN(s->x + (s->nb_args > 0 ? s->args[0]*FONT_WIDTH : FONT_WIDTH), avctx->width - FONT_WIDTH);
213 s->x = s->nb_args > 1 ? av_clip((s->args[1] - 1)*FONT_WIDTH, 0, avctx->width - FONT_WIDTH) : 0;
223 width = 40<<3;
229 width = 80<<3;
235 width = 80<<3;
243 width = 80<<3;
249 width = 80<<3;
255 s->x = av_clip(s->x, 0, width - FONT_WIDTH);
257 if (width != avctx->width || height != avctx->height) {
259 ret = ff_set_dimensions(avctx, width, height);
276 erase_line(avctx, s->x, avctx->width - s->x);
293 erase_line(avctx, s->x, avctx->width - s->x);
299 erase_line(avctx, 0, avctx->width);
345 s->x = av_clip(s->sx, 0, avctx->width - FONT_WIDTH);
352 s->x = av_clip(s->x, 0, avctx->width - FONT_WIDTH);
370 memset(s->frame->data[0]+ i*s->frame->linesize[0], 0, avctx->width);