git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
46428ea
)
vf_colormatrix: calculate coefficients only once
author
Ganesh Ajjanagadde
<gajjanagadde@gmail.com>
Fri, 5 Jun 2015 20:05:18 +0000
(16:05 -0400)
committer
Michael Niedermayer
<michaelni@gmx.at>
Sat, 6 Jun 2015 22:56:32 +0000
(
00:56
+0200)
calc_coefficients is no longer being called every frame
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavfilter/vf_colormatrix.c
patch
|
blob
|
history
diff --git
a/libavfilter/vf_colormatrix.c
b/libavfilter/vf_colormatrix.c
index
fde4b89
..
4971cac
100644
(file)
--- a/
libavfilter/vf_colormatrix.c
+++ b/
libavfilter/vf_colormatrix.c
@@
-187,6
+187,8
@@
static av_cold int init(AVFilterContext *ctx)
return AVERROR(EINVAL);
}
+ calc_coefficients(ctx);
+
return 0;
}
@@
-400,8
+402,6
@@
static int filter_frame(AVFilterLink *link, AVFrame *in)
case COLOR_MODE_BT601 : av_frame_set_colorspace(out, AVCOL_SPC_BT470BG) ; break;
}
- calc_coefficients(ctx);
-
td.src = in;
td.dst = out;
td.c2 = color->yuv_convert[color->mode][0][1];