Documentation
¶
Overview ¶
Codec2 H.264 encoding via HIDL hwbinder.
This example connects to the Codec2 software IComponentStore via HIDL hwbinder, creates an H.264 encoder component, feeds a single gray YUV frame, and reports the result.
Build:
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -buildmode=pie -o build/codec2_encode ./examples/codec2_encode/ patchelf --set-interpreter /system/bin/linker64 --replace-needed libdl.so.2 libdl.so --replace-needed libpthread.so.0 libc.so --replace-needed libc.so.6 libc.so build/codec2_encode adb push build/codec2_encode /data/local/tmp/ && adb shell /data/local/tmp/codec2_encode
Click to show internal directories.
Click to hide internal directories.