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.

63 lines
2.3KB

  1. /*
  2. * Chinese AVS video (AVS1-P2, JiZhun profile) decoder.
  3. * Copyright (c) 2006 Stefan Gehrer <stefan.gehrer@gmx.de>
  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. #include "cavs.h"
  22. const uint8_t ff_cavs_partition_flags[30] = {
  23. 0, //I_8X8
  24. 0, //P_SKIP
  25. 0, //P_16X16
  26. SPLITH, //P_16X8
  27. SPLITV, //P_8X16
  28. SPLITH|SPLITV, //P_8X8
  29. SPLITH|SPLITV, //B_SKIP
  30. SPLITH|SPLITV, //B_DIRECT
  31. 0, //B_FWD_16X16
  32. 0, //B_BWD_16X16
  33. 0, //B_SYM_16X16
  34. FWD0|FWD1 |SPLITH,
  35. FWD0|FWD1 |SPLITV,
  36. BWD0|BWD1 |SPLITH,
  37. BWD0|BWD1 |SPLITV,
  38. FWD0|BWD1 |SPLITH,
  39. FWD0|BWD1 |SPLITV,
  40. BWD0|FWD1 |SPLITH,
  41. BWD0|FWD1 |SPLITV,
  42. FWD0|FWD1 |SYM1|SPLITH,
  43. FWD0|FWD1 |SYM1 |SPLITV,
  44. BWD0|FWD1 |SYM1|SPLITH,
  45. BWD0|FWD1 |SYM1 |SPLITV,
  46. FWD0|FWD1|SYM0 |SPLITH,
  47. FWD0|FWD1|SYM0 |SPLITV,
  48. FWD0|BWD1|SYM0 |SPLITH,
  49. FWD0|BWD1|SYM0 |SPLITV,
  50. FWD0|FWD1|SYM0|SYM1|SPLITH,
  51. FWD0|FWD1|SYM0|SYM1 |SPLITV,
  52. SPLITH|SPLITV, //B_8X8 = 29
  53. };
  54. /** mark block as "no prediction from this direction"
  55. e.g. forward motion vector in BWD partition */
  56. const cavs_vector ff_cavs_dir_mv = {0,0,1,REF_DIR};
  57. /** mark block as using intra prediction */
  58. const cavs_vector ff_cavs_intra_mv = {0,0,1,REF_INTRA};