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.

53 lines
1.4KB

  1. /*
  2. * a64 video encoder - c64 colors in rgb (Pepto)
  3. * Copyright (c) 2009 Tobias Bindhammer
  4. *
  5. * This file is part of Libav.
  6. *
  7. * Libav is free software; you can redistribute it and/or
  8. * modify it under the terms of the GNU Lesser General Public
  9. * License as published by the Free Software Foundation; either
  10. * version 2.1 of the License, or (at your option) any later version.
  11. *
  12. * Libav is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  15. * Lesser General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU Lesser General Public
  18. * License along with Libav; if not, write to the Free Software
  19. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  20. */
  21. /**
  22. * @file
  23. * a64 video encoder - c64 colors in rgb
  24. */
  25. #ifndef AVCODEC_A64COLORS_H
  26. #define AVCODEC_A64COLORS_H
  27. #include <stdint.h>
  28. /* c64 palette in RGB */
  29. static const uint8_t a64_palette[16][3] = {
  30. {0x00, 0x00, 0x00},
  31. {0xff, 0xff, 0xff},
  32. {0x68, 0x37, 0x2b},
  33. {0x70, 0xa4, 0xb2},
  34. {0x6f, 0x3d, 0x86},
  35. {0x58, 0x8d, 0x43},
  36. {0x35, 0x28, 0x79},
  37. {0xb8, 0xc7, 0x6f},
  38. {0x6f, 0x4f, 0x25},
  39. {0x43, 0x39, 0x00},
  40. {0x9a, 0x67, 0x59},
  41. {0x44, 0x44, 0x44},
  42. {0x6c, 0x6c, 0x6c},
  43. {0x9a, 0xd2, 0x84},
  44. {0x6c, 0x5e, 0xb5},
  45. {0x95, 0x95, 0x95},
  46. };
  47. #endif /* AVCODEC_A64COLORS_H */