vsrc_buffer.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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. #ifndef AVFILTER_VSRC_BUFFER_H
  21. #define AVFILTER_VSRC_BUFFER_H
  22. /**
  23. * @file
  24. * memory buffer source API for video
  25. *
  26. * @deprecated use buffersrc.h instead.
  27. */
  28. #include "avfilter.h"
  29. /**
  30. * Tell av_vsrc_buffer_add_video_buffer_ref() to overwrite the already
  31. * cached video buffer with the new added one, otherwise the function
  32. * will complain and exit.
  33. */
  34. #define AV_VSRC_BUF_FLAG_OVERWRITE 1
  35. /**
  36. * Add video buffer data in picref to buffer_src.
  37. *
  38. * @param buffer_src pointer to a buffer source context
  39. * @param flags a combination of AV_VSRC_BUF_FLAG_* flags
  40. * @return >= 0 in case of success, a negative AVERROR code in case of
  41. * failure
  42. *
  43. * @deprecated use av_buffersrc_add_ref() instead.
  44. */
  45. attribute_deprecated
  46. int av_vsrc_buffer_add_video_buffer_ref(AVFilterContext *buffer_src,
  47. AVFilterBufferRef *picref, int flags);
  48. /**
  49. * Get the number of failed requests.
  50. *
  51. * A failed request is when the request_frame method is called while no
  52. * frame is present in the buffer.
  53. * The number is reset when a frame is added.
  54. *
  55. * @deprecated use av_buffersrc_get_nb_failed_requests() instead.
  56. */
  57. attribute_deprecated
  58. unsigned av_vsrc_buffer_get_nb_failed_requests(AVFilterContext *buffer_src);
  59. #endif /* AVFILTER_VSRC_BUFFER_H */