Home
last modified time | relevance | path

Searched refs:FONT_WIDTH (Results 1 – 2 of 2) sorted by relevance

/third_party/ffmpeg/libavcodec/
Dansi.c47 #define FONT_WIDTH 8 /**< Font width */ macro
94 } else if (avctx->width % FONT_WIDTH || avctx->height % s->font_height) { in decode_init()
178 s->x += FONT_WIDTH; in draw_char()
179 if (s->x > avctx->width - FONT_WIDTH) { in draw_char()
204 …s->x = FFMIN(s->x + (s->nb_args > 0 ? s->args[0]*FONT_WIDTH : FONT_WIDTH), avctx->width - FONT_WI… in execute_code()
207 s->x = FFMAX(s->x - (s->nb_args > 0 ? s->args[0]*FONT_WIDTH : FONT_WIDTH), 0); in execute_code()
212 …s->x = s->nb_args > 1 ? av_clip((s->args[1] - 1)*FONT_WIDTH, 0, avctx->width - FONT_WIDTH) : … in execute_code()
254 s->x = av_clip(s->x, 0, width - FONT_WIDTH); in execute_code()
344 s->x = av_clip(s->sx, 0, avctx->width - FONT_WIDTH); in execute_code()
351 s->x = av_clip(s->x, 0, avctx->width - FONT_WIDTH); in execute_code()
[all …]
Dbintext.c38 #define FONT_WIDTH 8 macro
100 if (avctx->width < FONT_WIDTH || avctx->height < s->font_height) { in decode_init()
133 s->x += FONT_WIDTH; in draw_char()
134 if (s->x > avctx->width - FONT_WIDTH) { in draw_char()
150 if ((avctx->width / FONT_WIDTH) * (avctx->height / s->font_height) / 256 > buf_size) in decode_frame()