Browse Source

soft_3rdpart/wave511: Add LGPL-2.1 OR BSD-3-Clause license.

Add LGPL-2.1 OR BSD-3-Clause license for C&M Wave511.

Signed-off-by: Samin Guo <samin.guo@starfivetech.com>
Samin Guo 1 year ago
parent
commit
3e8aceebf9
90 changed files with 191 additions and 1 deletions
  1. 1 0
      wave511/code/config.h
  2. 1 0
      wave511/code/sample_v2/component/cnm_app.c
  3. 1 0
      wave511/code/sample_v2/component/cnm_app.h
  4. 1 0
      wave511/code/sample_v2/component/cnm_app_internal.h
  5. 1 0
      wave511/code/sample_v2/component/cnm_task.c
  6. 1 0
      wave511/code/sample_v2/component/component.c
  7. 1 0
      wave511/code/sample_v2/component/component.h
  8. 1 0
      wave511/code/sample_v2/component/component_list.h
  9. 1 0
      wave511/code/sample_v2/component/component_template.c
  10. 1 0
      wave511/code/sample_v2/component_decoder/coda9/component_coda9_dec_decoder.c
  11. 1 0
      wave511/code/sample_v2/component_decoder/component_dec_decoder.c
  12. 1 0
      wave511/code/sample_v2/component_decoder/component_dec_feeder.c
  13. 1 0
      wave511/code/sample_v2/component_decoder/component_dec_renderer.c
  14. 1 0
      wave511/code/sample_v2/component_decoder/decoder_listener.c
  15. 1 0
      wave511/code/sample_v2/component_decoder/decoder_listener.h
  16. 1 0
      wave511/code/sample_v2/component_encoder/coda9/component_coda9_enc_encoder.c
  17. 1 0
      wave511/code/sample_v2/component_encoder/component_enc_encoder.c
  18. 1 0
      wave511/code/sample_v2/component_encoder/component_enc_feeder.c
  19. 1 0
      wave511/code/sample_v2/component_encoder/component_enc_reader.c
  20. 1 0
      wave511/code/sample_v2/component_encoder/encoder_listener.c
  21. 1 0
      wave511/code/sample_v2/component_encoder/encoder_listener.h
  22. 1 0
      wave511/code/sample_v2/component_list_all.h
  23. 1 0
      wave511/code/sample_v2/component_list_decoder.h
  24. 1 0
      wave511/code/sample_v2/component_list_encoder.h
  25. 1 0
      wave511/code/sample_v2/helper/bitstream/bitstreamfeeder.c
  26. 1 0
      wave511/code/sample_v2/helper/bitstream/bitstreamreader.c
  27. 25 0
      wave511/code/sample_v2/helper/bitstream/bsfeeder_buffer_impl.c
  28. 1 0
      wave511/code/sample_v2/helper/bitstream/bsfeeder_fixedsize_impl.c
  29. 1 0
      wave511/code/sample_v2/helper/bitstream/bsfeeder_framesize_impl.c
  30. 1 0
      wave511/code/sample_v2/helper/bitstream/bsfeeder_size_plus_es_impl.c
  31. 1 0
      wave511/code/sample_v2/helper/comparator/bin_comparator_impl.c
  32. 1 0
      wave511/code/sample_v2/helper/comparator/byframe_comparator_impl.c
  33. 1 0
      wave511/code/sample_v2/helper/comparator/comparator.c
  34. 1 0
      wave511/code/sample_v2/helper/comparator/md5_comparator_impl.c
  35. 1 0
      wave511/code/sample_v2/helper/comparator/regout_comparator_impl.c
  36. 1 0
      wave511/code/sample_v2/helper/comparator/yuv_comparator_impl.c
  37. 1 0
      wave511/code/sample_v2/helper/main_helper.c
  38. 1 0
      wave511/code/sample_v2/helper/main_helper.h
  39. 1 0
      wave511/code/sample_v2/helper/misc/bw_monitor.c
  40. 1 0
      wave511/code/sample_v2/helper/misc/bw_monitor.h
  41. 1 0
      wave511/code/sample_v2/helper/misc/cfgParser.c
  42. 1 0
      wave511/code/sample_v2/helper/misc/cnm_video_helper.c
  43. 1 0
      wave511/code/sample_v2/helper/misc/container.c
  44. 1 0
      wave511/code/sample_v2/helper/misc/datastructure.c
  45. 1 0
      wave511/code/sample_v2/helper/misc/debug.c
  46. 1 0
      wave511/code/sample_v2/helper/misc/debug.h
  47. 1 0
      wave511/code/sample_v2/helper/misc/dec_h265_userdata.c
  48. 1 0
      wave511/code/sample_v2/helper/misc/getopt_long.c
  49. 1 0
      wave511/code/sample_v2/helper/misc/header_struct.h
  50. 1 0
      wave511/code/sample_v2/helper/misc/json_output.c
  51. 1 0
      wave511/code/sample_v2/helper/misc/json_output.h
  52. 1 0
      wave511/code/sample_v2/helper/misc/md5.c
  53. 1 0
      wave511/code/sample_v2/helper/misc/pbu.c
  54. 1 0
      wave511/code/sample_v2/helper/misc/pbu.h
  55. 1 0
      wave511/code/sample_v2/helper/misc/pf_monitor.c
  56. 1 0
      wave511/code/sample_v2/helper/misc/picture_meta_data.c
  57. 1 0
      wave511/code/sample_v2/helper/vpuhelper.c
  58. 1 0
      wave511/code/sample_v2/helper/yuv/yuvCfbcfeeder.c
  59. 1 0
      wave511/code/sample_v2/helper/yuv/yuvLoaderfeeder.c
  60. 1 0
      wave511/code/sample_v2/helper/yuv/yuvfeeder.c
  61. 1 0
      wave511/code/sample_v2/main_dec_test.c
  62. 1 0
      wave511/code/sample_v2/main_enc_test.c
  63. 1 0
      wave511/code/sample_v2/main_multi_instance_test.c
  64. 28 1
      wave511/code/vdi/linux/driver/vdec.c
  65. 25 0
      wave511/code/vdi/linux/driver/vmm.h
  66. 27 0
      wave511/code/vdi/linux/driver/vpu.h
  67. 1 0
      wave511/code/vdi/linux/vdi.c
  68. 1 0
      wave511/code/vdi/linux/vdi_osal.c
  69. 1 0
      wave511/code/vdi/mm.c
  70. 1 0
      wave511/code/vdi/mm.h
  71. 1 0
      wave511/code/vdi/nonos/vdi.c
  72. 1 0
      wave511/code/vdi/nonos/vdi_osal.c
  73. 1 0
      wave511/code/vdi/vdi.h
  74. 1 0
      wave511/code/vdi/vdi_osal.h
  75. 1 0
      wave511/code/vpuapi/coda9/coda9.c
  76. 1 0
      wave511/code/vpuapi/coda9/coda9.h
  77. 1 0
      wave511/code/vpuapi/coda9/coda9_regdefine.h
  78. 1 0
      wave511/code/vpuapi/coda9/coda9_vpuconfig.h
  79. 1 0
      wave511/code/vpuapi/product.c
  80. 1 0
      wave511/code/vpuapi/product.h
  81. 1 0
      wave511/code/vpuapi/vpuapi.c
  82. 1 0
      wave511/code/vpuapi/vpuapi.h
  83. 1 0
      wave511/code/vpuapi/vpuapifunc.c
  84. 1 0
      wave511/code/vpuapi/vpuapifunc.h
  85. 1 0
      wave511/code/vpuapi/vpuconfig.h
  86. 1 0
      wave511/code/vpuapi/vpuerror.h
  87. 1 0
      wave511/code/vpuapi/vputypes.h
  88. 1 0
      wave511/code/vpuapi/wave/wave5.c
  89. 1 0
      wave511/code/vpuapi/wave/wave5.h
  90. 1 0
      wave511/code/vpuapi/wave/wave5_regdefine.h

