博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
SoC Vendor Dependencies for Media Resource Manager
阅读量:6050 次
发布时间:2019-06-20

本文共 2036 字,大约阅读时间需要 6 分钟。

SoC Vendor Dependencies for Media Resource Manager

This document is intended to help system on chip vendors (SoCs) properly implement support for priority, operating rate and the hooks needed for Android media resource manager.

1. OMX_ErrorInsufficientResources


The codec component should return OMX_ErrorInsufficientResources on GetHandle, Init, UseBuffer, AllocateBuffer or a state transition if the failure is due to insufficient resource. The error code will be used by the media resource manager as the indicator to potentially preempt media resource from other lower priority process.

An Android Compatibility Test Suite (CTS) test exists to allocate, configure and start each codec repeatedly until catching OMX_ErrorInsufficientResources (pass) or any other error (fail).

2. OMX_IndexConfigPriority


This configuration lets the application describe desired codec priority.

The associated value is an integer. Higher value means lower priority. Currently, only two levels are supported:

  • 0: realtime priority - meaning that the codec shall support the given performance configuration (e.g. framerate) at realtime. This will only be used by media playback, capture, and possibly by realtime communication scenarios if best effort performance is not suitable.
  • 1: non-realtime priority (best effort). This is the default value.

Vendor is suggested to use this as a hint used at codec configuration and resource planning - to understand the realtime requirements of the application.

Don’t assume realtime priority unless it is configured to 0.

3. OMX_IndexConfigOperatingRate


This configuration lets the application describe operating frame rate for video or sample rate for audio at which the codec will need to operate.

This is used for cases like high-speed/slow-motion video capture, where the video encoder format contains the target playback rate (e.g. 30fps), but the component must be able to handle the high operating capture rate (e.g. 240fps).

This rate should be used for resource planning and setting the operating points.

转载地址:http://ysxex.baihongyu.com/

你可能感兴趣的文章
C++基础代码--20余种数据结构和算法的实现
查看>>
footer固定在页面底部的实现方法总结
查看>>
nginx上传文件大小
查看>>
HDU 2243 考研路茫茫——单词情结(自动机)
查看>>
Dubbo OPS工具——dubbo-admin & dubbo-monitor
查看>>
Dungeon Master ZOJ 1940【优先队列+广搜】
查看>>
Delphi 中的 XMLDocument 类详解(5) - 获取元素内容
查看>>
2013年7月12日“修复 Migration 测试发现的 Bug”
查看>>
学习vue中遇到的报错,特此记录下来
查看>>
CentOS7 编译安装 Mariadb
查看>>
jstl格式化时间
查看>>
一则关于运算符的小例
查看>>
cronexpression 详解
查看>>
一周小程序学习 第1天
查看>>
小孩的linux
查看>>
JavaScript History对象
查看>>
在 Windows 下安装 Oracle 11g XE (Express Edition)
查看>>
ListView优化
查看>>
【原创】 PostgreSQL 实现MySQL 的auto_increment 字段
查看>>
vs2015添加vc助手
查看>>