Lines Matching refs:chop_top
63 int chop_top;
167 static int gen_sub_text(TeletextContext *ctx, AVSubtitleRect *sub_rect, vbi_page *page, int chop_top)
179 0, chop_top,
180 page->columns, page->rows-chop_top);
295 static int gen_sub_ass(TeletextContext *ctx, AVSubtitleRect *sub_rect, vbi_page *page, int chop_top)
312 for (i = chop_top; i < page->rows; i++) {
344 for (i = chop_top; i < page->rows; i++) {
413 int chop_top, int resx, int resy)
420 vbi_char *vc = page->text + (iy / BITMAP_CHAR_HEIGHT + chop_top) * page->columns;
451 static int gen_sub_bitmap(TeletextContext *ctx, AVSubtitleRect *sub_rect, vbi_page *page, int chop_top)
454 int resy = (page->rows - chop_top) * BITMAP_CHAR_HEIGHT;
456 vbi_char *vc = page->text + (chop_top * page->columns);
477 0, chop_top, page->columns, page->rows - chop_top,
480 fix_transparency(ctx, sub_rect, page, chop_top, resx, resy);
482 sub_rect->y = ctx->y_offset + chop_top * BITMAP_CHAR_HEIGHT;
515 int chop_top;
535 chop_top = ctx->chop_top || ((page.rows > 1) && is_subtitle_page);
538 page.columns, page.rows, chop_top);
551 res = gen_sub_bitmap(ctx, cur_page->sub_rect, &page, chop_top);
554 res = gen_sub_text(ctx, cur_page->sub_rect, &page, chop_top);
557 res = gen_sub_ass(ctx, cur_page->sub_rect, &page, chop_top);
793 {"txt_chop_top", "discards the top teletext line", OFFSET(chop_top), AV_OPT_TYPE_INT, {.i64 = 1}, 0, 1, SD},