libopenapv: Move payload_data declaration inside loop Move the declaration of payload_data inside the while loop in oapvd_vlc_metadata to ensure it is fresh for each iteration and avoid any potential for stale pointers being loop-carried. This is a follow-up to ensure the fix for a heap double-free vulnerability is robust and idiomatic. This change was autogenerated by MendIt (go/androidmendit). Bug: 503554745 Test: m oapv_fuzzer Flag: EXEMPT BUGFIX Cherrypick-From: https://googleplex-android-review.googlesource.com/q/commit:fdcd322e4b704dcda2e0d1c32b59abe2d9dd8b5f Merged-In: Ibabefa7da8878cf07b3f76e4b67f14269e6d018e Change-Id: Ibabefa7da8878cf07b3f76e4b67f14269e6d018e
OpenAPV provides the reference implementation of the APV codec which can be used to record professional-grade video and associated metadata without quality degradation. OpenAPV is free and open source software provided by LICENSE.
The OpenAPV supports the following features:
The APV codec is a professional video codec, which was developed in response to the need for professional level high quality video recording and post production. The primary purpose of the APV codec is for use in professional video recording and editing workflows for various types of content.
APV codec utilizes technologies known to be over 20 years old to achieve a royalty free codec. APV builds a video codec using only conventional coding technologies, which consist of traditional methods published between the early 1980s and the end of the 1990s.
The APV codec standard has the following features:
Build Requirements
For ARM
For Windows (crosscompile)
Build Instructions PC (Linux)
cmake -DCMAKE_BUILD_TYPE=Release -S . -B build cmake --build build
Build Instructions ARM (Crosscompile)
cmake -S . -B build-arm -DCMAKE_TOOLCHAIN_FILE=aarch64_toolchain.cmake -DCMAKE_BUILD_TYPE=Release cmake --build build-arm
Build Instructions Windows (Crosscompile)
cmake -S . -B build-windows -DCMAKE_TOOLCHAIN_FILE=windows_x86_64_toolchain.cmake -DCMAKE_BUILD_TYPE=Release cmake --build build-windows
Output Location
Encoder requires raw YCbCr file (422, 444), 10-bit or more, as input.
Displaying help:
oapv_app_enc --help
Encoding:
oapv_app_enc -i input_1920x1080_yuv422_10bit.yuv -w 1920 -h 1080 -d 10 -z 30 --input-csp 2 -o encoded.apv oapv_app_enc -i input.y4m -o encoded.apv
Decoder output can be in yuv or y4m formats.
Displaying help:
oapv_app_dec --help
Decoding:
oapv_app_dec -i encoded.apv -o output.y4m
Pattern file of APV bitstream for ImHex is provided here.
In build directory run ctest
For generating package ready for distribution (default deb) execute in build directory cpack, or other formats (tgz, zip etc.) cpack -G TGZ.
This project is using the following versioning scheme API-SET.MAJOR.MINOR.PATCH. It's mostly based on Semantic Versioning with addition of API-SET on first place. Project and library share a common version number.
See LICENSE file for details.