I want to find the hardware codec codec of tegra 3 in android source code(4.1). In the source code I found
// /androidos/android4.1/frameworks/av/media/libstagefright/omx
void OMXMaster::addVendorPlugin() {
addPlugin("libstagefrighthw.so");
}
void OMXMaster::addPlugin(const char *libname) {
mVendorLibHandle = dlopen(libname, RTLD_NOW);
// some code
if (createOMXPlugin) {
addPlugin((*createOMXPlugin)());
}
}
void OMXMaster::addPlugin(OMXPluginBase *plugin) {
// some code
while ((err = plugin->enumerateComponents(
name, sizeof(name), index++)) == OMX_ErrorNone) {
String8 name8(name);
if (mPluginByComponentName.indexOfKey(name8) >= 0) {
ALOGE("A component of name '%s' already exists, ignoring this one.",
name8.string());
continue;
}
mPluginByComponentName.add(name8, plugin);
}
// some code
}
So, the android OS will load libstagefrighthw.so when need to encode/decode video with hardware. Since tegre 3 support h.264 hareware codec ( link ), I want to find the code in the android OS. But I only find qcom and TI's code.
Does anyone can help point out where to find the tegra 3 hardware codec code?