• 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:spp

60 AVFILTER_DEFINE_CLASS(spp);
266 SPPContext *spp = inlink->dst->priv;
270 spp->hsub = desc->log2_chroma_w;
271 spp->vsub = desc->log2_chroma_h;
272 spp->temp_linesize = FFALIGN(inlink->w + 16, 16);
273 spp->temp = av_malloc_array(spp->temp_linesize, h * sizeof(*spp->temp));
274 spp->src = av_malloc_array(spp->temp_linesize, h * sizeof(*spp->src));
275 if (!spp->use_bframe_qp) {
277 spp->non_b_qp_alloc_size = FF_CEIL_RSHIFT(inlink->w, 4) * FF_CEIL_RSHIFT(inlink->h, 4);
278 spp->non_b_qp_table = av_calloc(spp->non_b_qp_alloc_size, sizeof(*spp->non_b_qp_table));
279 if (!spp->non_b_qp_table)
282 if (!spp->temp || !spp->src)
290 SPPContext *spp = ctx->priv;
300 if (!spp->qp) {
301 qp_table = av_frame_get_qp_table(in, &qp_stride, &spp->qscale_type);
303 if (qp_table && !spp->use_bframe_qp && in->pict_type != AV_PICTURE_TYPE_B) {
315 av_assert0(w * h <= spp->non_b_qp_alloc_size);
316 memcpy(spp->non_b_qp_table, qp_table, w * h);
320 if (spp->log2_count && !ctx->is_disabled) {
321 if (!spp->use_bframe_qp && spp->non_b_qp_table)
322 qp_table = spp->non_b_qp_table;
324 if (qp_table || spp->qp) {
325 const int cw = FF_CEIL_RSHIFT(inlink->w, spp->hsub);
326 const int ch = FF_CEIL_RSHIFT(inlink->h, spp->vsub);
344 filter(spp, out->data[0], in->data[0], out->linesize[0], in->linesize[0], inlink->w, inlink->h, qp_table, qp_stride, 1);
345 filter(spp, out->data[1], in->data[1], out->linesize[1], in->linesize[1], cw, ch, qp_table, qp_stride, 0);
346 filter(spp, out->data[2], in->data[2], out->linesize[2], in->linesize[2], cw, ch, qp_table, qp_stride, 0);
364 SPPContext *spp = ctx->priv;
368 spp->log2_count = MAX_LEVEL;
370 spp->log2_count = av_clip(strtol(args, NULL, 10), 0, MAX_LEVEL);
378 SPPContext *spp = ctx->priv;
380 spp->avctx = avcodec_alloc_context3(NULL);
381 spp->dct = avcodec_dct_alloc();
382 if (!spp->avctx || !spp->dct)
384 ff_pixblockdsp_init(&spp->pdsp, spp->avctx);
385 avcodec_dct_init(spp->dct);
386 spp->store_slice = store_slice_c;
387 switch (spp->mode) {
388 case MODE_HARD: spp->requantize = hardthresh_c; break;
389 case MODE_SOFT: spp->requantize = softthresh_c; break;
392 ff_spp_init_x86(spp);
398 SPPContext *spp = ctx->priv;
400 av_freep(&spp->temp);
401 av_freep(&spp->src);
402 if (spp->avctx) {
403 avcodec_close(spp->avctx);
404 av_freep(&spp->avctx);
406 av_freep(&spp->dct);
407 av_freep(&spp->non_b_qp_table);
429 .name = "spp",