diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2023-09-02 14:57:41 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2023-09-07 00:39:02 +0200 |
commit | 8238bc0b5e3dba271217b1223a901b3f9713dc6e (patch) | |
tree | 2809c5b9d9b26042d584c92afeb76b059484c00f /libavcodec/libaribcaption.c | |
parent | 0c6e5f321bf5c4054e8b98232692465b342b42b4 (diff) |
avcodec/defs: Add AV_PROFILE_* defines, deprecate FF_PROFILE_* defines
These defines are also used in other contexts than just AVCodecContext
ones, e.g. in libavformat. Furthermore, given that these defines are
public, the AV-prefix is the right one, so deprecate (and not just move)
the FF-macros.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/libaribcaption.c')
-rw-r--r-- | libavcodec/libaribcaption.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libavcodec/libaribcaption.c b/libavcodec/libaribcaption.c index 747ca8a2e4..8a8c8f8cfd 100644 --- a/libavcodec/libaribcaption.c +++ b/libavcodec/libaribcaption.c @@ -452,7 +452,7 @@ static int aribcaption_trans_bitmap_subtitle(ARIBCaptionContext *ctx) goto fail; } - if (ctx->avctx->profile == FF_PROFILE_ARIB_PROFILE_C) { + if (ctx->avctx->profile == AV_PROFILE_ARIB_PROFILE_C) { /* ARIB TR-B14 version 3.8 Fascicle 1-(2/2) Volume 3 [Section 4] */ /* No position information is provided for profile C */ rect->x = (ctx->frame_width - rect->w) / 2; @@ -594,7 +594,7 @@ static int aribcaption_trans_ass_subtitle(ARIBCaptionContext *ctx) /* ARIB TR-B14 version 3.8 Fascicle 1-(2/2) Volume 3 [Section 4] */ /* No position information is provided for profile C */ - if (ctx->avctx->profile == FF_PROFILE_ARIB_PROFILE_C) + if (ctx->avctx->profile == AV_PROFILE_ARIB_PROFILE_C) single_rect = true; sub->format = 1; /* text */ @@ -606,7 +606,7 @@ static int aribcaption_trans_ass_subtitle(ARIBCaptionContext *ctx) av_bprint_init(&buf, ARIBC_BPRINT_SIZE_INIT, ARIBC_BPRINT_SIZE_MAX); - if (single_rect && ctx->avctx->profile != FF_PROFILE_ARIB_PROFILE_C) { + if (single_rect && ctx->avctx->profile != AV_PROFILE_ARIB_PROFILE_C) { int x, y, rx, ry; x = ctx->plane_width; y = ctx->plane_height; @@ -660,7 +660,7 @@ static int aribcaption_trans_ass_subtitle(ARIBCaptionContext *ctx) for (int j = 0; j < region->char_count; j++) { aribcc_caption_char_t *ch = ®ion->chars[j]; - if (ctx->avctx->profile != FF_PROFILE_ARIB_PROFILE_C) { + if (ctx->avctx->profile != AV_PROFILE_ARIB_PROFILE_C) { if (ch->char_horizontal_spacing != char_horizontal_spacing) { av_bprintf(&buf, "{\\fsp%d}", (region->is_ruby) ? ch->char_horizontal_spacing / 2 : @@ -960,14 +960,14 @@ static int aribcaption_init(AVCodecContext *avctx) ctx->avctx = avctx; switch (avctx->profile) { - case FF_PROFILE_ARIB_PROFILE_A: + case AV_PROFILE_ARIB_PROFILE_A: profile = ARIBCC_PROFILE_A; /* assume 960x540 at initial state */ ctx->plane_width = 960; ctx->plane_height = 540; ctx->font_size = 36; break; - case FF_PROFILE_ARIB_PROFILE_C: + case AV_PROFILE_ARIB_PROFILE_C: profile = ARIBCC_PROFILE_C; ctx->plane_width = 320; ctx->plane_height = 180; |