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.

76 lines
1.6KB

  1. /*
  2. * HEVC shared tables
  3. *
  4. * This file is part of Libav.
  5. *
  6. * Libav 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. * Libav 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 Libav; if not, write to the Free Software
  18. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  19. */
  20. #include <stdint.h>
  21. #include "hevc_data.h"
  22. const uint8_t ff_hevc_diag_scan4x4_x[16] = {
  23. 0, 0, 1, 0,
  24. 1, 2, 0, 1,
  25. 2, 3, 1, 2,
  26. 3, 2, 3, 3,
  27. };
  28. const uint8_t ff_hevc_diag_scan4x4_y[16] = {
  29. 0, 1, 0, 2,
  30. 1, 0, 3, 2,
  31. 1, 0, 3, 2,
  32. 1, 3, 2, 3,
  33. };
  34. const uint8_t ff_hevc_diag_scan8x8_x[64] = {
  35. 0, 0, 1, 0,
  36. 1, 2, 0, 1,
  37. 2, 3, 0, 1,
  38. 2, 3, 4, 0,
  39. 1, 2, 3, 4,
  40. 5, 0, 1, 2,
  41. 3, 4, 5, 6,
  42. 0, 1, 2, 3,
  43. 4, 5, 6, 7,
  44. 1, 2, 3, 4,
  45. 5, 6, 7, 2,
  46. 3, 4, 5, 6,
  47. 7, 3, 4, 5,
  48. 6, 7, 4, 5,
  49. 6, 7, 5, 6,
  50. 7, 6, 7, 7,
  51. };
  52. const uint8_t ff_hevc_diag_scan8x8_y[64] = {
  53. 0, 1, 0, 2,
  54. 1, 0, 3, 2,
  55. 1, 0, 4, 3,
  56. 2, 1, 0, 5,
  57. 4, 3, 2, 1,
  58. 0, 6, 5, 4,
  59. 3, 2, 1, 0,
  60. 7, 6, 5, 4,
  61. 3, 2, 1, 0,
  62. 7, 6, 5, 4,
  63. 3, 2, 1, 7,
  64. 6, 5, 4, 3,
  65. 2, 7, 6, 5,
  66. 4, 3, 7, 6,
  67. 5, 4, 7, 6,
  68. 5, 7, 6, 7,
  69. };