summaryrefslogtreecommitdiff
path: root/libavfilter/vf_mp.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-06-24 02:09:53 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-06-24 02:09:53 +0200
commit1c600888857544986d6576bc164e0dc8f0f4b6c7 (patch)
treef4e77c53d1050223a9170f75e4ea719f29cd04eb /libavfilter/vf_mp.c
parentda728d5d2e7993911c7ed92c212ab900b7be180c (diff)
parentfe07c9c6b5a870b8f2ffcfac649228b4d76e9505 (diff)
Merge remote-tracking branch 'qatar/master'
* qatar/master: x86: Only use optimizations with cmov if the CPU supports the instruction x86: Add CPU flag for the i686 cmov instruction x86: remove unused inline asm macros from dsputil_mmx.h x86: move some inline asm macros to the only places they are used lavfi: Add the af_channelmap audio channel mapping filter. lavfi: add join audio filter. lavfi: allow audio filters to request a given number of samples. lavfi: support automatically inserting the fifo filter when needed. lavfi/audio: eliminate ff_default_filter_samples(). Conflicts: Changelog libavcodec/x86/h264dsp_mmx.c libavfilter/Makefile libavfilter/allfilters.c libavfilter/avfilter.h libavfilter/avfiltergraph.c libavfilter/version.h libavutil/x86/cpu.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter/vf_mp.c')
-rw-r--r--libavfilter/vf_mp.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/libavfilter/vf_mp.c b/libavfilter/vf_mp.c
index bf3975af3d..43eecc3c91 100644
--- a/libavfilter/vf_mp.c
+++ b/libavfilter/vf_mp.c
@@ -25,6 +25,9 @@
*/
#include "avfilter.h"
+#include "video.h"
+#include "formats.h"
+#include "internal.h"
#include "libavutil/avassert.h"
#include "libavutil/pixdesc.h"
#include "libavutil/intreadwrite.h"
@@ -633,9 +636,9 @@ int vf_next_put_image(struct vf_instance *vf,mp_image_t *mpi, double pts){
if(pts != MP_NOPTS_VALUE)
picref->pts= pts * av_q2d(outlink->time_base);
- avfilter_start_frame(outlink, avfilter_ref_buffer(picref, ~0));
- avfilter_draw_slice(outlink, 0, picref->video->h, 1);
- avfilter_end_frame(outlink);
+ ff_start_frame(outlink, avfilter_ref_buffer(picref, ~0));
+ ff_draw_slice(outlink, 0, picref->video->h, 1);
+ ff_end_frame(outlink);
avfilter_unref_buffer(picref);
m->frame_returned++;
@@ -788,14 +791,14 @@ static int query_formats(AVFilterContext *ctx)
if(m->vf.query_format(&m->vf, conversion_map[i].fmt)){
av_log(ctx, AV_LOG_DEBUG, "supported,adding\n");
if (conversion_map[i].pix_fmt != lastpixfmt) {
- avfilter_add_format(&avfmts, conversion_map[i].pix_fmt);
+ ff_add_format(&avfmts, conversion_map[i].pix_fmt);
lastpixfmt = conversion_map[i].pix_fmt;
}
}
}
//We assume all allowed input formats are also allowed output formats
- avfilter_set_common_pixel_formats(ctx, avfmts);
+ ff_set_common_formats(ctx, avfmts);
return 0;
}
@@ -836,7 +839,7 @@ static int request_frame(AVFilterLink *outlink)
av_log(m->avfctx, AV_LOG_DEBUG, "mp request_frame\n");
for(m->frame_returned=0; !m->frame_returned;){
- ret=avfilter_request_frame(outlink->src->inputs[0]);
+ ret=ff_request_frame(outlink->src->inputs[0]);
if(ret<0)
break;
}