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.

58 lines
1.5KB

  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. */
  25. #ifndef AVCODEC_LIBUTVIDEO_H
  26. #define AVCODEC_LIBUTVIDEO_H
  27. #include <stdlib.h>
  28. #include <utvideo/utvideo.h>
  29. #include <utvideo/Codec.h>
  30. /* Ut Video version 12.0.0 removed the _WIN names, so if those are
  31. * absent, redefine them to maintain compatibility with pre-v12 versions.*/
  32. #if !defined(UTVF_RGB24_WIN)
  33. #define UTVF_RGB24_WIN UTVF_NFCC_BGR_BU
  34. #endif
  35. #if !defined(UTVF_RGB32_WIN)
  36. #define UTVF_RGB32_WIN UTVF_NFCC_BGRA_BU
  37. #endif
  38. typedef struct {
  39. uint32_t version;
  40. uint32_t original_format;
  41. uint32_t frameinfo_size;
  42. uint32_t flags;
  43. } UtVideoExtra;
  44. typedef struct {
  45. CCodec *codec;
  46. unsigned int buf_size;
  47. uint8_t *buffer;
  48. } UtVideoContext;
  49. #endif /* AVCODEC_LIBUTVIDEO_H */