/third_party/ffmpeg/libavfilter/ |
D | vsrc_mptestsrc.c | 308 AVFrame *picref; in request_frame() local 318 picref = ff_get_video_buffer(outlink, w, h); in request_frame() 319 if (!picref) in request_frame() 321 picref->pts = test->pts++; in request_frame() 325 memset(picref->data[0] + i*picref->linesize[0], 0, w); in request_frame() 327 memset(picref->data[1] + i*picref->linesize[1], 128, cw); in request_frame() 328 memset(picref->data[2] + i*picref->linesize[2], 128, cw); in request_frame() 335 case TEST_DC_LUMA: dc_test(picref->data[0], picref->linesize[0], 256, 256, mod); break; in request_frame() 336 case TEST_DC_CHROMA: dc_test(picref->data[1], picref->linesize[1], 256, 256, mod); break; in request_frame() 337 case TEST_FREQ_LUMA: freq_test(picref->data[0], picref->linesize[0], mod); break; in request_frame() [all …]
|
D | vsrc_testsrc.c | 63 AVFrame *picref; ///< cached reference containing the painted picture member 131 av_frame_free(&test->picref); in uninit() 163 av_frame_free(&test->picref); in activate() 166 if (!test->picref) { in activate() 167 test->picref = in activate() 169 if (!test->picref) in activate() 171 test->fill_picture_fn(outlink->src, test->picref); in activate() 173 frame = av_frame_clone(test->picref); in activate() 204 static void color_fill_picture(AVFilterContext *ctx, AVFrame *picref) in color_fill_picture() argument 208 picref->data, picref->linesize, in color_fill_picture() [all …]
|
D | vf_blackdetect.c | 188 static int filter_frame(AVFilterLink *inlink, AVFrame *picref) in filter_frame() argument 194 ctx->internal->execute(ctx, black_counter, picref, NULL, in filter_frame() 205 av_ts2str(picref->pts), av_ts2timestr(picref->pts, &s->time_base), in filter_frame() 206 av_get_picture_type_char(picref->pict_type)); in filter_frame() 212 s->black_start = picref->pts; in filter_frame() 213 av_dict_set(&picref->metadata, "lavfi.black_start", in filter_frame() 219 s->black_end = picref->pts; in filter_frame() 221 av_dict_set(&picref->metadata, "lavfi.black_end", in filter_frame() 225 s->last_picref_pts = picref->pts; in filter_frame() 227 return ff_filter_frame(inlink->dst->outputs[0], picref); in filter_frame()
|
D | vf_geq.c | 52 AVFrame *picref; ///< current input buffer member 101 AVFrame *picref = geq->picref; in getpix() local 102 const uint8_t *src = picref->data[plane]; in getpix() 103 int linesize = picref->linesize[plane]; in getpix() 104 …const int w = (plane == 1 || plane == 2) ? AV_CEIL_RSHIFT(picref->width, geq->hsub) : picref->wid… in getpix() 105 …const int h = (plane == 1 || plane == 2) ? AV_CEIL_RSHIFT(picref->height, geq->vsub) : picref->hei… in getpix() 145 AVFrame *picref = geq->picref; in calculate_sums() local 146 const uint8_t *src = picref->data[plane]; in calculate_sums() 147 int linesize = picref->linesize[plane]; in calculate_sums() 201 AVFrame *picref = geq->picref; in getpix_integrate() local [all …]
|
D | vf_idet.c | 234 static int filter_frame(AVFilterLink *link, AVFrame *picref) in filter_frame() argument 242 !picref->interlaced_frame && in filter_frame() 244 return ff_filter_frame(ctx->outputs[0], picref); in filter_frame() 247 if (picref->interlaced_frame && idet->interlaced_flag_accuracy < 0) in filter_frame() 248 picref->interlaced_frame = 0; in filter_frame() 249 return ff_filter_frame(ctx->outputs[0], picref); in filter_frame() 254 if( picref->width != link->w in filter_frame() 255 || picref->height != link->h in filter_frame() 256 || picref->format != link->format) { in filter_frame() 257 link->dst->inputs[0]->format = picref->format; in filter_frame() [all …]
|
D | vsrc_cellauto.c | 260 static void fill_picture(AVFilterContext *ctx, AVFrame *picref) in fill_picture() argument 264 uint8_t *p0 = picref->data[0]; in fill_picture() 284 p0 += picref->linesize[0]; in fill_picture() 291 AVFrame *picref = ff_get_video_buffer(outlink, s->w, s->h); in request_frame() local 292 if (!picref) in request_frame() 294 picref->sample_aspect_ratio = (AVRational) {1, 1}; in request_frame() 300 fill_picture(outlink->src, picref); in request_frame() 303 picref->pts = s->pts++; in request_frame() 308 return ff_filter_frame(outlink, picref); in request_frame()
|
D | vsrc_life.c | 346 static void fill_picture_monoblack(AVFilterContext *ctx, AVFrame *picref) in fill_picture_monoblack() argument 355 uint8_t *p = picref->data[0] + i * picref->linesize[0]; in fill_picture_monoblack() 371 static void fill_picture_rgb(AVFilterContext *ctx, AVFrame *picref) in fill_picture_rgb() argument 379 uint8_t *p = picref->data[0] + i * picref->linesize[0]; in fill_picture_rgb() 401 AVFrame *picref = ff_get_video_buffer(outlink, life->w, life->h); in request_frame() local 402 if (!picref) in request_frame() 404 picref->sample_aspect_ratio = (AVRational) {1, 1}; in request_frame() 405 picref->pts = life->pts++; in request_frame() 407 life->draw(outlink->src, picref); in request_frame() 412 return ff_filter_frame(outlink, picref); in request_frame()
|
D | vf_subtitles.c | 163 static void overlay_ass_image(AssContext *ass, AVFrame *picref, in overlay_ass_image() argument 171 picref->data, picref->linesize, in overlay_ass_image() 172 picref->width, picref->height, in overlay_ass_image() 178 static int filter_frame(AVFilterLink *inlink, AVFrame *picref) in filter_frame() argument 184 double time_ms = picref->pts * av_q2d(inlink->time_base) * 1000; in filter_frame() 191 overlay_ass_image(ass, picref, image); in filter_frame() 193 return ff_filter_frame(outlink, picref); in filter_frame()
|
D | vf_swapuv.c | 59 AVFrame *picref = ff_default_get_video_buffer(link, w, h); in get_video_buffer() local 60 do_swap(picref); in get_video_buffer() 61 return picref; in get_video_buffer()
|
D | vf_tile.c | 195 static int filter_frame(AVFilterLink *inlink, AVFrame *picref) in filter_frame() argument 205 av_frame_free(&picref); in filter_frame() 208 av_frame_copy_props(tile->out_ref, picref); in filter_frame() 238 picref->data, picref->linesize, in filter_frame() 241 av_frame_free(&picref); in filter_frame()
|
D | qsvvpp.c | 382 static QSVFrame *submit_frame(QSVVPPContext *s, AVFilterLink *inlink, AVFrame *picref) in submit_frame() argument 400 if (picref->format != AV_PIX_FMT_QSV) { in submit_frame() 404 qsv_frame->frame = av_frame_clone(picref); in submit_frame() 408 if (picref->height & 31 || picref->linesize[0] & 31) { in submit_frame() 415 qsv_frame->frame->width = picref->width; in submit_frame() 416 qsv_frame->frame->height = picref->height; in submit_frame() 418 if (av_frame_copy(qsv_frame->frame, picref) < 0) { in submit_frame() 423 av_frame_copy_props(qsv_frame->frame, picref); in submit_frame() 425 qsv_frame->frame = av_frame_clone(picref); in submit_frame() 801 int ff_qsvvpp_filter_frame(QSVVPPContext *s, AVFilterLink *inlink, AVFrame *picref) in ff_qsvvpp_filter_frame() argument [all …]
|
D | vsrc_mandelbrot.c | 401 AVFrame *picref = ff_get_video_buffer(link, s->w, s->h); in request_frame() local 402 if (!picref) in request_frame() 405 picref->sample_aspect_ratio = (AVRational) {1, 1}; in request_frame() 406 picref->pts = s->pts++; in request_frame() 408 draw_mandelbrot(link->src, (uint32_t*)picref->data[0], picref->linesize[0]/4, picref->pts); in request_frame() 409 return ff_filter_frame(link, picref); in request_frame()
|
D | vf_vpp_qsv.c | 470 static int filter_frame(AVFilterLink *inlink, AVFrame *picref) in filter_frame() argument 478 ret = ff_qsvvpp_filter_frame(vpp->qsv, inlink, picref); in filter_frame() 479 av_frame_free(&picref); in filter_frame() 481 if (picref->pts != AV_NOPTS_VALUE) in filter_frame() 482 picref->pts = av_rescale_q(picref->pts, inlink->time_base, outlink->time_base); in filter_frame() 483 ret = ff_filter_frame(outlink, picref); in filter_frame()
|
D | vf_thumbnail.c | 97 AVFrame *picref; in get_best_frame() local 126 picref = s->frames[best_frame_idx].buf; in get_best_frame() 129 picref->pts * av_q2d(s->tb), nb_frames); in get_best_frame() 132 return picref; in get_best_frame()
|
D | vf_thumbnail_cuda.c | 119 AVFrame *picref; in get_best_frame() local 148 picref = s->frames[best_frame_idx].buf; in get_best_frame() 151 picref->pts * av_q2d(s->tb), nb_frames); in get_best_frame() 154 return picref; in get_best_frame()
|
D | vf_signature.c | 150 static int filter_frame(AVFilterLink *inlink, AVFrame *picref) in filter_frame() argument 167 uint8_t *p = picref->data[0]; in filter_frame() 196 fs->pts = picref->pts; in filter_frame() 213 p += picref->linesize[0]; in filter_frame() 382 return ff_filter_frame(inlink->dst->outputs[0], picref); in filter_frame()
|
D | vf_coreimage.m | 48 AVFrame *picref; ///< cached reference containing the painted picture field 333 if (!ctx->picref) { 334 ctx->picref = ff_get_video_buffer(link, ctx->w, ctx->h); 335 if (!ctx->picref) { 340 frame = av_frame_clone(ctx->picref); 601 av_frame_free(&ctx->picref);
|
D | vf_tinterlace.c | 363 static int filter_frame(AVFilterLink *inlink, AVFrame *picref) in filter_frame() argument 373 tinterlace->next = picref; in filter_frame()
|