+ 1 - 0
wave511/code/config.h

@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause */
 /*
  * Copyright (c) 2019, Chips&Media
  * All rights reserved.

+ 1 - 0
wave511/code/sample_v2/component/cnm_app.c

@@ -1,3 +1,4 @@
+// SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause
 /*
  * Copyright (c) 2019, Chips&Media
  * All rights reserved.

+ 1 - 0
wave511/code/sample_v2/component/cnm_app.h

@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause  */
 /*
  * Copyright (c) 2019, Chips&Media
  * All rights reserved.

+ 1 - 0
wave511/code/sample_v2/component/cnm_app_internal.h

@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause  */
 /*
  * Copyright (c) 2019, Chips&Media
  * All rights reserved.

+ 1 - 0
wave511/code/sample_v2/component/cnm_task.c

@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause  */
 /*
  * Copyright (c) 2019, Chips&Media
  * All rights reserved.

+ 1 - 0
wave511/code/sample_v2/component/component.c

@@ -1,3 +1,4 @@
+// SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause
 /*
  * Copyright (c) 2019, Chips&Media
  * All rights reserved.

+ 1 - 0
wave511/code/sample_v2/component/component.h

@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause  */
 /*
  * Copyright (c) 2019, Chips&Media
  * All rights reserved.

+ 1 - 0
wave511/code/sample_v2/component/component_list.h

@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause  */
 /*
  * Copyright (c) 2019, Chips&Media
  * All rights reserved.

+ 1 - 0
wave511/code/sample_v2/component/component_template.c

@@ -1,3 +1,4 @@
+// SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause
 /*
  * Copyright (c) 2019, Chips&Media
  * All rights reserved.

+ 1 - 0
wave511/code/sample_v2/component_decoder/coda9/component_coda9_dec_decoder.c

@@ -1,3 +1,4 @@
+// SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause
 /*
  * Copyright (c) 2019, Chips&Media
  * All rights reserved.

+ 1 - 0
wave511/code/sample_v2/component_decoder/component_dec_decoder.c

@@ -1,3 +1,4 @@
+// SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause
 /*
  * Copyright (c) 2019, Chips&Media
  * All rights reserved.

+ 1 - 0
wave511/code/sample_v2/component_decoder/component_dec_feeder.c

@@ -1,3 +1,4 @@
+// SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause
 /*
  * Copyright (c) 2019, Chips&Media
  * All rights reserved.

+ 1 - 0
wave511/code/sample_v2/component_decoder/component_dec_renderer.c

@@ -1,3 +1,4 @@
+// SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause
 /*
  * Copyright (c) 2019, Chips&Media
  * All rights reserved.

+ 1 - 0
wave511/code/sample_v2/component_decoder/decoder_listener.c

@@ -1,3 +1,4 @@
+// SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause
 /*
  * Copyright (c) 2019, Chips&Media
  * All rights reserved.

+ 1 - 0
wave511/code/sample_v2/component_decoder/decoder_listener.h

@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause  */
 /*
  * Copyright (c) 2019, Chips&Media
  * All rights reserved.

+ 1 - 0
wave511/code/sample_v2/component_encoder/coda9/component_coda9_enc_encoder.c

@@ -1,3 +1,4 @@
+// SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause
 /*
  * Copyright (c) 2019, Chips&Media
  * All rights reserved.

+ 1 - 0
wave511/code/sample_v2/component_encoder/component_enc_encoder.c

@@ -1,3 +1,4 @@
+// SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause
 /*
  * Copyright (c) 2019, Chips&Media
  * All rights reserved.

+ 1 - 0
wave511/code/sample_v2/component_encoder/component_enc_feeder.c

@@ -1,3 +1,4 @@
+// SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause
 /*
  * Copyright (c) 2019, Chips&Media
  * All rights reserved.

+ 1 - 0
wave511/code/sample_v2/component_encoder/component_enc_reader.c

@@ -1,3 +1,4 @@
+// SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause
 /*
  * Copyright (c) 2019, Chips&Media
  * All rights reserved.

+ 1 - 0
wave511/code/sample_v2/component_encoder/encoder_listener.c

@@ -1,3 +1,4 @@
+// SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause
 /*
  * Copyright (c) 2019, Chips&Media
  * All rights reserved.

+ 1 - 0
wave511/code/sample_v2/component_encoder/encoder_listener.h

@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause  */
 /*
  * Copyright (c) 2019, Chips&Media
  * All rights reserved.

+ 1 - 0
wave511/code/sample_v2/component_list_all.h

@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause  */
 /*
  * Copyright (c) 2019, Chips&Media
  * All rights reserved.

+ 1 - 0
wave511/code/sample_v2/component_list_decoder.h

@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause  */
 /*
  * Copyright (c) 2019, Chips&Media
  * All rights reserved.

+ 1 - 0
wave511/code/sample_v2/component_list_encoder.h

@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause  */
 /*
  * Copyright (c) 2019, Chips&Media
  * All rights reserved.

+ 1 - 0
wave511/code/sample_v2/helper/bitstream/bitstreamfeeder.c

@@ -1,3 +1,4 @@
+// SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause
 /*
  * Copyright (c) 2019, Chips&Media
  * All rights reserved.

+ 1 - 0
wave511/code/sample_v2/helper/bitstream/bitstreamreader.c

@@ -1,3 +1,4 @@
+// SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause
 /*
  * Copyright (c) 2019, Chips&Media
  * All rights reserved.

+ 25 - 0
wave511/code/sample_v2/helper/bitstream/bsfeeder_buffer_impl.c

@@ -1,3 +1,28 @@
+// SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause
+/*
+ * Copyright (c) 2022, Chips&Media
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following disclaimer in the documentation
+ * and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
+ * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
 #include <stdio.h>
 #include <stdlib.h>
 #include <time.h>

+ 1 - 0
wave511/code/sample_v2/helper/bitstream/bsfeeder_fixedsize_impl.c

@@ -1,3 +1,4 @@
+// SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause
 /*
  * Copyright (c) 2019, Chips&Media
  * All rights reserved.

+ 1 - 0
wave511/code/sample_v2/helper/bitstream/bsfeeder_framesize_impl.c

@@ -1,3 +1,4 @@
+// SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause
 /*
  * Copyright (c) 2019, Chips&Media
  * All rights reserved.

+ 1 - 0
wave511/code/sample_v2/helper/bitstream/bsfeeder_size_plus_es_impl.c

@@ -1,3 +1,4 @@
+// SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause
 /*
  * Copyright (c) 2019, Chips&Media
  * All rights reserved.

+ 1 - 0
wave511/code/sample_v2/helper/comparator/bin_comparator_impl.c

@@ -1,3 +1,4 @@
+// SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause
 /*
  * Copyright (c) 2019, Chips&Media
  * All rights reserved.

+ 1 - 0
wave511/code/sample_v2/helper/comparator/byframe_comparator_impl.c

@@ -1,3 +1,4 @@
+// SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause
 /*
  * Copyright (c) 2019, Chips&Media
  * All rights reserved.

+ 1 - 0
wave511/code/sample_v2/helper/comparator/comparator.c

@@ -1,3 +1,4 @@
+// SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause
 /*
  * Copyright (c) 2019, Chips&Media
  * All rights reserved.

+ 1 - 0
wave511/code/sample_v2/helper/comparator/md5_comparator_impl.c

@@ -1,3 +1,4 @@
+// SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause
 /*
  * Copyright (c) 2019, Chips&Media
  * All rights reserved.

+ 1 - 0
wave511/code/sample_v2/helper/comparator/regout_comparator_impl.c

@@ -1,3 +1,4 @@
+// SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause
 /*
  * Copyright (c) 2019, Chips&Media
  * All rights reserved.

+ 1 - 0
wave511/code/sample_v2/helper/comparator/yuv_comparator_impl.c

@@ -1,3 +1,4 @@
+// SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause
 /*
  * Copyright (c) 2019, Chips&Media
  * All rights reserved.

+ 1 - 0
wave511/code/sample_v2/helper/main_helper.c

@@ -1,3 +1,4 @@
+// SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause
 /*
  * Copyright (c) 2019, Chips&Media
  * All rights reserved.

+ 1 - 0
wave511/code/sample_v2/helper/main_helper.h

@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause  */
 /*
  * Copyright (c) 2019, Chips&Media
  * All rights reserved.

+ 1 - 0
wave511/code/sample_v2/helper/misc/bw_monitor.c

@@ -1,3 +1,4 @@
+// SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause
 /*
  * Copyright (c) 2019, Chips&Media
  * All rights reserved.

+ 1 - 0
wave511/code/sample_v2/helper/misc/bw_monitor.h

@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause  */
 /*
  * Copyright (c) 2019, Chips&Media
  * All rights reserved.

+ 1 - 0
wave511/code/sample_v2/helper/misc/cfgParser.c

@@ -1,3 +1,4 @@
+// SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause
 /*
  * Copyright (c) 2019, Chips&Media
  * All rights reserved.

+ 1 - 0
wave511/code/sample_v2/helper/misc/cnm_video_helper.c

@@ -1,3 +1,4 @@
+// SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause
 /*
  * Copyright (c) 2019, Chips&Media
  * All rights reserved.

+ 1 - 0
wave511/code/sample_v2/helper/misc/container.c

@@ -1,3 +1,4 @@
+// SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause
 /*
  * Copyright (c) 2019, Chips&Media
  * All rights reserved.

+ 1 - 0
wave511/code/sample_v2/helper/misc/datastructure.c

@@ -1,3 +1,4 @@
+// SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause
 /*
  * Copyright (c) 2019, Chips&Media
  * All rights reserved.

+ 1 - 0
wave511/code/sample_v2/helper/misc/debug.c

@@ -1,3 +1,4 @@
+// SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause
 /*
  * Copyright (c) 2019, Chips&Media
  * All rights reserved.

+ 1 - 0
wave511/code/sample_v2/helper/misc/debug.h

@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause  */
 /*
  * Copyright (c) 2019, Chips&Media
  * All rights reserved.

+ 1 - 0
wave511/code/sample_v2/helper/misc/dec_h265_userdata.c

@@ -1,3 +1,4 @@
+// SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause
 /*
  * Copyright (c) 2019, Chips&Media
  * All rights reserved.

+ 1 - 0
wave511/code/sample_v2/helper/misc/getopt_long.c

@@ -1,3 +1,4 @@
+// SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause
 /*
  * Copyright (c) 2019, Chips&Media
  * All rights reserved.

+ 1 - 0
wave511/code/sample_v2/helper/misc/header_struct.h

@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause  */
 /*
  * Copyright (c) 2019, Chips&Media
  * All rights reserved.

+ 1 - 0
wave511/code/sample_v2/helper/misc/json_output.c

@@ -1,3 +1,4 @@
+// SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause
 /*
  * Copyright (c) 2019, Chips&Media
  * All rights reserved.

+ 1 - 0
wave511/code/sample_v2/helper/misc/json_output.h

@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause  */
 /*
  * Copyright (c) 2019, Chips&Media
  * All rights reserved.

+ 1 - 0
wave511/code/sample_v2/helper/misc/md5.c

@@ -1,3 +1,4 @@
+// SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause
 /*
  * Copyright (c) 2019, Chips&Media
  * All rights reserved.

+ 1 - 0
wave511/code/sample_v2/helper/misc/pbu.c

@@ -1,3 +1,4 @@
+// SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause
 /*
  * Copyright (c) 2019, Chips&Media
  * All rights reserved.

+ 1 - 0
wave511/code/sample_v2/helper/misc/pbu.h

@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause  */
 /*
  * Copyright (c) 2019, Chips&Media
  * All rights reserved.

+ 1 - 0
wave511/code/sample_v2/helper/misc/pf_monitor.c

@@ -1,3 +1,4 @@
+// SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause
 /*
  * Copyright (c) 2019, Chips&Media
  * All rights reserved.

+ 1 - 0
wave511/code/sample_v2/helper/misc/picture_meta_data.c

@@ -1,3 +1,4 @@
+// SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause
 /*
  * Copyright (c) 2019, Chips&Media
  * All rights reserved.

+ 1 - 0
wave511/code/sample_v2/helper/vpuhelper.c

@@ -1,3 +1,4 @@
+// SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause
 /*
  * Copyright (c) 2019, Chips&Media
  * All rights reserved.

+ 1 - 0
wave511/code/sample_v2/helper/yuv/yuvCfbcfeeder.c

@@ -1,3 +1,4 @@
+// SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause
 /*
  * Copyright (c) 2019, Chips&Media
  * All rights reserved.

+ 1 - 0
wave511/code/sample_v2/helper/yuv/yuvLoaderfeeder.c

@@ -1,3 +1,4 @@
+// SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause
 /*
  * Copyright (c) 2019, Chips&Media
  * All rights reserved.

+ 1 - 0
wave511/code/sample_v2/helper/yuv/yuvfeeder.c

@@ -1,3 +1,4 @@
+// SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause
 /*
  * Copyright (c) 2019, Chips&Media
  * All rights reserved.

+ 1 - 0
wave511/code/sample_v2/main_dec_test.c

@@ -1,3 +1,4 @@
+// SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause
 /*
  * Copyright (c) 2019, Chips&Media
  * All rights reserved.

+ 1 - 0
wave511/code/sample_v2/main_enc_test.c

@@ -1,3 +1,4 @@
+// SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause
 /*
  * Copyright (c) 2019, Chips&Media
  * All rights reserved.

+ 1 - 0
wave511/code/sample_v2/main_multi_instance_test.c

@@ -1,3 +1,4 @@
+// SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause
 /*
  * Copyright (c) 2019, Chips&Media
  * All rights reserved.

+ 28 - 1
wave511/code/vdi/linux/driver/vdec.c

@@ -1,3 +1,30 @@
+// SPDX-License-Identifier:  GPL-2.0+ OR BSD-3-Clause
+/*
+ * Copyright (c) 2022, Chips&Media
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following disclaimer in the documentation
+ * and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
+ * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ * Copyright (C) 2022 StarFive Technology Co., Ltd.
+*/
 #include <linux/kernel.h>
 #include <linux/mm.h>
 #include <linux/interrupt.h>
