Loading scripts/prepare_instrumentation.sh +24 −1 Original line number Diff line number Diff line Loading @@ -30,6 +30,24 @@ # the United Nations Convention on Contracts on the International Sales of Goods. # function usage { echo echo "Usage:" echo " prepare_instrumentation.sh [MODE]" echo echo " MODE - sr_off (default) or sr_on" exit } if [ -z "$1" ] || [ "$1" == "sr_off" ]; then INCLUDE_SPLIT=0 elif [ "$1" == "sr_on" ]; then INCLUDE_SPLIT=1 else usage fi system=`uname -s` if [[ ($system == "Linux") && (`uname -a` =~ (microsoft|Microsoft|wsl|WSL) ) ]]; then system="Linux" Loading Loading @@ -68,6 +86,9 @@ cp -R ../apps $targetdir cp -R ../Makefile $targetdir cp -R ../CMakeLists.txt $targetdir cp -R ../Workspace_msvc $targetdir if [ $INCLUDE_SPLIT -eq 0 ]; then strip_split_rendering.sh $targetdir fi # back up #ifdef-list rm -f $ifdef_list Loading Loading @@ -106,7 +127,9 @@ find $targetdir -name "*.[ch]" -exec sed -i.bak -e "s/\(0x[0-9a-fA-F]*\)UL/\(\(u # run wmc_tool "tools/$system/wmc_tool" -m "$targetdir/apps/encoder.c" "$targetdir/lib_enc/*.c" "$targetdir/lib_com/*.c" >> /dev/null "tools/$system/wmc_tool" -m "$targetdir/apps/decoder.c" "$targetdir/lib_dec/*.c" "$targetdir/lib_rend/*.c" >> /dev/null if [ $INCLUDE_SPLIT -eq 1 ]; then "tools/$system/wmc_tool" -m "$targetdir/apps/renderer.c" "$targetdir/lib_rend/*.c" "$targetdir/lc3plus/*.c" "$targetdir/lc3plus/fft/*.c" >> /dev/null fi # automatically enable #define WMOPS in options.h sed -i.bak -e "s/\/\*[[:space:]]*\(#define[[:space:]]*WMOPS\)[[:space:]]*\*\//\1/g" $targetdir/lib_com/options.h Loading scripts/strip_split_rendering.sh 0 → 100644 +93 −0 Original line number Diff line number Diff line #!/bin/bash # # (C) 2022-2023 IVAS codec Public Collaboration with portions copyright Dolby International AB, Ericsson AB, # Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e.V., Huawei Technologies Co. LTD., # Koninklijke Philips N.V., Nippon Telegraph and Telephone Corporation, Nokia Technologies Oy, Orange, # Panasonic Holdings Corporation, Qualcomm Technologies, Inc., VoiceAge Corporation, and other # contributors to this repository. All Rights Reserved. # # This software is protected by copyright law and by international treaties. # The IVAS codec Public Collaboration consisting of Dolby International AB, Ericsson AB, # Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e.V., Huawei Technologies Co. LTD., # Koninklijke Philips N.V., Nippon Telegraph and Telephone Corporation, Nokia Technologies Oy, Orange, # Panasonic Holdings Corporation, Qualcomm Technologies, Inc., VoiceAge Corporation, and other # contributors to this repository retain full ownership rights in their respective contributions in # the software. This notice grants no license of any kind, including but not limited to patent # license, nor is any license granted by implication, estoppel or otherwise. # # Contributors are required to enter into the IVAS codec Public Collaboration agreement before making # contributions. # # This software is provided "AS IS", without any express or implied warranties. The software is in the # development stage. It is intended exclusively for experts who have experience with such software and # solely for the purpose of inspection. All implied warranties of non-infringement, merchantability # and fitness for a particular purpose are hereby disclaimed and excluded. # # Any dispute, controversy or claim arising under or in relation to providing this software shall be # submitted to and settled by the final, binding jurisdiction of the courts of Munich, Germany in # accordance with the laws of the Federal Republic of Germany excluding its conflict of law rules and # the United Nations Convention on Contracts on the International Sales of Goods. # OUTDIR=$1 # remove complete lc3plus folder rm -R $OUTDIR/lc3plus # remove other split rendering files declare -a sr_files_rend=( "lib_rend/ivas_CQMFDecoder.c" "lib_rend/ivas_CQMFDecoder.h" "lib_rend/ivas_CQMFEncoder.c" "lib_rend/ivas_CQMFEncoder.h" "lib_rend/ivas_MSPred.c" "lib_rend/ivas_MSPred.h" "lib_rend/ivas_NoiseGen.c" "lib_rend/ivas_NoiseGen.h" "lib_rend/ivas_PerceptualModel.c" "lib_rend/ivas_PerceptualModel.h" "lib_rend/ivas_PredDecoder.c" "lib_rend/ivas_PredDecoder.h" "lib_rend/ivas_PredEncoder.c" "lib_rend/ivas_PredEncoder.h" "lib_rend/ivas_PredTables.h" "lib_rend/ivas_RMSEnvGrouping.c" "lib_rend/ivas_RMSEnvGrouping.h" "lib_rend/ivas_cldfb_codec_bitstream.c" "lib_rend/ivas_cldfb_codec_bitstream.h" "lib_rend/ivas_lc3plus_common.c" "lib_rend/ivas_lc3plus_common.h" "lib_rend/ivas_lc3plus_dec.c" "lib_rend/ivas_lc3plus_dec.h" "lib_rend/ivas_lc3plus_enc.c" "lib_rend/ivas_lc3plus_enc.h" "lib_rend/ivas_lcld_tables.c" "lib_rend/ivas_lcld_tables.h" "lib_rend/ivas_splitRend_lcld_dec.c" "lib_rend/ivas_splitRend_lcld_enc.c" "lib_rend/ivas_splitRendererPLC.c" "lib_rend/ivas_splitRendererPost.c" "lib_rend/ivas_splitRendererPre.c" "lib_rend/ivas_splitRenderer_utils.c" ) for file in ${sr_files_rend[@]}; do rm $OUTDIR/$file file_windows=${file//\//'\\'} sed -i.bak -e "/${file_windows}/d" ${OUTDIR}/Workspace_msvc/lib_rend.vcxproj done declare -a sr_files_util=( "lib_util/split_rend_bfi_file_reader.c" "lib_util/split_rend_bfi_file_reader.h" "lib_util/split_render_file_read_write.c" "lib_util/split_render_file_read_write.h" ) for file in ${sr_files_util[@]}; do rm $OUTDIR/$file file_windows=${file//\//'\\'} sed -i.bak -e "/${file_windows}/d" ${OUTDIR}/Workspace_msvc/lib_util.vcxproj done No newline at end of file Loading
scripts/prepare_instrumentation.sh +24 −1 Original line number Diff line number Diff line Loading @@ -30,6 +30,24 @@ # the United Nations Convention on Contracts on the International Sales of Goods. # function usage { echo echo "Usage:" echo " prepare_instrumentation.sh [MODE]" echo echo " MODE - sr_off (default) or sr_on" exit } if [ -z "$1" ] || [ "$1" == "sr_off" ]; then INCLUDE_SPLIT=0 elif [ "$1" == "sr_on" ]; then INCLUDE_SPLIT=1 else usage fi system=`uname -s` if [[ ($system == "Linux") && (`uname -a` =~ (microsoft|Microsoft|wsl|WSL) ) ]]; then system="Linux" Loading Loading @@ -68,6 +86,9 @@ cp -R ../apps $targetdir cp -R ../Makefile $targetdir cp -R ../CMakeLists.txt $targetdir cp -R ../Workspace_msvc $targetdir if [ $INCLUDE_SPLIT -eq 0 ]; then strip_split_rendering.sh $targetdir fi # back up #ifdef-list rm -f $ifdef_list Loading Loading @@ -106,7 +127,9 @@ find $targetdir -name "*.[ch]" -exec sed -i.bak -e "s/\(0x[0-9a-fA-F]*\)UL/\(\(u # run wmc_tool "tools/$system/wmc_tool" -m "$targetdir/apps/encoder.c" "$targetdir/lib_enc/*.c" "$targetdir/lib_com/*.c" >> /dev/null "tools/$system/wmc_tool" -m "$targetdir/apps/decoder.c" "$targetdir/lib_dec/*.c" "$targetdir/lib_rend/*.c" >> /dev/null if [ $INCLUDE_SPLIT -eq 1 ]; then "tools/$system/wmc_tool" -m "$targetdir/apps/renderer.c" "$targetdir/lib_rend/*.c" "$targetdir/lc3plus/*.c" "$targetdir/lc3plus/fft/*.c" >> /dev/null fi # automatically enable #define WMOPS in options.h sed -i.bak -e "s/\/\*[[:space:]]*\(#define[[:space:]]*WMOPS\)[[:space:]]*\*\//\1/g" $targetdir/lib_com/options.h Loading
scripts/strip_split_rendering.sh 0 → 100644 +93 −0 Original line number Diff line number Diff line #!/bin/bash # # (C) 2022-2023 IVAS codec Public Collaboration with portions copyright Dolby International AB, Ericsson AB, # Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e.V., Huawei Technologies Co. LTD., # Koninklijke Philips N.V., Nippon Telegraph and Telephone Corporation, Nokia Technologies Oy, Orange, # Panasonic Holdings Corporation, Qualcomm Technologies, Inc., VoiceAge Corporation, and other # contributors to this repository. All Rights Reserved. # # This software is protected by copyright law and by international treaties. # The IVAS codec Public Collaboration consisting of Dolby International AB, Ericsson AB, # Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e.V., Huawei Technologies Co. LTD., # Koninklijke Philips N.V., Nippon Telegraph and Telephone Corporation, Nokia Technologies Oy, Orange, # Panasonic Holdings Corporation, Qualcomm Technologies, Inc., VoiceAge Corporation, and other # contributors to this repository retain full ownership rights in their respective contributions in # the software. This notice grants no license of any kind, including but not limited to patent # license, nor is any license granted by implication, estoppel or otherwise. # # Contributors are required to enter into the IVAS codec Public Collaboration agreement before making # contributions. # # This software is provided "AS IS", without any express or implied warranties. The software is in the # development stage. It is intended exclusively for experts who have experience with such software and # solely for the purpose of inspection. All implied warranties of non-infringement, merchantability # and fitness for a particular purpose are hereby disclaimed and excluded. # # Any dispute, controversy or claim arising under or in relation to providing this software shall be # submitted to and settled by the final, binding jurisdiction of the courts of Munich, Germany in # accordance with the laws of the Federal Republic of Germany excluding its conflict of law rules and # the United Nations Convention on Contracts on the International Sales of Goods. # OUTDIR=$1 # remove complete lc3plus folder rm -R $OUTDIR/lc3plus # remove other split rendering files declare -a sr_files_rend=( "lib_rend/ivas_CQMFDecoder.c" "lib_rend/ivas_CQMFDecoder.h" "lib_rend/ivas_CQMFEncoder.c" "lib_rend/ivas_CQMFEncoder.h" "lib_rend/ivas_MSPred.c" "lib_rend/ivas_MSPred.h" "lib_rend/ivas_NoiseGen.c" "lib_rend/ivas_NoiseGen.h" "lib_rend/ivas_PerceptualModel.c" "lib_rend/ivas_PerceptualModel.h" "lib_rend/ivas_PredDecoder.c" "lib_rend/ivas_PredDecoder.h" "lib_rend/ivas_PredEncoder.c" "lib_rend/ivas_PredEncoder.h" "lib_rend/ivas_PredTables.h" "lib_rend/ivas_RMSEnvGrouping.c" "lib_rend/ivas_RMSEnvGrouping.h" "lib_rend/ivas_cldfb_codec_bitstream.c" "lib_rend/ivas_cldfb_codec_bitstream.h" "lib_rend/ivas_lc3plus_common.c" "lib_rend/ivas_lc3plus_common.h" "lib_rend/ivas_lc3plus_dec.c" "lib_rend/ivas_lc3plus_dec.h" "lib_rend/ivas_lc3plus_enc.c" "lib_rend/ivas_lc3plus_enc.h" "lib_rend/ivas_lcld_tables.c" "lib_rend/ivas_lcld_tables.h" "lib_rend/ivas_splitRend_lcld_dec.c" "lib_rend/ivas_splitRend_lcld_enc.c" "lib_rend/ivas_splitRendererPLC.c" "lib_rend/ivas_splitRendererPost.c" "lib_rend/ivas_splitRendererPre.c" "lib_rend/ivas_splitRenderer_utils.c" ) for file in ${sr_files_rend[@]}; do rm $OUTDIR/$file file_windows=${file//\//'\\'} sed -i.bak -e "/${file_windows}/d" ${OUTDIR}/Workspace_msvc/lib_rend.vcxproj done declare -a sr_files_util=( "lib_util/split_rend_bfi_file_reader.c" "lib_util/split_rend_bfi_file_reader.h" "lib_util/split_render_file_read_write.c" "lib_util/split_render_file_read_write.h" ) for file in ${sr_files_util[@]}; do rm $OUTDIR/$file file_windows=${file//\//'\\'} sed -i.bak -e "/${file_windows}/d" ${OUTDIR}/Workspace_msvc/lib_util.vcxproj done No newline at end of file