first steps
Some checks are pending
C++ CI / build (push) Waiting to run
C++ CI / test (push) Blocked by required conditions
C++ CI / check (push) Blocked by required conditions

This commit is contained in:
wrapper 2025-08-05 21:27:47 +07:00
parent f1cc87f354
commit 1f40310ad8
36 changed files with 3485 additions and 1000 deletions

3
.gitignore vendored
View file

@ -40,3 +40,6 @@ _start-cmd.bat
# Wiki
wiki
.cache/
unused/

View file

@ -5,28 +5,28 @@ To adapt this template to your own project, follow these steps:
In the root directory adapt/change/do the following:
--------------------------------------------------------------------
* [ ] Edit AUTHORS
* [ ] Edit LICENSE
* [x] Edit AUTHORS
* [x] Edit LICENSE
* [ ] Edit README.md
* [ ] Rename ./template-config.cmake -> ./\<project>-config.cmake
* [x] Rename ./template-config.cmake -> ./\<project>-config.cmake
CMakeLists.txt:
* [ ] Set META_PROJECT_*
* [ ] Set META_VERSION_*
* [ ] Set META_AUTHOR_*
* [ ] Set META_CMAKE_INIT_SHA (to the commit hash of the applied cmake-init template, e.g., to 83d7cbc29a6fcb74a98498e5b0fcebd953d9d5cc)
* [ ] Adjust INSTALL_* to the desired install locations for all systems (defaults should be fine for a start)
* [x] Set META_PROJECT_*
* [x] Set META_VERSION_*
* [x] Set META_AUTHOR_*
* [x] Set META_CMAKE_INIT_SHA (to the commit hash of the applied cmake-init template, e.g., to 83d7cbc29a6fcb74a98498e5b0fcebd953d9d5cc)
* [x] Adjust INSTALL_* to the desired install locations for all systems (defaults should be fine for a start)
In subdirectory "./deploy/" do:
--------------------------------------------------------------------
deploy/CMakeLists.txt:
* [ ] Rename deploy/packages/pack-template.cmake -> pack-\<project>.cmake
* [x] Rename deploy/packages/pack-template.cmake -> pack-\<project>.cmake
deploy/packages/pack-\<project>.cmake:
* [ ] Adjust OPTION_PACK_GENERATOR to your liking for all systems
* [ ] Adjust package options, e.g., CPACK_DEBIAN_PACKAGE_DEPENDS, CPACK_DEBIAN_PACKAGE_SECTION, CPACK_DEBIAN_PACKAGE_PRIORITY, CPACK_RPM_PACKAGE_LICENSE, CPACK_RPM_PACKAGE_GROUP, ...
* [x] Adjust OPTION_PACK_GENERATOR to your liking for all systems
* [x] Adjust package options, e.g., CPACK_DEBIAN_PACKAGE_DEPENDS, CPACK_DEBIAN_PACKAGE_SECTION, CPACK_DEBIAN_PACKAGE_PRIORITY, CPACK_RPM_PACKAGE_LICENSE, CPACK_RPM_PACKAGE_GROUP, ...
In subdirectory "./source/" do:

View file

@ -1,6 +0,0 @@
Stefan Buschmann <stefan.buschmann@hpi.de> <buschmann@cginternals.com>
Daniel Limberger <daniel.limberger@hpi.de> <limberger@cginternals.com>
Willy Scheibel <willy.scheibel@hpi.de> <scheibel@cginternals.com>
Thanks to all Contributors

View file

