123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122 |
- From d6e19f51f0ac48898891abd124fcfbbd0131a209 Mon Sep 17 00:00:00 2001
- From: Rebecca Chang Swee Fun <rebecca.chang@starfivetech.com>
- Date: Wed, 22 Jun 2022 08:41:24 +0000
- Subject: [PATCH 1/3] resolve missing c libraries
- Signed-off-by: Rebecca Chang Swee Fun <rebecca.chang@starfivetech.com>
- ---
- audio/utility/channel_mixer.cc | 2 ++
- common_video/h264/sps_parser.h | 1 +
- modules/include/module_common_types_public.h | 1 +
- modules/video_coding/utility/ivf_file_reader.cc | 1 +
- 4 files changed, 5 insertions(+)
- diff --git a/audio/utility/channel_mixer.cc b/audio/utility/channel_mixer.cc
- index 0f1e663873..8e66f90498 100644
- --- a/audio/utility/channel_mixer.cc
- +++ b/audio/utility/channel_mixer.cc
- @@ -8,6 +8,8 @@
- * be found in the AUTHORS file in the root of the source tree.
- */
-
- +#include <cstring>
- +
- #include "audio/utility/channel_mixer.h"
-
- #include "audio/utility/channel_mixing_matrix.h"
- diff --git a/common_video/h264/sps_parser.h b/common_video/h264/sps_parser.h
- index da328b48b0..719da297a9 100644
- --- a/common_video/h264/sps_parser.h
- +++ b/common_video/h264/sps_parser.h
- @@ -11,6 +11,7 @@
- #ifndef COMMON_VIDEO_H264_SPS_PARSER_H_
- #define COMMON_VIDEO_H264_SPS_PARSER_H_
-
- +#include <cstdint>
- #include "absl/types/optional.h"
- #include "rtc_base/bitstream_reader.h"
-
- diff --git a/modules/include/module_common_types_public.h b/modules/include/module_common_types_public.h
- index 345e45ce12..8338a51462 100644
- --- a/modules/include/module_common_types_public.h
- +++ b/modules/include/module_common_types_public.h
- @@ -11,6 +11,7 @@
- #ifndef MODULES_INCLUDE_MODULE_COMMON_TYPES_PUBLIC_H_
- #define MODULES_INCLUDE_MODULE_COMMON_TYPES_PUBLIC_H_
-
- +#include <cstdint>
- #include <limits>
-
- #include "absl/types/optional.h"
- diff --git a/modules/video_coding/utility/ivf_file_reader.cc b/modules/video_coding/utility/ivf_file_reader.cc
- index 85d1fa00d7..262b141b93 100644
- --- a/modules/video_coding/utility/ivf_file_reader.cc
- +++ b/modules/video_coding/utility/ivf_file_reader.cc
- @@ -10,6 +10,7 @@
-
- #include "modules/video_coding/utility/ivf_file_reader.h"
-
- +#include <cstring>
- #include <string>
- #include <vector>
-
- --
- 2.30.2
- From ef765f9ab9f52854eeb0233afa2405f9e5cee8a2 Mon Sep 17 00:00:00 2001
- From: Rebecca Chang Swee Fun <rebecca.chang@starfivetech.com>
- Date: Wed, 22 Jun 2022 08:41:57 +0000
- Subject: [PATCH 2/3] add riscv64 arch definition
- Signed-off-by: Rebecca Chang Swee Fun <rebecca.chang@starfivetech.com>
- ---
- rtc_base/system/arch.h | 2 ++
- 1 file changed, 2 insertions(+)
- diff --git a/rtc_base/system/arch.h b/rtc_base/system/arch.h
- index be2367b85f..dfff855bae 100644
- --- a/rtc_base/system/arch.h
- +++ b/rtc_base/system/arch.h
- @@ -68,9 +68,11 @@
- #endif
- #define WEBRTC_ARCH_BIG_ENDIAN
- #elif defined(__riscv) && __riscv_xlen == 64
- +#define WEBRTC_ARCH_RISCV_FAMILY
- #define WEBRTC_ARCH_64_BITS
- #define WEBRTC_ARCH_LITTLE_ENDIAN
- #elif defined(__riscv) && __riscv_xlen == 32
- +#define WEBRTC_ARCH_RISCV_FAMILY
- #define WEBRTC_ARCH_32_BITS
- #define WEBRTC_ARCH_LITTLE_ENDIAN
- #elif defined(__pnacl__)
- --
- 2.30.2
- From f66ad2fa982e2f8ed53cf552b3e3313768608663 Mon Sep 17 00:00:00 2001
- From: Rebecca Chang <rebecca.chang@starfivetech.com>
- Date: Thu, 7 Jul 2022 05:26:11 -0400
- Subject: [PATCH 3/3] define riscv arch for desktop_capture module
- Signed-off-by: Rebecca Chang Swee Fun <rebecca.chang@starfivetech.com>
- ---
- modules/desktop_capture/differ_block.cc | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
- diff --git a/modules/desktop_capture/differ_block.cc b/modules/desktop_capture/differ_block.cc
- index 4f0c5430c9..a89fcc9753 100644
- --- a/modules/desktop_capture/differ_block.cc
- +++ b/modules/desktop_capture/differ_block.cc
- @@ -30,7 +30,7 @@ bool VectorDifference(const uint8_t* image1, const uint8_t* image2) {
- static bool (*diff_proc)(const uint8_t*, const uint8_t*) = nullptr;
-
- if (!diff_proc) {
- -#if defined(WEBRTC_ARCH_ARM_FAMILY) || defined(WEBRTC_ARCH_MIPS_FAMILY)
- +#if defined(WEBRTC_ARCH_ARM_FAMILY) || defined(WEBRTC_ARCH_MIPS_FAMILY) || defined(WEBRTC_ARCH_RISCV_FAMILY)
- // For ARM and MIPS processors, always use C version.
- // TODO(hclam): Implement a NEON version.
- diff_proc = &VectorDifference_C;
- --
- 2.30.2
|