mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
avfilter/vf_xbr: Uppercase first letter of context type for consistency
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
19d0949d31
commit
064a237669
@ -44,9 +44,9 @@ typedef struct {
|
||||
const AVClass *class;
|
||||
int n;
|
||||
uint32_t rgbtoyuv[1<<24];
|
||||
} xBRContext;
|
||||
} XBRContext;
|
||||
|
||||
#define OFFSET(x) offsetof(xBRContext, x)
|
||||
#define OFFSET(x) offsetof(XBRContext, x)
|
||||
static const AVOption xbr_options[] = {
|
||||
{ "n", "set scale factor", OFFSET(n), AV_OPT_TYPE_INT, {.i64 = 3}, 2, 4, },
|
||||
{ NULL }
|
||||
@ -658,7 +658,7 @@ static void xbr4x(AVFrame * input, AVFrame * output, const uint32_t * r2y)
|
||||
static int config_output(AVFilterLink *outlink)
|
||||
{
|
||||
AVFilterContext *ctx = outlink->src;
|
||||
xBRContext *xbr = ctx->priv;
|
||||
XBRContext *xbr = ctx->priv;
|
||||
AVFilterLink *inlink = ctx->inputs[0];
|
||||
|
||||
outlink->w = inlink->w * xbr->n;
|
||||
@ -680,7 +680,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
|
||||
{
|
||||
AVFilterContext *ctx = inlink->dst;
|
||||
AVFilterLink *outlink = ctx->outputs[0];
|
||||
xBRContext *xbr = ctx->priv;
|
||||
XBRContext *xbr = ctx->priv;
|
||||
const uint32_t *r2y = xbr->rgbtoyuv;
|
||||
|
||||
AVFrame *out = ff_get_video_buffer(outlink, outlink->w, outlink->h);
|
||||
@ -706,7 +706,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
|
||||
|
||||
static int init(AVFilterContext *ctx)
|
||||
{
|
||||
xBRContext *xbr = ctx->priv;
|
||||
XBRContext *xbr = ctx->priv;
|
||||
uint32_t c;
|
||||
int bg, rg, g;
|
||||
|
||||
@ -752,7 +752,7 @@ AVFilter ff_vf_xbr = {
|
||||
.inputs = xbr_inputs,
|
||||
.outputs = xbr_outputs,
|
||||
.query_formats = query_formats,
|
||||
.priv_size = sizeof(xBRContext),
|
||||
.priv_size = sizeof(XBRContext),
|
||||
.priv_class = &xbr_class,
|
||||
.init = init,
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user