13
CONFIDENTIAL
DOC-USR-0097-05
____________________________________________________________________________________
Z3 Technology, LLC
♦
100 N. 8th St. STE 250
♦
Lincoln, NE 68508-1369 USA
♦
+1.402.323.0702
CODE OVERVIEW
Once you have untarred the code, you will see the following top-level directories:
build-tools
Config files and scripts for building the codebase
hevc_sdk
The encoder SDK code
factory
Factory testing scripts (the user can disregard these)
sysapps
Various supporting applications
z3apps
Z3 demo application code and scripts
The Z3 application code that comes with the Z3-HE1080-RPS is run from the serial_menu.lua script in
z3apps/hevc_app/scripts/. This code calls the /opt/mcsenc binary, which initializes and runs the encoder.
This binary is built from the z3apps/hevc_app/encode_app directory. The code for the binary resides in
z3apps/hi35xx_app/encode_app. The z3apps/hevc_app directory is described in more detail in the next
section.
6.1
The z3apps/rdk Directory
There are three main subdirectories: encode_app, hevc_audio, and scripts
6.1.1
encode_app
This directory contains the code for the encoder application
The file mcsenc.cpp is responsible for setting the output mode of the encoder. Output to file, rtp,
and MPEG2-TS are handled here.
6.1.2
hevc_audio
This directory contains the code for the audio encode API.
6.1.3
scripts
This directory contains the control scripts for the serial user interface and HTTP-based web user
interface.
6.2
Z3 Application Overview
6.2.1
Application Names and Locations
The application binary can be found at /opt/mcsenc.