SoC Vendor Dependencies for Media Resource Manager

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.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值