mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-12-22 03:28:44 +00:00
avfilter/showvolume : indent after prev commit
This commit is contained in:
parent
25b22666a3
commit
328df2f712
@ -274,18 +274,18 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *insamples)
|
|||||||
s->out->pts = insamples->pts;
|
s->out->pts = insamples->pts;
|
||||||
|
|
||||||
if (s->f < 1.) {
|
if (s->f < 1.) {
|
||||||
for (j = 0; j < outlink->h; j++) {
|
for (j = 0; j < outlink->h; j++) {
|
||||||
uint8_t *dst = s->out->data[0] + j * s->out->linesize[0];
|
uint8_t *dst = s->out->data[0] + j * s->out->linesize[0];
|
||||||
const uint32_t alpha = s->bgopacity * 255;
|
const uint32_t alpha = s->bgopacity * 255;
|
||||||
|
|
||||||
for (k = 0; k < outlink->w; k++) {
|
for (k = 0; k < outlink->w; k++) {
|
||||||
dst[k * 4 + 0] = FFMAX(dst[k * 4 + 0] * s->f, 0);
|
dst[k * 4 + 0] = FFMAX(dst[k * 4 + 0] * s->f, 0);
|
||||||
dst[k * 4 + 1] = FFMAX(dst[k * 4 + 1] * s->f, 0);
|
dst[k * 4 + 1] = FFMAX(dst[k * 4 + 1] * s->f, 0);
|
||||||
dst[k * 4 + 2] = FFMAX(dst[k * 4 + 2] * s->f, 0);
|
dst[k * 4 + 2] = FFMAX(dst[k * 4 + 2] * s->f, 0);
|
||||||
dst[k * 4 + 3] = FFMAX(dst[k * 4 + 3] * s->f, alpha);
|
dst[k * 4 + 3] = FFMAX(dst[k * 4 + 3] * s->f, alpha);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (s->orientation) { /* vertical */
|
if (s->orientation) { /* vertical */
|
||||||
for (c = 0; c < inlink->channels; c++) {
|
for (c = 0; c < inlink->channels; c++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user