diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-05-16 16:36:59 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-05-16 16:45:43 +0200 |
commit | df003cbb565575fe539b06105b76a95db72e8720 (patch) | |
tree | 996367e987cd9905305241c4e80d2a50ddb9147c /libavfilter/vf_hflip.c | |
parent | e55092b12b572e53b3970ca261e9205ae4cabcb0 (diff) | |
parent | 4753f802c00853859b7b4b8fdb79c35e082cb7f8 (diff) |
Merge commit '4753f802c00853859b7b4b8fdb79c35e082cb7f8'
* commit '4753f802c00853859b7b4b8fdb79c35e082cb7f8':
vf_libopencv: use the name 's' for the pointer to the private context
vf_hqdn3d: use the name 's' for the pointer to the private context
vf_hflip: use the name 's' for the pointer to the private context
vf_gradfun: use the name 's' for the pointer to the private context
Conflicts:
libavfilter/vf_gradfun.c
libavfilter/vf_hflip.c
libavfilter/vf_hqdn3d.c
Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter/vf_hflip.c')
-rw-r--r-- | libavfilter/vf_hflip.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/libavfilter/vf_hflip.c b/libavfilter/vf_hflip.c index 0ee65899a9..7fc135fdfc 100644 --- a/libavfilter/vf_hflip.c +++ b/libavfilter/vf_hflip.c @@ -60,12 +60,12 @@ static int query_formats(AVFilterContext *ctx) static int config_props(AVFilterLink *inlink) { - FlipContext *flip = inlink->dst->priv; + FlipContext *s = inlink->dst->priv; const AVPixFmtDescriptor *pix_desc = av_pix_fmt_desc_get(inlink->format); - av_image_fill_max_pixsteps(flip->max_step, NULL, pix_desc); - flip->hsub = pix_desc->log2_chroma_w; - flip->vsub = pix_desc->log2_chroma_h; + av_image_fill_max_pixsteps(s->max_step, NULL, pix_desc); + s->hsub = pix_desc->log2_chroma_w; + s->vsub = pix_desc->log2_chroma_h; return 0; } @@ -73,7 +73,7 @@ static int config_props(AVFilterLink *inlink) static int filter_frame(AVFilterLink *inlink, AVFrame *in) { AVFilterContext *ctx = inlink->dst; - FlipContext *flip = ctx->priv; + FlipContext *s = ctx->priv; AVFilterLink *outlink = ctx->outputs[0]; AVFrame *out; uint8_t *inrow, *outrow; @@ -91,9 +91,9 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in) memcpy(out->data[1], in->data[1], AVPALETTE_SIZE); for (plane = 0; plane < 4 && in->data[plane]; plane++) { - const int width = (plane == 1 || plane == 2) ? FF_CEIL_RSHIFT(inlink->w, flip->hsub) : inlink->w; - const int height = (plane == 1 || plane == 2) ? FF_CEIL_RSHIFT(inlink->h, flip->vsub) : inlink->h; - step = flip->max_step[plane]; + const int width = (plane == 1 || plane == 2) ? FF_CEIL_RSHIFT(inlink->w, s->hsub) : inlink->w; + const int height = (plane == 1 || plane == 2) ? FF_CEIL_RSHIFT(inlink->h, s->vsub) : inlink->h; + step = s->max_step[plane]; outrow = out->data[plane]; inrow = in ->data[plane] + (width - 1) * step; |