/*
* Copyright (c) 2012 Clément Bœsch
+ * Copyright (c) 2013 Rudolf Polzer <divverent@xonotic.org>
*
* This file is part of FFmpeg.
*
AVFILTER_DEFINE_CLASS(showspectrum);
-typedef struct {
+static const struct {
float a, y, u, v;
-} intensity_color_table_item;
-static const intensity_color_table_item intensity_color_table[] =
-{
- { 0, 0, 0, 0 },
- { 0.13, .03587126228984074, .1573300977624594, -.02548747583751842 },
- { 0.3, .1857228179456802, .1772436246393981, .1747555484041475 },
- { 0.6, .2818498058365613, -.1593064119945782, .4713207455460892 },
- { 0.73, .6583062117554781, -.3716070802232764, .2435275933125293 },
- { 0.78, 0.763185357582429, -.4307467689263783, .1686649662231043 },
- { 0.91, .9533636363636364, -.2045454545454546, .03313636363636363 },
- { 1, 1, 0, 0 }
+} intensity_color_table[] = {
+ { 0, 0, 0, 0 },
+ { 0.13, .03587126228984074, .1573300977624594, -.02548747583751842 },
+ { 0.30, .18572281794568020, .1772436246393981, .17475554840414750 },
+ { 0.60, .28184980583656130, -.1593064119945782, .47132074554608920 },
+ { 0.73, .65830621175547810, -.3716070802232764, .24352759331252930 },
+ { 0.78, .76318535758242900, -.4307467689263783, .16866496622310430 },
+ { 0.91, .95336363636363640, -.2045454545454546, .03313636363636363 },
+ { 1, 1, 0, 0 }
};
static av_cold int init(AVFilterContext *ctx, const char *args)