我的目标是进行微调以找到正确的线程优先级.
我关注的线程位于/ hardware/my_company/codec/openmax_il /下
我修改了2个文件
Android.mk
在LOCAL_C_INCLUDES列表中添加"$(TOP)/ system/core/include",如下所示
LOCAL_C_INCLUDES:= \
blur blur blur
$(TOP)/hardware/my_company/camera/v4l2_camerahal \
$(TOP)/system/core/include
Run Code Online (Sandbox Code Playgroud)在我的源文件中.
#include <cutils/properties.h>
int componentInit(blur blur blur)
{
int ret = 0;
blur blur blur
// To find proper thread priority
char value[92];
property_get("omx.video_enc.priority", value, "0");
setVideoEncoderPriority(atoi(value));
return ret;
}
Run Code Online (Sandbox Code Playgroud)但是,我遇到了链接错误
error: undefined reference to 'property_get'
collect2: ld returned 1 exit status
Run Code Online (Sandbox Code Playgroud)
如果有人帮忙,那对我来说会很好.:)
谢谢