• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/minidlna/ffmpeg-2.3.4/libavfilter/

Lines Matching defs:showwaves

68 AVFILTER_DEFINE_CLASS(showwaves);
72 ShowWavesContext *showwaves = ctx->priv;
74 av_frame_free(&showwaves->outpicref);
115 ShowWavesContext *showwaves = ctx->priv;
117 if (!showwaves->n)
118 showwaves->n = FFMAX(1, ((double)inlink->sample_rate / (showwaves->w * av_q2d(showwaves->rate))) + 0.5);
120 showwaves->buf_idx = 0;
121 outlink->w = showwaves->w;
122 outlink->h = showwaves->h;
125 outlink->frame_rate = av_div_q((AVRational){inlink->sample_rate,showwaves->n},
126 (AVRational){showwaves->w,1});
129 showwaves->w, showwaves->h, av_q2d(outlink->frame_rate), showwaves->n);
135 ShowWavesContext *showwaves = outlink->src->priv;
138 if ((ret = ff_filter_frame(outlink, showwaves->outpicref)) >= 0)
139 showwaves->req_fullfilled = 1;
140 showwaves->outpicref = NULL;
141 showwaves->buf_idx = 0;
147 ShowWavesContext *showwaves = outlink->src->priv;
151 showwaves->req_fullfilled = 0;
154 } while (!showwaves->req_fullfilled && ret >= 0);
156 if (ret == AVERROR_EOF && showwaves->outpicref)
167 ShowWavesContext *showwaves = ctx->priv;
169 AVFrame *outpicref = showwaves->outpicref;
174 const int n = showwaves->n;
179 if (!showwaves->outpicref) {
180 showwaves->outpicref = outpicref =
195 h = showwaves->h/2 - av_rescale(*p++, showwaves->h/2, MAX_INT16);
196 switch (showwaves->mode) {
199 *(outpicref->data[0] + showwaves->buf_idx + h * linesize) += x;
204 int start = showwaves->h/2, end = av_clip(h, 0, outlink->h-1);
207 *(outpicref->data[0] + showwaves->buf_idx + k * linesize) += x;
213 showwaves->sample_count_mod++;
214 if (showwaves->sample_count_mod == n) {
215 showwaves->sample_count_mod = 0;
216 showwaves->buf_idx++;
218 if (showwaves->buf_idx == showwaves->w)
221 outpicref = showwaves->outpicref;
248 .name = "showwaves",