Updated on 2022-03-13 GMT+08:00

HelloDavinci Process Framework

This section describes the process of implementing the HelloDavinci sample code.

If you are familiar with this process, directly go to HelloDavinci Compilation and Running and check the running result.

This sample demonstrates how to send data from the host to the device, return the generated character string from the device to the host, save the result, and print it to the terminal. As shown in Figure 1, the program is divided into two parts running on the host side (including SrcEngine and DstEngine) and device side (including HelloDavinci), respectively. The running process is as follows:

  1. The main function is called to send data to SrcEngine.
  2. SrcEngine forwards the received data to HelloDavinci, which generates the character string "This message is from HelloDavinci" and sends it to DstEngine.
  3. After receiving the character string, DstEngine saves it to ${workPath}/out/dacvinci_log_info.txt and sends a signal indicating the operation completion to the main function. ${workPath} is the root directory of the project.
  4. After the main function receives the completion signal, the graph is destroyed, information indicating the operation completion is printed on the terminal, and the program exits.
Figure 1 HelloDavinci process framework