@@ -2083,7 +2110,7 @@ static void __exit vpu_exit(void)
 
 MODULE_AUTHOR("A customer using C&M VPU, Inc.");
 MODULE_DESCRIPTION("VPU linux driver");
-MODULE_LICENSE("GPL");
+MODULE_LICENSE("Dual BSD/GPL");
 
 module_init(vpu_init);
 module_exit(vpu_exit);

+ 25 - 0
wave511/code/vdi/linux/driver/vmm.h

@@ -1,3 +1,28 @@
+/* SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause  */
+/*
+ * Copyright (c) 2022, Chips&Media
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following disclaimer in the documentation
+ * and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
+ * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
 #ifndef __CNM_VIDEO_MEMORY_MANAGEMENT_H__
 #define __CNM_VIDEO_MEMORY_MANAGEMENT_H__
 

+ 27 - 0
wave511/code/vdi/linux/driver/vpu.h

@@ -1,3 +1,30 @@
+/* SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause  */
+/*
+ * Copyright (c) 2022, Chips&Media
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following disclaimer in the documentation
+ * and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
+ * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ * Copyright (C) 2022 StarFive Technology Co., Ltd.
+*/
 #ifndef __VPU_DRV_H__
 #define __VPU_DRV_H__
 

+ 1 - 0
wave511/code/vdi/linux/vdi.c