@ -5,7 +5,7 @@
# CMake version
cmake_minimum_required(VERSION 3.20 FATAL_ERROR)
set(CMAKE_CXX_STANDARD 20)
#
# Detect type of CMake setup
@ -57,7 +57,7 @@ option(BUILD_SHARED_LIBS "Build shared instead of static libraries."
option(OPTION_SELF_CONTAINED "Create a self-contained install with all dependencies." OFF)
option(OPTION_BUILD_TESTS "Build tests." ON)
option(OPTION_BUILD_DOCS "Build documentation." OFF)
option(OPTION_BUILD_EXAMPLES "Build examples." OFF)
option(OPTION_BUILD_EXAMPLES "Build examples." ON)
option(OPTION_ENABLE_COVERAGE "Add coverage information." OFF)
# Get git revision
@ -78,13 +78,13 @@ endif()
#
# Meta information about the project
set(META_PROJECT_NAME "template")
set(META_PROJECT_DESCRIPTION "CMake Project Template")
set(META_AUTHOR_ORGANIZATION "CG Internals GmbH")
set(META_AUTHOR_DOMAIN "https://github.com/cginternals/cmake-init/")
set(META_AUTHOR_MAINTAINER "opensource@cginternals.com")
set(META_VERSION_MAJOR "2")
set(META_VERSION_MINOR "1")
set(META_PROJECT_NAME "libaac")
set(META_PROJECT_DESCRIPTION "AAC Encoder based on libxaac library")
set(META_AUTHOR_ORGANIZATION "Wrapper")
set(META_AUTHOR_DOMAIN "")
set(META_AUTHOR_MAINTAINER "")
set(META_VERSION_MAJOR "1")
set(META_VERSION_MINOR "0")
set(META_VERSION_PATCH "0")
set(META_VERSION_REVISION "${GIT_REV}")
set(META_VERSION "${META_VERSION_MAJOR}.${META_VERSION_MINOR}.${META_VERSION_PATCH}")
@ -210,7 +210,7 @@ endif()
add_subdirectory(source)
add_subdirectory(docs)
add_subdirectory(deploy)
add_subdirectory(externals)
#
# Deployment (global project files)

View file

@ -28,7 +28,7 @@ ADD deploy $PROJECT_NAME/deploy
ADD source $PROJECT_NAME/source
ADD CMakeLists.txt $PROJECT_NAME/CMakeLists.txt
ADD configure $PROJECT_NAME/configure
ADD template-config.cmake $PROJECT_NAME/template-config.cmake
ADD libaac-config.cmake $PROJECT_NAME/libaac-config.cmake
ADD $PROJECT_NAME-logo.png $PROJECT_NAME/$PROJECT_NAME-logo.png
ADD $PROJECT_NAME-logo.svg $PROJECT_NAME/$PROJECT_NAME-logo.svg
ADD LICENSE $PROJECT_NAME/LICENSE

201
LICENSE
View file

@ -1,8 +1,201 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
Copyright (c) 2012-2015 Computer Graphics Systems Group at the Hasso-Plattner-Institute, Germany.
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
1. Definitions.
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright 2025 Wrapper
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

View file

@ -14,13 +14,13 @@ endif()
if("${CMAKE_SYSTEM_NAME}" MATCHES "Windows")
# Windows installer
set(OPTION_PACK_GENERATOR "NSIS;ZIP" CACHE STRING "Package targets")
set(OPTION_PACK_GENERATOR "ZIP" CACHE STRING "Package targets")
set(PACK_COMPONENT_INSTALL ON)
set(PACK_INCLUDE_TOPDIR OFF)
elseif(UNIX AND SYSTEM_DIR_INSTALL)
# System installation packages for unix systems
if("${CMAKE_SYSTEM_NAME}" MATCHES "Linux")
set(OPTION_PACK_GENERATOR "TGZ;DEB;RPM" CACHE STRING "Package targets")
set(OPTION_PACK_GENERATOR "TGZ" CACHE STRING "Package targets")
set(PACK_COMPONENT_INSTALL ON)
set(PACK_INCLUDE_TOPDIR OFF)
else()
@ -212,7 +212,7 @@ set(CPACK_RPM_PACKAGE_ARCHITECTURE "x86_64")
set(CPACK_RPM_PACKAGE_REQUIRES "")
set(CPACK_RPM_PACKAGE_PROVIDES "")
set(CPACK_RPM_PACKAGE_VENDOR "${package_vendor}")
set(CPACK_RPM_PACKAGE_LICENSE "MIT")
set(CPACK_RPM_PACKAGE_LICENSE "Apache-2.0")
set(CPACK_RPM_PACKAGE_SUMMARY "${CPACK_PACKAGE_DESCRIPTION_SUMMARY}")
set(CPACK_RPM_PACKAGE_DESCRIPTION "")
set(CPACK_RPM_PACKAGE_GROUP "unknown")
@ -222,7 +222,7 @@ set(CPACK_RPM_PACKAGE_GROUP "unknown")
#set(CPACK_RPM_GENERATE_USER_BINARY_SPECFILE_TEMPLATE "")
#set(CPACK_RPM_<POST/PRE>_<UN>INSTALL_SCRIPT_FILE "")
#set(CPACK_RPM_PACKAGE_DEBUG 1)
set(CPACK_RPM_PACKAGE_RELOCATABLE OFF)
set(CPACK_RPM_PACKAGE_RELOCATABLE ON)
set(CPACK_RPM_COMPONENT_INSTALL ${PACK_COMPONENT_INSTALL})

17
externals/CMakeLists.txt vendored Normal file
View file

@ -0,0 +1,17 @@
# Always build externals as static libraries, even when libaac-next is built as shared
if (BUILD_SHARED_LIBS)
set(BUILD_SHARED_LIBS OFF)
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
set_property(DIRECTORY PROPERTY EXCLUDE_FROM_ALL ON)
endif()
# Allow options shadowing with normal variables when subproject use old cmake policy
set(CMAKE_POLICY_DEFAULT_CMP0077 NEW)
# Disable tests in all externals supporting the standard option name
set(BUILD_TESTING OFF)
# For libraries that already come with a CMakeLists file,
# simply add the directory to that file as a subdirectory
# to have CMake automatically recognize them.
add_subdirectory(libxaac)

View file

@ -13,8 +13,7 @@ configure_file(version.h.in ${CMAKE_CURRENT_BINARY_DIR}/include/${META_PROJECT_N
# Libraries
set(IDE_FOLDER "")
add_subdirectory(baselib)
add_subdirectory(fiblib)
add_subdirectory(libaac)
# Examples
set(IDE_FOLDER "Examples")

View file

@ -1,21 +0,0 @@
#pragma once
#include <string>
#include <baselib/baselib_api.h>
namespace baselib
{
/**
* @brief
* Print information about the library to the console
*/
BASELIB_API void printInfo();
} // namespace baselib

View file

@ -1,58 +0,0 @@
#include <iostream>
#include <fstream>
#include <template/template-version.h>
#include <baselib/baselib.h>
namespace baselib
{
void printInfo()
{
std::string dataPath = "data";
// Library name
std::cout << "Library template::baselib" << std::endl;
std::cout << "========================================" << std::endl;
// Library version
std::cout << "Version: " << TEMPLATE_VERSION << std::endl;
std::cout << std::endl;
// Library type (static or dynamic)
#ifdef BASELIB_STATIC_DEFINE
std::cout << "Library type: STATIC" << std::endl;
#else
std::cout << "Library type: SHARED" << std::endl;
#endif
// Data directory
std::cout << "Data path: " << dataPath << std::endl;
std::cout << std::endl;
// Read file
std::cout << "Data directory access" << std::endl;
std::cout << "========================================" << std::endl;
std::string fileName = dataPath + "/DATA_FOLDER.txt";
std::cout << "Reading from '" << fileName << "': " << std::endl;
std::cout << std::endl;
std::ifstream f(fileName);
if (f.is_open()) {
std::string line;
while (getline(f, line)) {
std::cout << line << '\n';
}
f.close();
} else {
std::cout << "Unable to open file." << std::endl;
}
}
} // namespace baselib

View file

@ -5,5 +5,4 @@ if(NOT OPTION_BUILD_EXAMPLES)
endif()
# Example applications
add_subdirectory(fibcmd)
add_subdirectory(fibgui)
add_subdirectory(aacenc)

View file

@ -11,7 +11,7 @@
#
# Target name
set(target fibcmd)
set(target aacenc)
# Exit here if required dependencies are not met
message(STATUS "Example ${target}")
@ -22,7 +22,7 @@ message(STATUS "Example ${target}")
#
set(sources
main.cpp
aacenc.cpp
)
@ -70,8 +70,7 @@ target_include_directories(${target}
target_link_libraries(${target}
PRIVATE
${DEFAULT_LIBRARIES}
${META_PROJECT_NAME}::baselib
${META_PROJECT_NAME}::fiblib
${META_PROJECT_NAME}::aacnext
)
@ -95,7 +94,7 @@ target_compile_options(${target}
PUBLIC
${DEFAULT_COMPILE_OPTIONS_PUBLIC}
)
target_compile_features(${target} PUBLIC cxx_std_20)
#
# Linker options

View file

@ -0,0 +1,17 @@
#include <aacnext/libaac.h>
#include "argparse.hpp"
int main(int argc, char *argv[]) {
argparse::ArgumentParser ap("aacenc");
ap.add_argument("input");
ap.add_argument("output");
try {
ap.parse_args(argc, argv);
} catch (const std::exception& err) {
std::cerr << err.what() << std::endl;
std::cerr << ap;
return 1;
}
}

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,70 @@
#include <stdio.h>
#include <string.h>
#define WAV_HEADER_SIZE 64
#define WAV_FORMAT_FLOAT 0xFFFE
typedef struct {
int sampleRate;
int nChannels;
long nSamples;
int aFmt;
} WavInfo;
inline FILE *AuChannelOpen(const char *filename, WavInfo *info) {
unsigned char header[12];
unsigned char data[WAV_HEADER_SIZE];
FILE *handle;
unsigned int chunksize;
if (!strcmp(filename, "-"))
handle = stdin;
else
handle = fopen(filename, "rb");
if (!handle)
return NULL;
if (fread(header, 1, 12, handle) != 12)
return NULL;
info->nSamples =
(header[4] | (header[5] << 8) | (header[6] << 16) | (header[7] << 24)) +
8;
while (memcmp(header, "data", 4) != 0) {
if (fread(header, 1, 8, handle) != 8)
return NULL;
chunksize =
(header[4] | (header[5] << 8) | (header[6] << 16) | (header[7] << 24));
// fprintf(stderr, "%c%c%c%c %d", header[0], header[1], header[2],
// header[3], chunksize);
if (!memcmp(header, "fmt ", 4)) {
if (chunksize > WAV_HEADER_SIZE)
return NULL;
if (fread(data, 1, chunksize, handle) != chunksize)
return NULL;
info->aFmt = data[0] | data[1] << 8;
info->nChannels = data[2] | data[3] << 8;
info->sampleRate = data[4] | data[5] << 8 | data[6] << 12 | data[7] << 16;
} else if (memcmp(header, "data", 4) != 0) {
if (fseek(handle, chunksize, SEEK_CUR) != 0)
return NULL;
}
}
return handle;
}
inline void AuChannelClose(FILE *audioChannel) { fclose(audioChannel); }
inline size_t AuChannelReadShort(FILE *audioChannel, short *samples,
int nSamples, int *readed) {
*readed = fread(samples, 2, nSamples, audioChannel);
return *readed <= 0;
}
inline size_t AuChannelReadFloat(FILE *audioChannel, float *samples,
int nSamples, int *readed) {
*readed = fread(samples, 4, nSamples, audioChannel);
return *readed <= 0;
}

View file

@ -1,24 +0,0 @@
#include <iostream>
#include <baselib/baselib.h>
#include <fiblib/CTFibonacci.h>
#include <fiblib/Fibonacci.h>
int main(int /*argc*/, char* /*argv*/[])
{
// Print library info
baselib::printInfo();
std::cout << std::endl;
// Calculate and print fibonacci number
std::cout << "Fibonacci library" << std::endl;
std::cout << "========================================" << std::endl;
std::cout << "CTFibonacci(6) = " << fiblib::CTFibonacci<6>::value << std::endl;
std::cout << "Fibonacci(8) = " << fiblib::Fibonacci()(8) << std::endl;
std::cout << std::endl;
return 0;
}

View file

@ -1,151 +0,0 @@
#
# External dependencies
#
find_package(Qt5Core 5.1)
find_package(Qt5Gui 5.1)
find_package(Qt5Widgets 5.1)
# Enable automoc
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTOUIC ON)
set(AUTOMOC_MOC_OPTIONS PROPERTIES FOLDER CMakeAutomocTargets)
set_property(GLOBAL PROPERTY AUTOMOC_FOLDER CMakeAutomocTargets)
# ENABLE CMP0020: Automatically link Qt executables to qtmain target on Windows.
set_policy(CMP0020 NEW)
#
# Executable name and options
#
# Target name
set(target fibgui)
# Exit here if required dependencies are not met
if (NOT Qt5Core_FOUND)
message(STATUS "Example ${target} skipped: Qt5 not found")
return()
else()
message(STATUS "Example ${target}")
endif()
#
# Sources
#
set(sources
main.cpp
MainWindow.cpp
MainWindow.h
MainWindow.ui
)
#
# Create executable
#
# Build executable
add_executable(${target}
MACOSX_BUNDLE
${sources}
)
# Create namespaced alias
add_executable(${META_PROJECT_NAME}::${target} ALIAS ${target})
#
# Project options
#
set_target_properties(${target}
PROPERTIES
${DEFAULT_PROJECT_OPTIONS}
INSTALL_RPATH "${EXECUTABLE_INSTALL_RPATH}"
FOLDER "${IDE_FOLDER}"
)
#
# Include directories
#
target_include_directories(${target}
PRIVATE
${DEFAULT_INCLUDE_DIRECTORIES}
${CMAKE_CURRENT_BINARY_DIR}
${PROJECT_BINARY_DIR}/source/include
)
#
# Libraries
#
target_link_libraries(${target}
PRIVATE
${DEFAULT_LIBRARIES}
Qt5::Core
Qt5::Gui
Qt5::Widgets
${META_PROJECT_NAME}::baselib
${META_PROJECT_NAME}::fiblib
)
#
# Compile definitions
#
target_compile_definitions(${target}
PRIVATE
${DEFAULT_COMPILE_DEFINITIONS}
)
#
# Compile options
#
target_compile_options(${target}
PRIVATE
${DEFAULT_COMPILE_OPTIONS_PRIVATE}
PUBLIC
${DEFAULT_COMPILE_OPTIONS_PUBLIC}
)
#
# Linker options
#
target_link_options(${target}
PRIVATE
${DEFAULT_LINKER_OPTIONS}
)
#
# Target Health
#
perform_health_checks(
${target}
${sources}
)
#
# Deployment
#
# Executable
install(TARGETS ${target}
RUNTIME DESTINATION ${INSTALL_BIN} COMPONENT examples
BUNDLE DESTINATION ${INSTALL_BIN} COMPONENT examples
)

View file

@ -1,37 +0,0 @@
#include "MainWindow.h"
#include <QMessageBox>
#include <template/template-version.h>
#include <fiblib/Fibonacci.h>
#include "ui_MainWindow.h"
MainWindow::MainWindow()
: m_ui(new Ui::MainWindow)
{
// Setup UI
m_ui->setupUi(this);
}
MainWindow::~MainWindow()
{
}
void MainWindow::on_editNumber_valueChanged(int value)
{
fiblib::Fibonacci fib;
m_ui->result->setText("Fib(" + QString::number(value) + ") = " + QString::number(fib(value)));
}
void MainWindow::on_about()
{
QString about = QString() +
"Version: " + TEMPLATE_VERSION + "\n";
QMessageBox::about(this, "template project", about);
}

View file

@ -1,44 +0,0 @@
#pragma once
#include <QMainWindow>
#include <QScopedPointer>
namespace Ui {
class MainWindow;
}
/**
* @brief
* Main window of the fibgui example
*/
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
/**
* @brief
* Constructor
*/
MainWindow();
/**
* @brief
* Destructor
*/
virtual ~MainWindow();
protected slots:
void on_editNumber_valueChanged(int value);
void on_about();
protected:
const QScopedPointer<Ui::MainWindow> m_ui;
};

View file

@ -1,114 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>MainWindow</class>
<widget class="QMainWindow" name="MainWindow">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>694</width>
<height>175</height>
</rect>
</property>
<property name="windowTitle">
<string>Fibonacci Gui</string>
</property>
<widget class="QWidget" name="centralwidget">
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QLabel" name="title">
<property name="text">
<string>Please enter n:</string>
</property>
</widget>
</item>
<item>
<widget class="QSpinBox" name="editNumber"/>
</item>
<item>
<widget class="QLabel" name="result">
<property name="text">
<string>Fib(0) = 0</string>
</property>
</widget>
</item>
<item>
<spacer name="verticalSpacer">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
<widget class="QMenuBar" name="menubar">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>694</width>
<height>27</height>
</rect>
</property>
<widget class="QMenu" name="fileMenu">
<property name="title">
<string>&amp;File</string>
</property>
<addaction name="separator"/>
<addaction name="quitAction"/>
</widget>
<widget class="QMenu" name="helpMenu">
<property name="title">
<string>&amp;Help</string>
</property>
<addaction name="aboutAction"/>
</widget>
<addaction name="fileMenu"/>
<addaction name="helpMenu"/>
</widget>
<widget class="QStatusBar" name="statusbar"/>
<action name="aboutAction">
<property name="enabled">
<bool>true</bool>
</property>
<property name="text">
<string>&amp;About ...</string>
</property>
<property name="menuRole">
<enum>QAction::AboutRole</enum>
</property>
</action>
<action name="quitAction">
<property name="enabled">
<bool>true</bool>
</property>
<property name="text">
<string>&amp;Quit</string>
</property>
<property name="menuRole">
<enum>QAction::QuitRole</enum>
</property>
</action>
</widget>
<resources/>
<connections>
<connection>
<sender>quitAction</sender>
<signal>triggered()</signal>
<receiver>MainWindow</receiver>
<slot>close()</slot>
</connection>
<connection>
<sender>aboutAction</sender>
<signal>triggered()</signal>
<receiver>MainWindow</receiver>
<slot>on_about()</slot>
</connection>
</connections>
</ui>

View file

@ -1,15 +0,0 @@
#include "MainWindow.h"
#include <QApplication>
int main(int argc, char *argv[])
{
QApplication application(argc, argv);
MainWindow mainWindow;
mainWindow.show();
return application.exec();
}

View file

@ -1,224 +0,0 @@
#
# External dependencies
#
# find_package(THIRDPARTY REQUIRED)
#
# Library name and options
#
# Target name
set(target fiblib)
# Exit here if required dependencies are not met
message(STATUS "Lib ${target}")
# Set API export file and macro
string(MAKE_C_IDENTIFIER ${target} target_id)
string(TOUPPER ${target_id} target_id)
set(feature_file "include/${target}/${target}_features.h")
set(export_file "include/${target}/${target}_export.h")
set(template_export_file "include/${target}/${target}_api.h")
set(export_macro "${target_id}_API")
#
# Sources
#
set(include_path "${CMAKE_CURRENT_SOURCE_DIR}/include/${target}")
set(source_path "${CMAKE_CURRENT_SOURCE_DIR}/source")
set(headers
${include_path}/CTFibonacci.h
${include_path}/CTFibonacci.inl
${include_path}/Fibonacci.h
)
set(sources
${source_path}/Fibonacci.cpp
)
# Group source files
set(header_group "Header Files (API)")
set(source_group "Source Files")
source_group_by_path(${include_path} "\\\\.h$|\\\\.hpp$"
${header_group} ${headers})
source_group_by_path(${source_path} "\\\\.cpp$|\\\\.c$|\\\\.h$|\\\\.hpp$"
${source_group} ${sources})
#
# Create library
#
# Build library
add_library(${target}
${sources}
${headers}
)
# Create namespaced alias
add_library(${META_PROJECT_NAME}::${target} ALIAS ${target})
# Export library for downstream projects
export(TARGETS ${target} NAMESPACE ${META_PROJECT_NAME}:: FILE ${PROJECT_BINARY_DIR}/cmake/${target}/${target}-export.cmake)
# Create feature detection header
# Compilers: https://cmake.org/cmake/help/v3.1/variable/CMAKE_LANG_COMPILER_ID.html#variable:CMAKE_%3CLANG%3E_COMPILER_ID
# Feature: https://cmake.org/cmake/help/v3.1/prop_gbl/CMAKE_CXX_KNOWN_FEATURES.html
write_compiler_detection_header(
FILE ${feature_file}
PREFIX ${target_id}
COMPILERS AppleClang Clang GNU MSVC
FEATURES cxx_alignas cxx_alignof cxx_constexpr cxx_final cxx_noexcept cxx_nullptr cxx_sizeof_member cxx_thread_local
VERSION 3.20
)
# Create API export header
generate_export_header(${target}
EXPORT_FILE_NAME ${export_file}
EXPORT_MACRO_NAME ${export_macro}
)
generate_template_export_header(${target}
${target_id}
${template_export_file}
)
#
# Project options
#
set_target_properties(${target}
PROPERTIES
${DEFAULT_PROJECT_OPTIONS}
INSTALL_RPATH "${LIBRARY_INSTALL_RPATH}"
FOLDER "${IDE_FOLDER}"
VERSION "${META_VERSION}"
SOVERSION "${META_VERSION_MAJOR}"
)
#
# Include directories
#
target_include_directories(${target}
PRIVATE
${PROJECT_BINARY_DIR}/source/include
${CMAKE_CURRENT_SOURCE_DIR}/include
${CMAKE_CURRENT_BINARY_DIR}/include
PUBLIC
${DEFAULT_INCLUDE_DIRECTORIES}
INTERFACE
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}/include>
$<INSTALL_INTERFACE:include>
)
#
# Libraries
#
target_link_libraries(${target}
PRIVATE
PUBLIC
${DEFAULT_LIBRARIES}
INTERFACE
)
#
# Compile definitions
#
target_compile_definitions(${target}
PRIVATE
PUBLIC
$<$<NOT:$<BOOL:${BUILD_SHARED_LIBS}>>:${target_id}_STATIC_DEFINE>
${DEFAULT_COMPILE_DEFINITIONS}
INTERFACE
)
#
# Compile options
#
target_compile_options(${target}
PRIVATE
${DEFAULT_COMPILE_OPTIONS_PRIVATE}
PUBLIC
${DEFAULT_COMPILE_OPTIONS_PUBLIC}
INTERFACE
)
#
# Linker options
#
target_link_options(${target}
PRIVATE
PUBLIC
${DEFAULT_LINKER_OPTIONS}
INTERFACE
)
#
# Target Health
#
perform_health_checks(
${target}
${sources}
${headers}
)
#
# Deployment
#
# Library
install(TARGETS ${target}
EXPORT "${target}-export" COMPONENT dev
RUNTIME DESTINATION ${INSTALL_BIN} COMPONENT runtime
LIBRARY DESTINATION ${INSTALL_SHARED} COMPONENT runtime
ARCHIVE DESTINATION ${INSTALL_LIB} COMPONENT dev
)
# Header files
install(DIRECTORY
${CMAKE_CURRENT_SOURCE_DIR}/include/${target} DESTINATION ${INSTALL_INCLUDE}
COMPONENT dev
)
# Generated header files
install(DIRECTORY
${CMAKE_CURRENT_BINARY_DIR}/include/${target} DESTINATION ${INSTALL_INCLUDE}
COMPONENT dev
)
# CMake config
install(EXPORT ${target}-export
NAMESPACE ${META_PROJECT_NAME}::
DESTINATION ${INSTALL_CMAKE}/${target}
COMPONENT dev
)

View file

@ -1,29 +0,0 @@
#pragma once
#include <fiblib/fiblib_api.h>
namespace fiblib
{
/**
* @brief
* Compile-time computation of fibonacci numbers
*/
template <unsigned long long i>
class FIBLIB_TEMPLATE_API CTFibonacci
{
public:
enum {
value = CTFibonacci<i-2>::value + CTFibonacci<i-1>::value
};
};
} // namespace fiblib
#include <fiblib/CTFibonacci.inl>

View file

@ -1,30 +0,0 @@
#pragma once
#include <fiblib/CTFibonacci.h>
namespace fiblib
{
template <>
class FIBLIB_TEMPLATE_API CTFibonacci<0>
{
public:
enum {
value = 0
};
};
template <>
class FIBLIB_TEMPLATE_API CTFibonacci<1>
{
public:
enum {
value = 1
};
};
} // namespace fiblib

View file

@ -1,45 +0,0 @@
#pragma once
#include <fiblib/fiblib_api.h>
namespace fiblib
{
/**
* @brief
* Calculator of fibonacci numbers
*/
class FIBLIB_API Fibonacci
{
public:
/**
* @brief
* Constructor
*/
Fibonacci();
/**
* @brief
* Destructor
*/
virtual ~Fibonacci();
/**
* @brief
* Calculate fibonacci number
*
* @param[in] i
* Index
*
* @return
* Value of the i'th fibonacci number
*/
unsigned int operator()(unsigned int i);
};
} // namespace fiblib

View file

@ -1,27 +0,0 @@
#include <fiblib/Fibonacci.h>
namespace fiblib
{
Fibonacci::Fibonacci()
{
}
Fibonacci::~Fibonacci()
{
}
unsigned int Fibonacci::operator()(unsigned int i)
{
if (i < 2) {
return i;
} else {
return this->operator()(i - 1) + this->operator()(i - 2);
}
}
} // namespace fiblib

View file

@ -11,7 +11,7 @@
#
# Target name
set(target baselib)
set(target aacnext)
# Exit here if required dependencies are not met
message(STATUS "Lib ${target}")
@ -33,11 +33,11 @@ set(include_path "${CMAKE_CURRENT_SOURCE_DIR}/include/${target}")
set(source_path "${CMAKE_CURRENT_SOURCE_DIR}/source")
set(headers
${include_path}/baselib.h
${include_path}/libaac.h
)
set(sources
${source_path}/baselib.cpp
${source_path}/libaac.c
)
# Group source files
@ -109,6 +109,9 @@ set_target_properties(${target}
target_include_directories(${target}
PRIVATE
${PROJECT_BINARY_DIR}/source/include
${PROJECT_SOURCE_DIR}/externals/libxaac/common
${PROJECT_SOURCE_DIR}/externals/libxaac/decoder
${PROJECT_SOURCE_DIR}/externals/libxaac/encoder
${CMAKE_CURRENT_SOURCE_DIR}/include
${CMAKE_CURRENT_BINARY_DIR}/include
@ -128,6 +131,8 @@ target_include_directories(${target}
target_link_libraries(${target}
PRIVATE
libxaacenc
libxaacdec
PUBLIC
${DEFAULT_LIBRARIES}

View file

@ -0,0 +1,38 @@
#include "aacnext/aacnext_export.h"
typedef enum {
AAC_LC, // Low complexity
AAC_HE, // High Efficiency (SBR)
AAC_HEV2, // High Efficiency V2 (SBR+PS)
AAC_LD, // Low delay
AAC_ELD, // Enhanced low delay (LD-SBR)
AAC_ELDV2, // Enhanced low delay V2 (LD-SBR+LD-MPS)
} profiles;
typedef struct {
void * pstr_in_cfg; // XAAC input config
void * pstr_out_cfg; // XAAC output config
int no_samples; // Number of samples
int max_out_bytes; // Max output bytes
unsigned char *asc; // AudioSpecific config
int asc_size; // AudioSpecific config size
int in_buf_offset; // Input buffer offset
} AACContext;
typedef struct {
unsigned long sampleRate; // Sample rate
unsigned long noChannels; // Number of channels
int bitsPerSamples; // Bits per samples
unsigned long bitrate; // Bitrate
int adts; // ADTS format
unsigned long cutoff; // Cutoff rate
profiles profile; // AAC profile
int tns; // enable TNS
int frameSize; // Custom frame size
int sbrExplicit; // Explicit SBR
int iq; // Inverse quant
} AACSettings;
AACNEXT_API AACContext * aac_encode_open(AACSettings info);
AACNEXT_API int aac_encode(AACContext *aac, unsigned char *inData, unsigned int inDataSize, unsigned char **outData, unsigned int *outSize);
AACNEXT_API void aac_encode_close(AACContext *aac);

View file

@ -0,0 +1,182 @@
#include <aacnext/libaac.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "ixheaac_type_def.h"
#include "iusace_cnst.h"
#include "ixheaace_api.h"
#include "ixheaac_error_standards.h"
void *malloc_global(unsigned int size, unsigned alignment) {
#ifdef WIN32
return _aligned_malloc(size, alignment);
#else
void *ptr = NULL;
if (posix_memalign((void **)&ptr, alignment, size)) {
ptr = NULL;
}
return ptr;
#endif
}
void free_global(void * ptr) {
#ifdef WIN32
_aligned_free(ptr);
#else
free(ptr);
#endif
ptr = NULL;
}
AACContext * aac_encode_open(AACSettings info) {
IA_ERRORCODE ret;
WORD32 aot;
switch (info.profile) {
case AAC_LC:
aot = AOT_AAC_LC;
break;
case AAC_HE:
aot = AOT_SBR;
break;
case AAC_HEV2:
aot = AOT_PS;
break;
case AAC_LD:
aot = AOT_AAC_LD;
break;
case AAC_ELD:
case AAC_ELDV2:
aot = AOT_AAC_ELD;
break;
default:
return NULL;
}
AACContext *aac = calloc(1, sizeof(AACContext));
if (aac == NULL) return NULL;
aac->pstr_in_cfg = calloc(1, sizeof(ixheaace_input_config));
if (aac->pstr_in_cfg == NULL) {
free(aac);
return NULL;
}
aac->pstr_out_cfg = calloc(1, sizeof(ixheaace_output_config));
if (aac->pstr_out_cfg == NULL) {
free(aac->pstr_in_cfg);
free(aac);
return NULL;
}
ixheaace_input_config * aac_in_config = (ixheaace_input_config *)aac->pstr_in_cfg;
ixheaace_output_config * aac_out_config = (ixheaace_output_config *)aac->pstr_out_cfg;
aac_in_config->aac_config.bitrate = info.bitrate;
aac_in_config->aac_config.bandwidth = info.cutoff;
aac_in_config->aac_config.use_tns = info.tns;
aac_in_config->aac_config.bitreservoir_size = -2;
aac_in_config->aac_config.inv_quant = info.iq;
aac_in_config->aac_config.full_bandwidth = aac_in_config->aac_config.bandwidth <= 0 ? 1 : 0;
aac_in_config->i_bitrate = aac_in_config->aac_config.bitrate;
aac_in_config->aot = aot;
aac_in_config->i_channels = info.noChannels;
aac_in_config->i_samp_freq = info.sampleRate;
aac_in_config->i_use_mps = info.profile == AAC_ELDV2;
aac_in_config->i_use_adts = info.adts;
aac_in_config->i_use_es = !info.adts;
aac_in_config->esbr_flag = info.sbrExplicit;
aac_out_config->malloc_xheaace = &malloc_global;
aac_out_config->free_xheaace = &free_global;
aac_in_config->frame_cmd_flag = info.frameSize > 0;
aac_in_config->frame_length = info.frameSize;
aac_in_config->out_bytes_flag = 0;
aac_in_config->user_tns_flag = aac_in_config->aac_config.use_tns;
aac_in_config->user_esbr_flag = aac_in_config->esbr_flag;
aac_in_config->random_access_interval = DEFAULT_RAP_INTERVAL_IN_MS;
aac_in_config->ui_pcm_wd_sz = info.bitsPerSamples; // Fixed point only although float computing is possible
aac_in_config->aac_config.length = 0;
ret = ixheaace_create(aac->pstr_in_cfg, aac->pstr_out_cfg);
if (ret != IA_NO_ERROR) {
printf("init error: 0x%08X\n", ret);
free(aac->pstr_in_cfg);
free(aac->pstr_out_cfg);
free(aac);
return NULL;
}
aac->no_samples = aac_out_config->input_size / (aac_in_config->ui_pcm_wd_sz == 32 ? 4 : 2);
aac->max_out_bytes = aac_out_config->mem_info_table[IA_MEMTYPE_OUTPUT].ui_size;
aac->in_buf_offset = 0;
if (!info.adts) {
aac->asc = (unsigned char *)aac_out_config->mem_info_table[IA_MEMTYPE_OUTPUT].mem_ptr;
aac->asc_size = aac_out_config->i_out_bytes;
}
/*
for (int a = 0; a < aac->asc_size; a++) {
printf("ASC %i = 0x%02x\n", a, aac->asc[a]);
}
printf("AFR: %d\n", aac_in_config->frame_length);
printf("IN BUF SIZE: %d %d\n", aac_out_config->mem_info_table[IA_MEMTYPE_INPUT].ui_size, aac_out_config->input_size);
printf("OUT BUF SIZE: %d\n", aac_out_config->mem_info_table[IA_MEMTYPE_OUTPUT].ui_size);
*/
return aac;
}
int aac_encode(AACContext *aac, unsigned char *inData, unsigned int inDataSize, unsigned char **outData, unsigned int *outSize) {
ixheaace_output_config * aac_out_config = (ixheaace_output_config *)aac->pstr_out_cfg;
pUWORD8 aac_in_buf = (pUWORD8)aac_out_config->mem_info_table[IA_MEMTYPE_INPUT].mem_ptr;
pUWORD8 aac_out_buf = (pUWORD8)aac_out_config->mem_info_table[IA_MEMTYPE_OUTPUT].mem_ptr;
UWORD32 samplesRemain = aac_out_config->input_size - aac->in_buf_offset;
if (!inDataSize) {
memset(aac_in_buf + aac->in_buf_offset, 0, samplesRemain);
aac->in_buf_offset += samplesRemain;
} else {
if (inDataSize > samplesRemain) return -1; // Overflow
memcpy(aac_in_buf + aac->in_buf_offset, inData, inDataSize);
aac->in_buf_offset += inDataSize;
}
if (aac->in_buf_offset < aac_out_config->input_size) return 0; // Underflow, need data
aac->in_buf_offset = 0;
IA_ERRORCODE ret = ixheaace_process(aac_out_config->pv_ia_process_api_obj, aac->pstr_in_cfg, aac->pstr_out_cfg);
if (ret != IA_NO_ERROR) {
printf("encode error: 0x%08x\n", ret);
return -1;
}
*outData = aac_out_buf;
*outSize = aac_out_config->i_out_bytes;
return 1;
}
void aac_encode_close(AACContext *aac) {
ixheaace_delete(aac->pstr_out_cfg);
free(aac->pstr_in_cfg);
free(aac->pstr_out_cfg);
free(aac);
}

View file

@ -70,4 +70,4 @@ endif()
# Tests
#
add_test_without_ctest(fiblib-test)
# add_test_without_ctest(fiblib-test)

View file

@ -1,103 +0,0 @@
#
# External dependencies
#
find_package(${META_PROJECT_NAME} REQUIRED HINTS "${CMAKE_CURRENT_SOURCE_DIR}/../../../")
#
# Executable name and options
#
# Target name
set(target fiblib-test)
message(STATUS "Test ${target}")
#
# Sources
#
set(sources
main.cpp
fibonacci_test.cpp
)
#
# Create executable
#
# Build executable
add_executable(${target}
${sources}
)
# Create namespaced alias
add_executable(${META_PROJECT_NAME}::${target} ALIAS ${target})
#
# Project options
#
set_target_properties(${target}
PROPERTIES
${DEFAULT_PROJECT_OPTIONS}
FOLDER "${IDE_FOLDER}"
)
#
# Include directories
#
target_include_directories(${target}
PRIVATE
${DEFAULT_INCLUDE_DIRECTORIES}
${PROJECT_BINARY_DIR}/source/include
)
#
# Libraries
#
target_link_libraries(${target}
PRIVATE
${DEFAULT_LIBRARIES}
${META_PROJECT_NAME}::fiblib
googletest::googletest
)
#
# Compile definitions
#
target_compile_definitions(${target}
PRIVATE
${DEFAULT_COMPILE_DEFINITIONS}
)
#
# Compile options
#
target_compile_options(${target}
PRIVATE
${DEFAULT_COMPILE_OPTIONS_PRIVATE}
PUBLIC
${DEFAULT_COMPILE_OPTIONS_PUBLIC}
)
#
# Linker options
#
target_link_options(${target}
PRIVATE
${DEFAULT_LINKER_OPTIONS}
)

View file

@ -1,21 +0,0 @@
#include <gmock/gmock.h>
#include <fiblib/Fibonacci.h>
class fibonacci_test: public testing::Test
{
public:
};
TEST_F(fibonacci_test, CheckSomeResults)
{
fiblib::Fibonacci fib;
EXPECT_EQ((unsigned int) 0, fib(0));
EXPECT_EQ((unsigned int) 1, fib(1));
EXPECT_EQ((unsigned int) 1, fib(2));
EXPECT_EQ((unsigned int)21, fib(8));
// ...
}

View file

@ -1,8 +0,0 @@
#include <gmock/gmock.h>
int main(int argc, char* argv[])
{
::testing::InitGoogleMock(&argc, argv);
return RUN_ALL_TESTS();
}

View file

@ -0,0 +1,331 @@
#include "libaac.h"
#include <stdio.h>
unsigned char sine_44k_stereo[3528] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1E, 0x6A, 0x4D, 0x3C,
0x1E, 0x6A, 0x4D, 0x3C, 0x50, 0x78, 0xCB, 0x3C, 0x50, 0x78, 0xCB, 0x3C,
0xBA, 0xFE, 0x15, 0x3D, 0xBA, 0xFE, 0x15, 0x3D, 0xF7, 0x3F, 0x43, 0x3D,
0xF7, 0x3F, 0x43, 0x3D, 0x98, 0x9D, 0x6C, 0x3D, 0x98, 0x9D, 0x6C, 0x3D,
0x5C, 0x8F, 0x88, 0x3D, 0x5C, 0x8F, 0x88, 0x3D, 0x28, 0x07, 0x98, 0x3D,
0x28, 0x07, 0x98, 0x3D, 0x4F, 0x72, 0xA4, 0x3D, 0x4F, 0x72, 0xA4, 0x3D,
0x9E, 0x81, 0xAD, 0x3D, 0x9E, 0x81, 0xAD, 0x3D, 0xD5, 0x07, 0xB3, 0x3D,
0xD5, 0x07, 0xB3, 0x3D,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6C, 0xBD,
0x98, 0x9D, 0x6C, 0xBD, 0x97, 0x56, 0x43, 0xBD, 0x97, 0x56, 0x43, 0xBD,
0x5A, 0x15, 0x16, 0xBD, 0x5A, 0x15, 0x16, 0xBD, 0x91, 0xA5, 0xCB, 0xBC,
0x91, 0xA5, 0xCB, 0xBC, 0xA0, 0xC4, 0x4D, 0xBC, 0xA0, 0xC4, 0x4D, 0xBC
};
static int sineCur = 0;
void generateSine(unsigned char *dest, unsigned int size) {
for (int i = 0; i < size; i += 4) {
dest[i] = sine_44k_stereo[sineCur];
dest[i + 1] = sine_44k_stereo[sineCur + 1];
dest[i + 2] = sine_44k_stereo[sineCur + 2];
dest[i + 3] = sine_44k_stereo[sineCur + 3];
sineCur = (sineCur + 4) % sizeof(sine_44k_stereo);
}
}
int main() {
aacp *aac = aac_encode_open(44100, 2, 64000, 1, 1000, AAC_LC, 32);
FILE * file = fopen("libaactest.aac", "wb");
unsigned char tempSine[8192];
unsigned char *outBuf;
unsigned int outSize = 0;
for (int i = 0; i < 1024; i++) {
generateSine(tempSine, 8192);
aac_encode(aac, tempSine, 8192, &outBuf, &outSize);
fwrite(outBuf, 1, outSize, file);
}
fclose(file);
// generateSine(tempSine, 4096);
// aac_encode(aac, tempSine, 4096, outBuf, &outSize)
}