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.

71 lines
1.8KB

  1. /*
  2. * Copyright (c) 2011-2012 Derek Buitenhuis
  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 General Public
  8. * License as published by the Free Software Foundation;
  9. * version 2 of the License.
  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. * General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU 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. * @file
  22. * Known FOURCCs:
  23. * 'ULY0' (YCbCr 4:2:0), 'ULY2' (YCbCr 4:2:2), 'ULRG' (RGB), 'ULRA' (RGBA),
  24. * 'ULH0' (YCbCr 4:2:0 BT.709), 'ULH2' (YCbCr 4:2:2 BT.709)
  25. */
  26. #ifndef AVCODEC_LIBUTVIDEO_H
  27. #define AVCODEC_LIBUTVIDEO_H
  28. #include <stdlib.h>
  29. #include <utvideo/utvideo.h>
  30. #include <utvideo/Codec.h>
  31. /*
  32. * Ut Video version 12.0.0 changed the RGB format names and removed
  33. * the _WIN names, so if the new names are absent, define them
  34. * against the old names so compatibility with pre-v12 versions
  35. * is maintained.
  36. */
  37. #if !defined(UTVF_NFCC_BGR_BU)
  38. #define UTVF_NFCC_BGR_BU UTVF_RGB24_WIN
  39. #endif
  40. #if !defined(UTVF_NFCC_BGRA_BU)
  41. #define UTVF_NFCC_BGRA_BU UTVF_RGB32_WIN
  42. #endif
  43. /*
  44. * Ut Video version 13.0.1 introduced new BT.709 variants.
  45. * Special-case these and only use them if v13 is detected.
  46. */
  47. #if defined(UTVF_HDYC)
  48. #define UTV_BT709
  49. #endif
  50. typedef struct {
  51. uint32_t version;
  52. uint32_t original_format;
  53. uint32_t frameinfo_size;
  54. uint32_t flags;
  55. } UtVideoExtra;
  56. typedef struct {
  57. CCodec *codec;
  58. unsigned int buf_size;
  59. uint8_t *buffer;
  60. } UtVideoContext;
  61. #endif /* AVCODEC_LIBUTVIDEO_H */