You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

67 lines
1.8KB

  1. /*
  2. * Blackmagic DeckLink common code
  3. * Copyright (c) 2013-2014 Ramiro Polla
  4. * Copyright (c) 2017 Akamai Technologies, Inc.
  5. *
  6. * This file is part of FFmpeg.
  7. *
  8. * FFmpeg is free software; you can redistribute it and/or
  9. * modify it under the terms of the GNU Lesser General Public
  10. * License as published by the Free Software Foundation; either
  11. * version 2.1 of the License, or (at your option) any later version.
  12. *
  13. * FFmpeg is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  16. * Lesser General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU Lesser General Public
  19. * License along with FFmpeg; if not, write to the Free Software
  20. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  21. */
  22. #ifndef AVDEVICE_DECKLINK_COMMON_C_H
  23. #define AVDEVICE_DECKLINK_COMMON_C_H
  24. #include <DeckLinkAPIVersion.h>
  25. typedef enum DecklinkPtsSource {
  26. PTS_SRC_AUDIO = 1,
  27. PTS_SRC_VIDEO = 2,
  28. PTS_SRC_REFERENCE = 3,
  29. PTS_SRC_WALLCLOCK = 4,
  30. PTS_SRC_ABS_WALLCLOCK = 5,
  31. PTS_SRC_NB
  32. } DecklinkPtsSource;
  33. struct decklink_cctx {
  34. const AVClass *cclass;
  35. void *ctx;
  36. /* Options */
  37. int list_devices;
  38. int list_formats;
  39. int enable_klv;
  40. int64_t teletext_lines;
  41. double preroll;
  42. int audio_channels;
  43. int audio_depth;
  44. int duplex_mode;
  45. DecklinkPtsSource audio_pts_source;
  46. DecklinkPtsSource video_pts_source;
  47. int audio_input;
  48. int video_input;
  49. int tc_format;
  50. int draw_bars;
  51. char *format_code;
  52. int raw_format;
  53. int64_t queue_size;
  54. int copyts;
  55. int64_t timestamp_align;
  56. int timing_offset;
  57. int wait_for_tc;
  58. };
  59. #endif /* AVDEVICE_DECKLINK_COMMON_C_H */