History

lavfi: remove vsrc_buffer.h API

The vsrc_buffer.h is not installed since commit 0b3b95813576, so there is no point into keeping it around. The buffersrc.h API, which is more powerful, should be used instead.

Stefano Sabatini committed 14 years ago

Commit bb6effe1 parent ab7dbdc4 files · +1 −101Browse files

Unified · Split

4 files
  1. libavfilter/avcodec.h +0 −12
  2. libavfilter/src_buffer.c +0 −22
  3. libavfilter/version.h +1 −1
  4. libavfilter/vsrc_buffer.h +0 −66
libavfilter/avcodec.h+0−12
@@ -30,7 +30,6 @@ · 29 unmodified lines
3030
3131 #include "libavcodec/avcodec.h" // AVFrame
3232 #include "avfilter.h"
33−#include "vsrc_buffer.h"
3433
3534 /**
3635 * Copy the frame properties of src to dst, without copying the actual
@@ -119,15 +118,4 @@ int avfilter_fill_frame_from_buffer_ref(AVFrame *frame, · 82 unmodified lines
119118 int av_buffersrc_add_frame(AVFilterContext *buffer_src,
120119 const AVFrame *frame, int flags);
121120
122−/**
123− * Add frame data to buffer_src.
124− *
125− * @param buffer_src pointer to a buffer source context
126− * @param flags a combination of AV_VSRC_BUF_FLAG_* flags
127− * @return >= 0 in case of success, a negative AVERROR code in case of
128− * failure
129− */
130−int av_vsrc_buffer_add_frame(AVFilterContext *buffer_src,
131− const AVFrame *frame, int flags);
132−
133121 #endif /* AVFILTER_AVCODEC_H */
libavfilter/src_buffer.c+0−22
@@ -30,7 +30,6 @@ · 29 unmodified lines
3030 #include "audio.h"
3131 #include "avcodec.h"
3232 #include "buffersrc.h"
33−#include "vsrc_buffer.h"
3433 #include "asrc_abuffer.h"
3534 #include "libavutil/audioconvert.h"
3635 #include "libavutil/avstring.h"
@@ -67,27 +66,6 @@ static void buf_free(AVFilterBuffer *ptr) · 30 unmodified lines
6766 return;
6867 }
6968
70−int av_vsrc_buffer_add_video_buffer_ref(AVFilterContext *buffer_filter,
71− AVFilterBufferRef *picref, int flags)
72−{
73− return av_buffersrc_add_ref(buffer_filter, picref, 0);
74−}
75−
76−#if CONFIG_AVCODEC
77−#include "avcodec.h"
78−
79−int av_vsrc_buffer_add_frame(AVFilterContext *buffer_src,
80− const AVFrame *frame, int flags)
81−{
82− return av_buffersrc_add_frame(buffer_src, frame, 0);
83−}
84−#endif
85−
86−unsigned av_vsrc_buffer_get_nb_failed_requests(AVFilterContext *buffer_src)
87−{
88− return ((BufferSourceContext *)buffer_src->priv)->nb_failed_requests;
89−}
90−
9169 int av_asrc_buffer_add_audio_buffer_ref(AVFilterContext *ctx,
9270 AVFilterBufferRef *samplesref,
9371 int av_unused flags)
libavfilter/version.h+1−1
@@ -30,7 +30,7 @@ · 29 unmodified lines
3030
3131 #define LIBAVFILTER_VERSION_MAJOR 3
3232 #define LIBAVFILTER_VERSION_MINOR 0
33−#define LIBAVFILTER_VERSION_MICRO 100
33+#define LIBAVFILTER_VERSION_MICRO 101
3434
3535 #define LIBAVFILTER_VERSION_INT AV_VERSION_INT(LIBAVFILTER_VERSION_MAJOR, \
3636 LIBAVFILTER_VERSION_MINOR, \
libavfilter/vsrc_buffer.h+0−66
@@ -1,66 +0,0 @@
1−/*
2− * Copyright (c) 2008 Vitor Sessak
3− *
4− * This file is part of FFmpeg.
5− *
6− * FFmpeg is free software; you can redistribute it and/or
7− * modify it under the terms of the GNU Lesser General Public
8− * License as published by the Free Software Foundation; either
9− * version 2.1 of the License, or (at your option) any later version.
10− *
11− * FFmpeg is distributed in the hope that it will be useful,
12− * but WITHOUT ANY WARRANTY; without even the implied warranty of
13− * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14− * Lesser General Public License for more details.
15− *
16− * You should have received a copy of the GNU Lesser General Public
17− * License along with FFmpeg; if not, write to the Free Software
18− * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19− */
20−
21−#ifndef AVFILTER_VSRC_BUFFER_H
22−#define AVFILTER_VSRC_BUFFER_H
23−
24−/**
25− * @file
26− * memory buffer source API for video
27− *
28− * @deprecated use buffersrc.h instead.
29− */
30−
31−#include "avfilter.h"
32−
33−/**
34− * Tell av_vsrc_buffer_add_video_buffer_ref() to overwrite the already
35− * cached video buffer with the new added one, otherwise the function
36− * will complain and exit.
37− */
38−#define AV_VSRC_BUF_FLAG_OVERWRITE 1
39−
40−/**
41− * Add video buffer data in picref to buffer_src.
42− *
43− * @param buffer_src pointer to a buffer source context
44− * @param flags a combination of AV_VSRC_BUF_FLAG_* flags
45− * @return >= 0 in case of success, a negative AVERROR code in case of
46− * failure
47− *
48− * @deprecated use av_buffersrc_add_ref() instead.
49− */
50−attribute_deprecated
51−int av_vsrc_buffer_add_video_buffer_ref(AVFilterContext *buffer_src,
52− AVFilterBufferRef *picref, int flags);
53−
54−/**
55− * Get the number of failed requests.
56− *
57− * A failed request is when the request_frame method is called while no
58− * frame is present in the buffer.
59− * The number is reset when a frame is added.
60− *
61− * @deprecated use av_buffersrc_get_nb_failed_requests() instead.
62− */
63−attribute_deprecated
64−unsigned av_vsrc_buffer_get_nb_failed_requests(AVFilterContext *buffer_src);
65−
66−#endif /* AVFILTER_VSRC_BUFFER_H */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t