No description
Find a file
Ram Mohan 196f0dbaec libavcenc: use number_t while computing number of bits in period
For large intra frame intervals or for a choice of bit rate that causes
large bits per frame, it possible that while computing number of bits
available in the gop overflow the datatype bounds. For these
calculations use number_t as this offers wider space

Bug: oss-fuzz-63044
Test: avc_enc_fuzzer

Change-Id: Ifee9130f0021f77905aea67832abc044537088e5
2023-10-18 06:55:59 -07:00
.github/workflows Encoder test updates 2023-09-28 10:22:54 +05:30
cmake cmake: Set C standard to C90 and move few macros to specific targets 2022-08-30 20:00:54 +00:00
common svcenc: Enabled and verified 420sp inputs 2023-10-10 07:07:21 -07:00
decoder mvcdec: Integer overflow in imvcd_parse_subset_sps 2023-10-13 07:13:14 -07:00
encoder libavcenc: use number_t while computing number of bits in period 2023-10-18 06:55:59 -07:00
examples libavcenc: Sync default values of library and application 2023-10-04 13:51:14 -07:00
fuzzer ossfuzz.sh: enable null sanitizer 2023-08-01 23:02:16 -07:00
tests Add dependency on googletest for AvcEncTest 2023-10-17 11:02:51 -07:00
.clang-format Decoder: MVC decoding support added 2022-08-06 05:51:31 +00:00
.gitignore Encoder test updates 2023-09-28 10:22:54 +05:30
Android.bp Rename test as examples 2023-09-28 10:22:54 +05:30
CMakeLists.txt Encoder test updates 2023-09-28 10:22:54 +05:30
FrameInfo.md Decoder: add support for QP and block_type map export in library 2022-05-17 09:55:20 +05:30
libavc_blocklist.txt Encoder: SVC encoding support added 2023-01-30 11:07:10 -08:00
LICENSE Add LICENSE to fix lint warning 2023-01-26 01:10:25 +00:00
METADATA Add METADATA to libavc: Apache2=NOTICE 2020-04-30 16:15:18 -07:00
MODULE_LICENSE_APACHE2 Add MODULE_LICENSE_* and NOTICE file for libavc projet. 2016-03-14 14:36:00 -07:00
NOTICE Add MODULE_LICENSE_* and NOTICE file for libavc projet. 2016-03-14 14:36:00 -07:00
OWNERS OWNERS: Include avic_OWNERS 2023-08-11 15:54:38 -07:00
PREUPLOAD.cfg point to new repo hooks for mainline uploads 2020-05-26 15:16:18 -07:00
README.md Builds: Modular cmake scripts added 2022-02-02 11:14:55 +05:30

LIBAVC

Getting Started Document

LibAVC build steps

Supports:

  • aarch32/aarch64 on Linux.
  • aarch32/aarch64 on Android.
  • x86_32/x86_64 on Linux.

Native Builds

Use the following commands for building on the target machine

$ cd external/libavc
$ mkdir build
$ cd build
$ cmake ..
$ make

Cross-compiler based builds

Building for x86_32 on a x86_64 Linux machine

$ cd external/libavc
$ mkdir build
$ cd build
$ CFLAGS="-m32" CXXFLAGS="-m32" LDFLAGS="-m32" cmake ..
$ make

Building for aarch32/aarch64

Update 'CMAKE_C_COMPILER', 'CMAKE_CXX_COMPILER', 'CMAKE_C_COMPILER_AR', and 'CMAKE_CXX_COMPILER_AR' in CMAKE_TOOLCHAIN_FILE passed below

$ cd external/libavc
$ mkdir build
$ cd build

For aarch64

$ cmake .. -DCMAKE_TOOLCHAIN_FILE=../cmake/toolchains/aarch64_toolchain.cmake
$ make

For aarch32

$ cmake .. -DCMAKE_TOOLCHAIN_FILE=../cmake/toolchains/aarch32_toolchain.cmake
$ make