@@ -1,3 +1,4 @@
+// SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause
 /*
  * Copyright (c) 2019, Chips&Media
  * All rights reserved.

+ 1 - 0
wave511/code/vdi/linux/vdi_osal.c

@@ -1,3 +1,4 @@
+// SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause
 /*
  * Copyright (c) 2019, Chips&Media
  * All rights reserved.

+ 1 - 0
wave511/code/vdi/mm.c

@@ -1,3 +1,4 @@
+// SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause
 /*
  * Copyright (c) 2019, Chips&Media
  * All rights reserved.

+ 1 - 0
wave511/code/vdi/mm.h

@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause  */
 /*
  * Copyright (c) 2019, Chips&Media
  * All rights reserved.

+ 1 - 0
wave511/code/vdi/nonos/vdi.c

@@ -1,3 +1,4 @@
+// SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause
 /*
  * Copyright (c) 2019, Chips&Media
  * All rights reserved.

+ 1 - 0
wave511/code/vdi/nonos/vdi_osal.c

@@ -1,3 +1,4 @@
+// SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause
 /*
  * Copyright (c) 2019, Chips&Media
  * All rights reserved.

+ 1 - 0
wave511/code/vdi/vdi.h

@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause  */
 /*
  * Copyright (c) 2019, Chips&Media
  * All rights reserved.

+ 1 - 0
wave511/code/vdi/vdi_osal.h

@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause  */
 /*
  * Copyright (c) 2019, Chips&Media
  * All rights reserved.

+ 1 - 0
wave511/code/vpuapi/coda9/coda9.c

@@ -1,3 +1,4 @@
+//SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause
 /*
  * Copyright (c) 2019, Chips&Media
  * All rights reserved.

+ 1 - 0
wave511/code/vpuapi/coda9/coda9.h

@@ -1,3 +1,4 @@
+//SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause
 /*
  * Copyright (c) 2019, Chips&Media
  * All rights reserved.

+ 1 - 0
wave511/code/vpuapi/coda9/coda9_regdefine.h

@@ -1,3 +1,4 @@
+//SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause
 /*
  * Copyright (c) 2019, Chips&Media
  * All rights reserved.

+ 1 - 0
wave511/code/vpuapi/coda9/coda9_vpuconfig.h

@@ -1,3 +1,4 @@
+//SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause
 /*
  * Copyright (c) 2019, Chips&Media
  * All rights reserved.

+ 1 - 0
wave511/code/vpuapi/product.c

@@ -1,3 +1,4 @@
+//SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause
 /*
  * Copyright (c) 2019, Chips&Media
  * All rights reserved.

+ 1 - 0
wave511/code/vpuapi/product.h

@@ -1,3 +1,4 @@
+//SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause
 /*
  * Copyright (c) 2019, Chips&Media
  * All rights reserved.

+ 1 - 0
wave511/code/vpuapi/vpuapi.c

@@ -1,3 +1,4 @@
+//SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause
 /*
  * Copyright (c) 2019, Chips&Media
  * All rights reserved.

+ 1 - 0
wave511/code/vpuapi/vpuapi.h

@@ -1,3 +1,4 @@
+//SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause
 /*
  * Copyright (c) 2019, Chips&Media
  * All rights reserved.

+ 1 - 0
wave511/code/vpuapi/vpuapifunc.c

@@ -1,3 +1,4 @@
+//SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause
 /*
  * Copyright (c) 2019, Chips&Media
  * All rights reserved.

+ 1 - 0
wave511/code/vpuapi/vpuapifunc.h

@@ -1,3 +1,4 @@
+//SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause
 /*
  * Copyright (c) 2019, Chips&Media
  * All rights reserved.

+ 1 - 0
wave511/code/vpuapi/vpuconfig.h

@@ -1,3 +1,4 @@
+//SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause
 /*
  * Copyright (c) 2019, Chips&Media
  * All rights reserved.

+ 1 - 0
wave511/code/vpuapi/vpuerror.h

@@ -1,3 +1,4 @@
+//SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause
 /*
  * Copyright (c) 2019, Chips&Media
  * All rights reserved.

+ 1 - 0
wave511/code/vpuapi/vputypes.h

@@ -1,3 +1,4 @@
+//SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause
 /*
  * Copyright (c) 2019, Chips&Media
  * All rights reserved.

+ 1 - 0
wave511/code/vpuapi/wave/wave5.c

@@ -1,3 +1,4 @@
+//SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause
 /*
  * Copyright (c) 2019, Chips&Media
  * All rights reserved.

+ 1 - 0
wave511/code/vpuapi/wave/wave5.h

@@ -1,3 +1,4 @@
+//SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause
 /*
  * Copyright (c) 2019, Chips&Media
  * All rights reserved.

+ 1 - 0
wave511/code/vpuapi/wave/wave5_regdefine.h

@@ -1,3 +1,4 @@
+//SPDX-License-Identifier:  LGPL-2.1 OR BSD-3-Clause
 /*
  * Copyright (c) 2019, Chips&Media
  * All rights reserved.