Browse code

avfilter/vf_xbr: Uppercase first letter of context type for consistency

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>

Michael Niedermayer authored on 2014/11/10 11:44:23
Showing 1 changed files
... ...
@@ -44,9 +44,9 @@ typedef struct {
44 44
     const AVClass *class;
45 45
     int n;
46 46
     uint32_t rgbtoyuv[1<<24];
47
-} xBRContext;
47
+} XBRContext;
48 48
 
49
-#define OFFSET(x) offsetof(xBRContext, x)
49
+#define OFFSET(x) offsetof(XBRContext, x)
50 50
 static const AVOption xbr_options[] = {
51 51
     { "n", "set scale factor", OFFSET(n), AV_OPT_TYPE_INT, {.i64 = 3}, 2, 4, },
52 52
     { NULL }
... ...
@@ -658,7 +658,7 @@ static void xbr4x(AVFrame * input, AVFrame * output, const uint32_t * r2y)
658 658
 static int config_output(AVFilterLink *outlink)
659 659
 {
660 660
     AVFilterContext *ctx = outlink->src;
661
-    xBRContext *xbr = ctx->priv;
661
+    XBRContext *xbr = ctx->priv;
662 662
     AVFilterLink *inlink = ctx->inputs[0];
663 663
 
664 664
     outlink->w = inlink->w * xbr->n;
... ...
@@ -680,7 +680,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
680 680
 {
681 681
     AVFilterContext *ctx = inlink->dst;
682 682
     AVFilterLink *outlink = ctx->outputs[0];
683
-    xBRContext *xbr = ctx->priv;
683
+    XBRContext *xbr = ctx->priv;
684 684
     const uint32_t *r2y = xbr->rgbtoyuv;
685 685
 
686 686
     AVFrame *out = ff_get_video_buffer(outlink, outlink->w, outlink->h);
... ...
@@ -706,7 +706,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
706 706
 
707 707
 static int init(AVFilterContext *ctx)
708 708
 {
709
-    xBRContext *xbr = ctx->priv;
709
+    XBRContext *xbr = ctx->priv;
710 710
     uint32_t c;
711 711
     int bg, rg, g;
712 712
 
... ...
@@ -752,7 +752,7 @@ AVFilter ff_vf_xbr = {
752 752
     .inputs        = xbr_inputs,
753 753
     .outputs       = xbr_outputs,
754 754
     .query_formats = query_formats,
755
-    .priv_size     = sizeof(xBRContext),
755
+    .priv_size     = sizeof(XBRContext),
756 756
     .priv_class    = &xbr_class,
757 757
     .init          = init,
758 758
 };