aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-09-15 23:02:07 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-09-20 04:38:12 +0200
commit8bfd466c9e5285ff214162c6798b202bdbf77ba6 (patch)
treef37f5e71800d51af3306d94e7ce36d0057d647c5 /libavfilter
parent05ccfcb7b0ea326a112b1f769588c07bf0e467be (diff)
downloadffmpeg-8bfd466c9e5285ff214162c6798b202bdbf77ba6.tar.gz
avfilter/vf_elbg: Rename ELBGContext->ELBGFilterContext
The former name will be used for a context for avpriv_do_elbg(). Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavfilter')
-rw-r--r--libavfilter/vf_elbg.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/libavfilter/vf_elbg.c b/libavfilter/vf_elbg.c
index bf78030ffe..79797ee25f 100644
--- a/libavfilter/vf_elbg.c
+++ b/libavfilter/vf_elbg.c
@@ -33,7 +33,7 @@
#include "internal.h"
#include "video.h"
-typedef struct ELBGContext {
+typedef struct ELBGFilterContext {
const AVClass *class;
AVLFG lfg;
int64_t lfg_seed;
@@ -46,9 +46,9 @@ typedef struct ELBGContext {
const AVPixFmtDescriptor *pix_desc;
uint8_t rgba_map[4];
int pal8;
-} ELBGContext;
+} ELBGFilterContext;
-#define OFFSET(x) offsetof(ELBGContext, x)
+#define OFFSET(x) offsetof(ELBGFilterContext, x)
#define FLAGS AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_FILTERING_PARAM
static const AVOption elbg_options[] = {
@@ -66,7 +66,7 @@ AVFILTER_DEFINE_CLASS(elbg);
static av_cold int init(AVFilterContext *ctx)
{
- ELBGContext *elbg = ctx->priv;
+ ELBGFilterContext *const elbg = ctx->priv;
if (elbg->pal8 && elbg->codebook_length > 256) {
av_log(ctx, AV_LOG_ERROR, "pal8 output allows max 256 codebook length.\n");
@@ -82,7 +82,7 @@ static av_cold int init(AVFilterContext *ctx)
static int query_formats(AVFilterContext *ctx)
{
- ELBGContext *elbg = ctx->priv;
+ ELBGFilterContext *const elbg = ctx->priv;
int ret;
static const enum AVPixelFormat pix_fmts[] = {
@@ -109,7 +109,7 @@ static int query_formats(AVFilterContext *ctx)
static int config_input(AVFilterLink *inlink)
{
AVFilterContext *ctx = inlink->dst;
- ELBGContext *elbg = ctx->priv;
+ ELBGFilterContext *const elbg = ctx->priv;
elbg->pix_desc = av_pix_fmt_desc_get(inlink->format);
elbg->codeword_length = inlink->w * inlink->h;
@@ -140,7 +140,7 @@ static int config_input(AVFilterLink *inlink)
static int filter_frame(AVFilterLink *inlink, AVFrame *frame)
{
- ELBGContext *elbg = inlink->dst->priv;
+ ELBGFilterContext *const elbg = inlink->dst->priv;
int i, j, k;
uint8_t *p, *p0;
@@ -221,7 +221,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame)
static av_cold void uninit(AVFilterContext *ctx)
{
- ELBGContext *elbg = ctx->priv;
+ ELBGFilterContext *const elbg = ctx->priv;
av_freep(&elbg->codebook);
av_freep(&elbg->codeword);
@@ -248,7 +248,7 @@ static const AVFilterPad elbg_outputs[] = {
const AVFilter ff_vf_elbg = {
.name = "elbg",
.description = NULL_IF_CONFIG_SMALL("Apply posterize effect, using the ELBG algorithm."),
- .priv_size = sizeof(ELBGContext),
+ .priv_size = sizeof(ELBGFilterContext),
.priv_class = &elbg_class,
.query_formats = query_formats,
.init = init,