1

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?

4

1 回答 1

0

libstagefrighthw库只是将供应商专有媒体框架与libstagefrightAndroid 中的框架修补的“胶水”代码。此方法用于实现特定于硬件的自定义编解码器

您看到的代码是很久以前同步到“主线”Android 存储库的代码qcomti对于特定于 tegra 的代码,您需要获得适当的 Tegra 开发存储库。(可能吗?)


您可能还想查看CM 10.2存储库中的Tegra3代码。libstagefrighthw

于 2014-03-23T05:56:59.720 回答