diff options
author | Hendrik Leppkes <h.leppkes@gmail.com> | 2015-09-08 17:10:48 +0200 |
---|---|---|
committer | Hendrik Leppkes <h.leppkes@gmail.com> | 2015-09-08 17:10:48 +0200 |
commit | 5d8e836d0ec3bcaabf5bc2020210a1bc61975922 (patch) | |
tree | 8ff87745055d571431ded709218556357b18341c /libavfilter/vf_histogram.c | |
parent | 151aa2ebff514a9d150a2d3a7b92be1dcc46df36 (diff) |
Replace all remaining occurances of step/depth_minus1 and offset_plus1
Diffstat (limited to 'libavfilter/vf_histogram.c')
-rw-r--r-- | libavfilter/vf_histogram.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/libavfilter/vf_histogram.c b/libavfilter/vf_histogram.c index 443cbda660..d8e935a28e 100644 --- a/libavfilter/vf_histogram.c +++ b/libavfilter/vf_histogram.c @@ -177,25 +177,25 @@ static int query_formats(AVFilterContext *ctx) avff = ctx->inputs[0]->in_formats; desc = av_pix_fmt_desc_get(avff->formats[0]); rgb = desc->flags & AV_PIX_FMT_FLAG_RGB; - bits = desc->comp[0].depth_minus1; + bits = desc->comp[0].depth; for (i = 1; i < avff->nb_formats; i++) { desc = av_pix_fmt_desc_get(avff->formats[i]); if ((rgb != (desc->flags & AV_PIX_FMT_FLAG_RGB)) || - (bits != desc->comp[0].depth_minus1)) + (bits != desc->comp[0].depth)) return AVERROR(EAGAIN); } - if (rgb && bits == 7) + if (rgb && bits == 8) out_pix_fmts = levels_out_rgb8_pix_fmts; - else if (rgb && bits == 8) - out_pix_fmts = levels_out_rgb9_pix_fmts; else if (rgb && bits == 9) + out_pix_fmts = levels_out_rgb9_pix_fmts; + else if (rgb && bits == 10) out_pix_fmts = levels_out_rgb10_pix_fmts; - else if (bits == 7) - out_pix_fmts = levels_out_yuv8_pix_fmts; else if (bits == 8) + out_pix_fmts = levels_out_yuv8_pix_fmts; + else if (bits == 9) out_pix_fmts = levels_out_yuv9_pix_fmts; - else // if (bits == 9) + else // if (bits == 10) out_pix_fmts = levels_out_yuv10_pix_fmts; ff_formats_ref(ff_make_format_list(out_pix_fmts), &ctx->outputs[0]->in_formats); @@ -227,7 +227,7 @@ static int config_input(AVFilterLink *inlink) h->desc = av_pix_fmt_desc_get(inlink->format); h->ncomp = h->desc->nb_components; - h->histogram_size = 1 << (h->desc->comp[0].depth_minus1 + 1); + h->histogram_size = 1 << h->desc->comp[0].depth; h->mult = h->histogram_size / 256; switch (inlink->format) { |