c - FFMPEG how to use functions from libswscale when writing filter for libavfilter -
i trying write filters ffmpeg , use created filters preprocessing planes. how can 1 that? have standard loop plane processing:
int p; if (av_frame_is_writable(in)) { out = in; } else { out = ff_get_video_buffer(outlink, outlink->w, outlink->h); if (!out) { av_frame_free(&in); return averror(enomem); } av_frame_copy_props(out, in); } // processing planes (p = 0; p < filter->nb_planes; p++) { pad_plane(); transpose_plane(); // etc... apply_my_filter(); } if (out != in) av_frame_free(&in); return ff_filter_frame(outlink, out);
i believe padding , transposing possible in ffmpeg's other libraries. common way able use them inside mine filter code?
Comments
Post a Comment