vidstabcfg.h 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. /*------------------------------------------------------------------------------
  2. -- --
  3. -- This software is confidential and proprietary and may be used --
  4. -- only as expressly authorized by a licensing agreement from --
  5. -- --
  6. -- Hantro Products Oy. --
  7. -- --
  8. -- (C) COPYRIGHT 2006 HANTRO PRODUCTS OY --
  9. -- ALL RIGHTS RESERVED --
  10. -- --
  11. -- The entire notice above must be reproduced --
  12. -- on all copies and should not be removed. --
  13. -- --
  14. --------------------------------------------------------------------------------
  15. --
  16. -- Description : Camera stabilization standalone configuration
  17. --
  18. ------------------------------------------------------------------------------*/
  19. #ifndef __VIDSTBCFG_H__
  20. #define __VIDSTBCFG_H__
  21. #include "basetype.h"
  22. /* Here is defined the default values for the encoder build-time configuration.
  23. * You can override these settings by defining the values as compiler flags
  24. * in the Makefile.
  25. */
  26. /* The input image's 32-bit swap: 0 or 1
  27. * This defines the 32-bit endianess of the ASIC input YUV
  28. * 1 = 64-bit endianess */
  29. #ifndef VS8290_INPUT_SWAP_32_YUV
  30. #define VS8290_INPUT_SWAP_32_YUV 0
  31. #endif
  32. /* The input image's 16-bit swap: 0 or 1
  33. * This defines the 16-bit endianess of the ASIC input YUV
  34. */
  35. #ifndef VS8290_INPUT_SWAP_16_YUV
  36. #define VS8290_INPUT_SWAP_16_YUV 1
  37. #endif
  38. /* The input image's 8-bit swap: 0 or 1
  39. * This defines the byte endianess of the ASIC input YUV
  40. */
  41. #ifndef VS8290_INPUT_SWAP_8_YUV
  42. #define VS8290_INPUT_SWAP_8_YUV 1
  43. #endif
  44. /* The input image's 32-bit swap: 0 or 1
  45. * This defines the 32-bit endianess of the ASIC input RGB16
  46. * 1 = 64-bit endianess */
  47. #ifndef VS8290_INPUT_SWAP_32_RGB16
  48. #define VS8290_INPUT_SWAP_32_RGB16 0
  49. #endif
  50. /* The input image's 16-bit swap: 0 or 1
  51. * This defines the 16-bit endianess of the ASIC input RGB16
  52. */
  53. #ifndef VS8290_INPUT_SWAP_16_RGB16
  54. #define VS8290_INPUT_SWAP_16_RGB16 1
  55. #endif
  56. /* The input image's byte swap: 0 or 1
  57. * This defines the byte endianess of the ASIC input RGB16
  58. */
  59. #ifndef VS8290_INPUT_SWAP_8_RGB16
  60. #define VS8290_INPUT_SWAP_8_RGB16 0
  61. #endif
  62. /* The input image's 32-bit swap: 0 or 1
  63. * This defines the 32-bit endianess of the ASIC input RGB32
  64. * 1 = 64-bit endianess */
  65. #ifndef VS8290_INPUT_SWAP_32_RGB32
  66. #define VS8290_INPUT_SWAP_32_RGB32 0
  67. #endif
  68. /* The input image's 16-bit swap: 0 or 1
  69. * This defines the 16-bit endianess of the ASIC input RGB32
  70. */
  71. #ifndef VS8290_INPUT_SWAP_16_RGB32
  72. #define VS8290_INPUT_SWAP_16_RGB32 0
  73. #endif
  74. /* The input image's byte swap: 0 or 1
  75. * This defines the byte endianess of the ASIC input RGB32
  76. */
  77. #ifndef VS8290_INPUT_SWAP_8_RGB32
  78. #define VS8290_INPUT_SWAP_8_RGB32 0
  79. #endif
  80. /* ASIC interrupt enable.
  81. * This enables/disables the ASIC to generate interrupts
  82. * If this is '1', the EWL must poll the registers to find out
  83. * when the HW is ready.
  84. */
  85. #ifndef VS8290_IRQ_DISABLE
  86. #define VS8290_IRQ_DISABLE 0
  87. #endif
  88. /* ASIC bus interface configuration values */
  89. /* DO NOT CHANGE IF NOT FAMILIAR WITH THE CONCEPTS INVOLVED */
  90. /* Burst length. This sets the maximum length of a single ASIC burst in addresses.
  91. * Allowed values are:
  92. * AHB {0, 4, 8, 16} ( 0 means incremental burst type INCR)
  93. * OCP [1,63]
  94. * AXI [1,16]
  95. */
  96. #ifndef VS8290_BURST_LENGTH
  97. #define VS8290_BURST_LENGTH 16
  98. #endif
  99. /* INCR type burst mode */
  100. /* 0 allowe INCR type bursts */
  101. /* 1 disable INCR type and use SINGLE instead */
  102. #ifndef VS8290_BURST_INCR_TYPE_ENABLED
  103. #define VS8290_BURST_INCR_TYPE_ENABLED 0
  104. #endif
  105. /* Data discard mode. When enabled read bursts of length 2 or 3 are converted to */
  106. /* BURST4 and useless data is discarded. Otherwise use INCR type for that kind */
  107. /* of read bursts */
  108. /* 0 disable data discard */
  109. /* 1 enable data discard */
  110. #ifndef VS8290_BURST_DATA_DISCARD_ENABLED
  111. #define VS8290_BURST_DATA_DISCARD_ENABLED 0
  112. #endif
  113. /* AXI bus read and write ID values used by HW. 0 - 255 */
  114. #ifndef VS8290_AXI_READ_ID
  115. #define VS8290_AXI_READ_ID 0
  116. #endif
  117. #ifndef VS8290_AXI_WRITE_ID
  118. #define VS8290_AXI_WRITE_ID 0
  119. #endif
  120. /* End of "ASIC bus interface configuration values" */
  121. /* ASIC internal clock gating control. 0 - disabled, 1 - enabled */
  122. #ifndef VS8290_ASIC_CLOCK_GATING_ENABLED
  123. #define VS8290_ASIC_CLOCK_GATING_ENABLED 0
  124. #endif
  125. #endif