Originally committed as revision 25434 to svn://svn.ffmpeg.org/ffmpeg/trunk
| ... | ... |
@@ -159,60 +159,60 @@ fail: |
| 159 | 159 |
return NULL; |
| 160 | 160 |
} |
| 161 | 161 |
|
| 162 |
-void avfilter_default_start_frame(AVFilterLink *link, AVFilterBufferRef *picref) |
|
| 162 |
+void avfilter_default_start_frame(AVFilterLink *inlink, AVFilterBufferRef *picref) |
|
| 163 | 163 |
{
|
| 164 |
- AVFilterLink *out = NULL; |
|
| 164 |
+ AVFilterLink *outlink = NULL; |
|
| 165 | 165 |
|
| 166 |
- if (link->dst->output_count) |
|
| 167 |
- out = link->dst->outputs[0]; |
|
| 166 |
+ if (inlink->dst->output_count) |
|
| 167 |
+ outlink = inlink->dst->outputs[0]; |
|
| 168 | 168 |
|
| 169 |
- if (out) {
|
|
| 170 |
- out->out_buf = avfilter_get_video_buffer(out, AV_PERM_WRITE, out->w, out->h); |
|
| 171 |
- avfilter_copy_buffer_ref_props(out->out_buf, picref); |
|
| 172 |
- avfilter_start_frame(out, avfilter_ref_buffer(out->out_buf, ~0)); |
|
| 169 |
+ if (outlink) {
|
|
| 170 |
+ outlink->out_buf = avfilter_get_video_buffer(outlink, AV_PERM_WRITE, outlink->w, outlink->h); |
|
| 171 |
+ avfilter_copy_buffer_ref_props(outlink->out_buf, picref); |
|
| 172 |
+ avfilter_start_frame(outlink, avfilter_ref_buffer(outlink->out_buf, ~0)); |
|
| 173 | 173 |
} |
| 174 | 174 |
} |
| 175 | 175 |
|
| 176 |
-void avfilter_default_draw_slice(AVFilterLink *link, int y, int h, int slice_dir) |
|
| 176 |
+void avfilter_default_draw_slice(AVFilterLink *inlink, int y, int h, int slice_dir) |
|
| 177 | 177 |
{
|
| 178 |
- AVFilterLink *out = NULL; |
|
| 178 |
+ AVFilterLink *outlink = NULL; |
|
| 179 | 179 |
|
| 180 |
- if (link->dst->output_count) |
|
| 181 |
- out = link->dst->outputs[0]; |
|
| 180 |
+ if (inlink->dst->output_count) |
|
| 181 |
+ outlink = inlink->dst->outputs[0]; |
|
| 182 | 182 |
|
| 183 |
- if (out) |
|
| 184 |
- avfilter_draw_slice(out, y, h, slice_dir); |
|
| 183 |
+ if (outlink) |
|
| 184 |
+ avfilter_draw_slice(outlink, y, h, slice_dir); |
|
| 185 | 185 |
} |
| 186 | 186 |
|
| 187 |
-void avfilter_default_end_frame(AVFilterLink *link) |
|
| 187 |
+void avfilter_default_end_frame(AVFilterLink *inlink) |
|
| 188 | 188 |
{
|
| 189 |
- AVFilterLink *out = NULL; |
|
| 189 |
+ AVFilterLink *outlink = NULL; |
|
| 190 | 190 |
|
| 191 |
- if (link->dst->output_count) |
|
| 192 |
- out = link->dst->outputs[0]; |
|
| 191 |
+ if (inlink->dst->output_count) |
|
| 192 |
+ outlink = inlink->dst->outputs[0]; |
|
| 193 | 193 |
|
| 194 |
- avfilter_unref_buffer(link->cur_buf); |
|
| 195 |
- link->cur_buf = NULL; |
|
| 194 |
+ avfilter_unref_buffer(inlink->cur_buf); |
|
| 195 |
+ inlink->cur_buf = NULL; |
|
| 196 | 196 |
|
| 197 |
- if (out) {
|
|
| 198 |
- if (out->out_buf) {
|
|
| 199 |
- avfilter_unref_buffer(out->out_buf); |
|
| 200 |
- out->out_buf = NULL; |
|
| 197 |
+ if (outlink) {
|
|
| 198 |
+ if (outlink->out_buf) {
|
|
| 199 |
+ avfilter_unref_buffer(outlink->out_buf); |
|
| 200 |
+ outlink->out_buf = NULL; |
|
| 201 | 201 |
} |
| 202 |
- avfilter_end_frame(out); |
|
| 202 |
+ avfilter_end_frame(outlink); |
|
| 203 | 203 |
} |
| 204 | 204 |
} |
| 205 | 205 |
|
| 206 | 206 |
/* FIXME: samplesref is same as link->cur_buf. Need to consider removing the redundant parameter. */ |
| 207 |
-void avfilter_default_filter_samples(AVFilterLink *link, AVFilterBufferRef *samplesref) |
|
| 207 |
+void avfilter_default_filter_samples(AVFilterLink *inlink, AVFilterBufferRef *samplesref) |
|
| 208 | 208 |
{
|
| 209 | 209 |
AVFilterLink *outlink = NULL; |
| 210 | 210 |
|
| 211 |
- if (link->dst->output_count) |
|
| 212 |
- outlink = link->dst->outputs[0]; |
|
| 211 |
+ if (inlink->dst->output_count) |
|
| 212 |
+ outlink = inlink->dst->outputs[0]; |
|
| 213 | 213 |
|
| 214 | 214 |
if (outlink) {
|
| 215 |
- outlink->out_buf = avfilter_default_get_audio_buffer(link, AV_PERM_WRITE, samplesref->format, |
|
| 215 |
+ outlink->out_buf = avfilter_default_get_audio_buffer(inlink, AV_PERM_WRITE, samplesref->format, |
|
| 216 | 216 |
samplesref->audio->size, |
| 217 | 217 |
samplesref->audio->channel_layout, |
| 218 | 218 |
samplesref->audio->planar); |
| ... | ... |
@@ -223,7 +223,7 @@ void avfilter_default_filter_samples(AVFilterLink *link, AVFilterBufferRef *samp |
| 223 | 223 |
outlink->out_buf = NULL; |
| 224 | 224 |
} |
| 225 | 225 |
avfilter_unref_buffer(samplesref); |
| 226 |
- link->cur_buf = NULL; |
|
| 226 |
+ inlink->cur_buf = NULL; |
|
| 227 | 227 |
} |
| 228 | 228 |
|
| 229 | 229 |
/** |