History log of /hardware/intel/common/omx-components/videocodec/OMXVideoEncoderAVC.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
11c1c17fed35585f9256031ee70db1c6c18d0219 30-Jun-2015 Yuanjun Huang <yuanjun.huang@intel.com> Revert "omx-component: Adding media resource management support"

Bug: 20165724

A more comprehensive codec level resource manager is
implemented.

This reverts commit f832fbe64172f3dcde2bf8d7f960375efd8a30d9.

Change-Id: Ia45655873c9b7e9d57bed6c8d5dad29e219a2e3c
/hardware/intel/common/omx-components/videocodec/OMXVideoEncoderAVC.cpp
f832fbe64172f3dcde2bf8d7f960375efd8a30d9 13-May-2015 Yuanjun Huang <yuanjun.huang@intel.com> omx-component: Adding media resource management support
for each codec.

Initial implementation.

Implement returning OMX_ErrorInsufficientResources case.

Bug: 20165724
Change-Id: I88a7229f6342bbfb8cb36b7dc9629b81e2debf93
Signed-off-by: Yuanjun Huang <yuanjun.huang@intel.com>
/hardware/intel/common/omx-components/videocodec/OMXVideoEncoderAVC.cpp
c2a698e6f8c510e0660eedf5ca1efcdeed2dcebc 18-Sep-2014 ywan171 <yi.a.wang@intel.com> fix the slice number per frame to be 1 for AVC encoder

Bug: 17417613
BZ: 223835

Change-Id: If81db13bddeb4b80ce08f0701715eced3ff9e286
Signed-off-by: ywan171 <yi.a.wang@intel.com>
/hardware/intel/common/omx-components/videocodec/OMXVideoEncoderAVC.cpp
0541f11be2f78b558476772f1f877e140f9d844b 24-Jul-2014 ywan171 <yi.a.wang@intel.com> remove warning in omx-component

BZ: 209178

remove warning in omx-component except the warning caused by
AOSP header file OMX_VideoExt.h

Change-Id: Iacef8ca69281fa1f489f4a3dbdc949cef54978d7
Signed-off-by: ywan171 <yi.a.wang@intel.com>
Reviewed-on: https://android.intel.com/220523
Reviewed-by: Fourdan, Olivier <olivier.fourdan@intel.com>
Tested-by: Fourdan, Olivier <olivier.fourdan@intel.com>
/hardware/intel/common/omx-components/videocodec/OMXVideoEncoderAVC.cpp
88e64cfe7880b3ee81c3e5e34b37a408eb855680 21-Apr-2014 gji2 <guoliang.ji@intel.com> Set cabac as default encode parameter

BZ: 190561

Set cabac as default encode parameter
compatible for webrtc baseline + cavlc

Change-Id: Ie7808a79db5f6db9fea9f3bd2bceb70023673679
Signed-off-by: gji2 <guoliang.ji@intel.com>
/hardware/intel/common/omx-components/videocodec/OMXVideoEncoderAVC.cpp
d6909bc46ae314eb3cf17b411c095ede37c7465e 07-Apr-2014 gji2 <guoliang.ji@intel.com> High profile feature direct_8x8_inference_flag setting enable

BZ: 185130

High profile feature direct_8x8_inference_flag setting enable

Change-Id: I1886daee7ded9b3f43f83f607a7f8ad42eb75df9
Signed-off-by: gji2 <guoliang.ji@intel.com>
/hardware/intel/common/omx-components/videocodec/OMXVideoEncoderAVC.cpp
12654b707eb7c53bff659edcd04aba32b14a5849 19-Mar-2014 gji2 <guoliang.ji@intel.com> remove OMX_VIDEO_INTEL_PARAM_BITRATETYPE

BZ:180440

remove OMX_VIDEO_INTEL_PARAM_BITRATETYPE

Change-Id: I54d2b084ab709f0fbdce94e42895cca45dcf47a7
Signed-off-by: gji2 <guoliang.ji@intel.com>
/hardware/intel/common/omx-components/videocodec/OMXVideoEncoderAVC.cpp
10ec5f6421a756a47d3b129051661e79ffed524f 05-Jan-2014 gji2 <guoliang.ji@intel.com> Enhance the omx-component encode stack log print fucntion.

BZ: 162650

Enhance the omx-component encode stack log print fucntion.
To let the log be easily enabled without rebuild the omx-component stack.
Usage: adb shell setprop omxenc.debug 1

Change-Id: I20c2fc26b3caff89049c31fbdc9067bc3740be00
Signed-off-by: gji2 <guoliang.ji@intel.com>
/hardware/intel/common/omx-components/videocodec/OMXVideoEncoderAVC.cpp
76193fa028b47ec6e41c7142ff3ccf0e376cdc48 18-Dec-2013 Liu Bolun <bolun.liu@intel.com> Fix CTS failed case

BZ: 157514

Add a new case for CTS test case.

Change-Id: I1a4f09e428816d5426b046a8a3935d085857675e
Signed-off-by: Liu Bolun <bolun.liu@intel.com>
/hardware/intel/common/omx-components/videocodec/OMXVideoEncoderAVC.cpp
21ef2953a5795040584bea50bf5fb8dd7051a224 05-Dec-2013 Zhao Liang <leo.zhao@intel.com> Refine OMXVideoEncoderAVC to work in real async mode

BZ: 150664

each frame encoding is separated into 2 steps, one is encode(),
the other is getoutput(), encode() has higher priority than getoutput(),
if more buffers in inport queue, these frames will be encoded immediately
utils encoder work queue is full, then start getoutput().

Change-Id: Ib1d0ac0bfc040504e17199e4bfad170a728f52f2
Signed-off-by: Zhao Liang <leo.zhao@intel.com
/hardware/intel/common/omx-components/videocodec/OMXVideoEncoderAVC.cpp
d7335ebe601f03f24d166e992b8c998e750908f6 02-Dec-2013 Liu Bolun <bolun.liu@intel.com> Add some pathes to fix CTS failed issue.

BZ: 153777

Due to async encode mode, add new judgement for processing EOS flag to avoid CTS test fail.

Change-Id: Id6b86ecbac6ad1cbafff9bb1ca20a05b05c31651
Signed-off-by: Liu Bolun <bolun.liu@intel.com>
/hardware/intel/common/omx-components/videocodec/OMXVideoEncoderAVC.cpp
f4b681dd65a754a7bb8551a1c9088bfaa6c3ef46 26-Nov-2013 Zhao Liang <leo.zhao@intel.com> Remove opaque Source Type detecting logic

BZ: 156038

start code prefix NALU format is always default format

Change-Id: Ib2e937f3c7fdc9349bcf7f7109b934565486228b
Signed-off-by: Zhao Liang <leo.zhao@intel.com>
/hardware/intel/common/omx-components/videocodec/OMXVideoEncoderAVC.cpp
5e797fded8842fa4aaa87812311397b04bf46d54 16-Oct-2013 Zhao Liang <leo.zhao@intel.com> [PDK KK ABSP] omx-component: rename MetadataBufferType

BZ: 141313

Rename MetadataBufferType as IntelMetadataBufferType to avoid data type redefinition.

Change-Id: Icba60fbc8a51f7567a67611569ba926c40f8f385
Signed-off-by: Zhao Liang <leo.zhao@intel.com>
Signed-off-by: Dan Liang <dan.liang@intel.com>
/hardware/intel/common/omx-components/videocodec/OMXVideoEncoderAVC.cpp
34dc9ab15e6b6c6a9bd0c24d1529224e937d429f 11-Nov-2013 Zhao Liang <leo.zhao@intel.com> remove live effect code

BZ: 151334

replaced by low level libmix implementation

Change-Id: I51cbe1f781d4a30af59bbba1172cb801f32e1a48
Signed-off-by: Zhao Liang <leo.zhao@intel.com>
/hardware/intel/common/omx-components/videocodec/OMXVideoEncoderAVC.cpp
75fff19d64c6554afa97cf6ce6c692c75df416f0 05-Nov-2013 wfeng6 <wei.feng@intel.com> Fix the video editor export failure on PDK

BZ: 143767

When video editor starts encoding, it will first feed a
dump frame to the encoder and give a NULL buffer to signal
the EOS. Encoder middleware will be stuck in
VideoEncoderAVC->getOutput. In this fix, when this happens
we just return OMX_ErrorNone to avoid deadlock.

Change-Id: I35089df9ca1728cfec3af5e9e0638615999009eb
Signed-off-by: wfeng6 <wei.feng@intel.com>
/hardware/intel/common/omx-components/videocodec/OMXVideoEncoderAVC.cpp
f6e051517175c02fb493a6a75e7d92a328df6e91 17-Oct-2013 liubolun <bolun.liu@intel.com> [PORT FROM R43-STABLE]Fix CTS failed case testSignalSurfaceEOS.

BZ: 145207

When recieved EOS signal and the input buffer size is zero,
OMX component should return but get the next output data.

Change-Id: I6689986055b42e80831d9aae5726192b7a1f8ede
Signed-off-by: liubolun <bolun.liu@intel.com>
/hardware/intel/common/omx-components/videocodec/OMXVideoEncoderAVC.cpp
dc8fe1fa4719615fe23bf24bf54925a5ff5f7fda 04-Sep-2013 liubolun <bolun.liu@intel.com> Fix video encode middlerware bug for CTS test case.

BZ: 134835

OMX Component don't get output when EOS reached that caused
mismatching between the expected and real the encoded
frame numbers. Modify code style.
Just walk round setting Nalu type.

Change-Id: I590e41ddfd114e3e5d98640d62058ffa33eb3c3f
Signed-off-by: liubolun <bolun.liu@intel.com>
Reviewed-on: http://android.intel.com:8080/129766
Reviewed-by: Zhao, Leo <leo.zhao@intel.com>
Reviewed-by: Yuan, Shengquan <shengquan.yuan@intel.com>
Reviewed-by: Shi, PingX <pingx.shi@intel.com>
Tested-by: Shi, PingX <pingx.shi@intel.com>
Reviewed-by: cactus <cactus@intel.com>
Tested-by: cactus <cactus@intel.com>
/hardware/intel/common/omx-components/videocodec/OMXVideoEncoderAVC.cpp
88c8d2ab4d97fe48ed25c3adff105f2cef5a2d36 23-Aug-2013 Zhao Liang <leo.zhao@intel.com> Support Sync mode video encoding in omx

BZ: 131021

Use one new ext parameter to control sync mode, this mode is used for timelapse recording

Signed-off-by: Zhao Liang <leo.zhao@intel.com>

Change-Id: I099d62d02bdf28598893d7167486b4d5f1623120
Reviewed-on: http://android.intel.com:8080/127318
Reviewed-by: Zhao, Leo <leo.zhao@intel.com>
Reviewed-by: Yuan, Shengquan <shengquan.yuan@intel.com>
Reviewed-by: Shi, PingX <pingx.shi@intel.com>
Tested-by: Shi, PingX <pingx.shi@intel.com>
Reviewed-by: cactus <cactus@intel.com>
Tested-by: cactus <cactus@intel.com>
/hardware/intel/common/omx-components/videocodec/OMXVideoEncoderAVC.cpp
c9d4c8ce4a28d852e006427a1f01ee334e022938 28-Apr-2013 ywan171 <yi.a.wang@intel.com> [PDK MR2 ABSP] this change is caused by removing duplicate omx header file between khronos and google framework in wrs_core

BZ: 117349

Change-Id: I3f7c8d3fb7044512d7589120d56054f6ab76dade
Signed-off-by: ywan171 <yi.a.wang@intel.com>
/hardware/intel/common/omx-components/videocodec/OMXVideoEncoderAVC.cpp
aaefabb42927db20baba7e55bf7e16e607e581e2 02-Jul-2013 Khanh V. Nguyen <khanh.v.nguyen@intel.com> Retain the requested NaluFormat

BZ: 120399

This patch makes sure NaluFormat is set to default base on input
only when it was not explicitly requested by the caller

Change-Id: Idc8bd5f468761696d7bcf9b4088d33c13bdbef6c
Signed-off-by: Khanh V. Nguyen <khanh.v.nguyen@intel.com>
Reviewed-on: http://android.intel.com:8080/116451
Reviewed-by: Zhao, Leo <leo.zhao@intel.com>
Reviewed-by: Ding, Haitao <haitao.ding@intel.com>
Reviewed-by: Shi, PingX <pingx.shi@intel.com>
Tested-by: Shi, PingX <pingx.shi@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
/hardware/intel/common/omx-components/videocodec/OMXVideoEncoderAVC.cpp
828a2823300f3e2c8b95a3d00957145942572288 09-Apr-2013 jiguoliang <guoliang.ji@intel.com> high profile feature enable

BZ:101039

Make the OMX SetParamVideoAvc/GetParamVideoAvc be effect for passing the High profile
param such as cabac and so on.
Signed-off-by: jiguoliang <guoliang.ji@intel.com>

Change-Id: I7b5f3b32daf5d90e48902152c9912f82e4ed9cc6
Reviewed-on: http://android.intel.com:8080/100639
Reviewed-by: cactus <cactus@intel.com>
Reviewed-by: Ji, Guoliang <guoliang.ji@intel.com>
Reviewed-by: Yuan, Shengquan <shengquan.yuan@intel.com>
Reviewed-by: Shi, PingX <pingx.shi@intel.com>
Tested-by: Shi, PingX <pingx.shi@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
/hardware/intel/common/omx-components/videocodec/OMXVideoEncoderAVC.cpp
cdc52a0c7741ed048da15d9ef44d8fcb0d168cef 21-Mar-2013 Chang Ying <ying.chang@intel.com> VE: resolve compile issue on baytrail

BZ: 94688

Remove dependance on IMG legacy data structure on baytrail.

Change-Id: I267ecefdb8ceaaa0c5c55c58d019e2fb8851dab9
Signed-off-by: Chang Ying <ying.chang@intel.com>
Reviewed-on: http://android.intel.com:8080/97700
Reviewed-by: cactus <cactus@intel.com>
Reviewed-by: Feng, Wei <wei.feng@intel.com>
Reviewed-by: Imberton, Guilhem <guilhem.imberton@intel.com>
Reviewed-by: Gummadi, Latha C <latha.c.gummadi@intel.com>
Tested-by: Gummadi, Latha C <latha.c.gummadi@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
/hardware/intel/common/omx-components/videocodec/OMXVideoEncoderAVC.cpp
30736b960fca5337c0e89021f2ff8779475b4ef8 08-Jan-2013 Zhao Liang <leo.zhao@intel.com> new frame type detection/parameter setting and get default profile by querying

BZ: 87331

use new rule to define IpPeriod/IntraPeriod/IdrInterval, and get default profile by new parameter

Change-Id: Iff842054db50a994638bde527170724a9b933920
Reviewed-on: http://android.intel.com:8080/85483
Reviewed-by: Zhao, Leo <leo.zhao@intel.com>
Reviewed-by: cactus <cactus@intel.com>
Reviewed-by: Yuan, Shengquan <shengquan.yuan@intel.com>
Reviewed-by: Shi, PingX <pingx.shi@intel.com>
Tested-by: Shi, PingX <pingx.shi@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
/hardware/intel/common/omx-components/videocodec/OMXVideoEncoderAVC.cpp
0b8865606abd7a1e2c4e7db2cf44fdf583bdd77a 24-Jan-2013 Zhao Liang <leo.zhao@intel.com> Flush retain buffer at processing frame 2

BZ: 82486

Due to input buffer number changed to 2 on Yukb, it will cause ANR.
releasing input buffer in time will fix issue.

Change-Id: I337151144b5d9fb74d592a2b9859a50bcc18a722
Signed-off-by: Zhao Liang <leo.zhao@intel.com>
Reviewed-on: http://android.intel.com:8080/88362
Reviewed-by: cactus <cactus@intel.com>
Reviewed-by: Yuan, Shengquan <shengquan.yuan@intel.com>
Reviewed-by: Shi, PingX <pingx.shi@intel.com>
Tested-by: Shi, PingX <pingx.shi@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
/hardware/intel/common/omx-components/videocodec/OMXVideoEncoderAVC.cpp
dbb4b89361b47ddf1988c654c5cc8e07818dd5ec 16-Jan-2013 Zhao Liang <leo.zhao@intel.com> highprofile encoding support

BZ: 76824

enable HiP Video Encode support in omx-componment

1) infrastructure
2) Cache implementation / operation
3) EOS/EOE processing
4) Adapt with new encode/getOutput model
5) Frame status analysis / set according to parameters like Profile/B frame etc
6) Use pPlatformPrivate to store NSTOP info
7) add the unsupport setting return info

Change-Id: Id1332a7a32f02c65a63b2af405a216194178902c
Signed-off-by: Zhao Liang <leo.zhao@intel.com>
Reviewed-on: http://android.intel.com:8080/87035
Reviewed-by: Yuan, Shengquan <shengquan.yuan@intel.com>
Reviewed-by: Shi, PingX <pingx.shi@intel.com>
Tested-by: Shi, PingX <pingx.shi@intel.com>
Reviewed-by: cactus <cactus@intel.com>
Tested-by: cactus <cactus@intel.com>
/hardware/intel/common/omx-components/videocodec/OMXVideoEncoderAVC.cpp
e4876b874be60356322ca55b467fd0ee096ee7ab 15-Jan-2013 Juan Antonio Gozalvez Herrero <jgozalvx> Revert "MRFLD highprofile encoding support"

BZ: 76824

This reverts commit fbf1cd362697bbb3b12162408e03f87f9b122ab1.
This reverts patch http://android.intel.com:8080/#/c/67485/

Change-Id: Id1b04d3ad21f5b340b04daac24a8e8ec548a779d
Orig-Change-Id: I8cc469dd7ea37b1c9989a55adec3b1834c4aa905
Reviewed-on: http://android.intel.com:8080/86741
Reviewed-by: Gozalvez Herrero, Juan AntonioX <juan.antoniox.gozalvez.herrero@intel.com>
Tested-by: Gozalvez Herrero, Juan AntonioX <juan.antoniox.gozalvez.herrero@intel.com>
Reviewed-by: cactus <cactus@intel.com>
Tested-by: cactus <cactus@intel.com>
/hardware/intel/common/omx-components/videocodec/OMXVideoEncoderAVC.cpp
0d275ff362298b443c828f09f593bfb674112bbd 24-Sep-2012 Zhao Liang <leo.zhao@intel.com> MRFLD highprofile encoding support

BZ: 76824

enable HiP Video Encode support in omx-componment

1) infrastructure
2) Cache implementation / operation
3) EOS/EOE processing
4) Adapt with new encode/getOutput model
5) Frame status analysis / set according to parameters like Profile/B frame etc
6) Use pPlatformPrivate to store NSTOP info
7) add the unsupport setting return info

Change-Id: I8cc469dd7ea37b1c9989a55adec3b1834c4aa905
Signed-off-by: Zhao Liang <leo.zhao@intel.com>
Reviewed-on: http://android.intel.com:8080/67485
Reviewed-by: Yuan, Shengquan <shengquan.yuan@intel.com>
Reviewed-by: Shi, PingX <pingx.shi@intel.com>
Tested-by: Shi, PingX <pingx.shi@intel.com>
Reviewed-by: cactus <cactus@intel.com>
Tested-by: cactus <cactus@intel.com>
/hardware/intel/common/omx-components/videocodec/OMXVideoEncoderAVC.cpp
cae415b84125ffc14bfdb121394a60b74d506f48 08-Oct-2012 Yanli <yanli@yanli-HP-Compaq-8100-Elite-SFF-PC.(none)> omx-components: fix CTS MediaCodecListTest failure issue

BZ: 54024

Implement interface for GetParam with OMX_IndexParamVideoProfileLevelQuerySupported correctly for openmax encode component.

Change-Id: If53ca95e57b950e50b29c6efbc431d85b0839210
Signed-off-by: Zhang Yanli <yanli.l.zhang@intel.com>
Reviewed-on: http://android.intel.com:8080/69235
Reviewed-by: Shi, PingX <pingx.shi@intel.com>
Tested-by: Shi, PingX <pingx.shi@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
/hardware/intel/common/omx-components/videocodec/OMXVideoEncoderAVC.cpp
eb4e0f24d9e07fc733cf93cc883ecb9ab830b896 03-Oct-2012 Remy Protat <remyx.protat@intel.com> Revert "omx-components: fix CTS MediaCodecListTest failure issue"

BZ: 54024

This reverts commit 78445c361f411cd154c40936ed6e01b82334fd3e.

Change-Id: I306634a24e1d67c5b3141fc620197d28c6a93d01
Signed-off-by: Remy Protat <remyx.protat@intel.com>
Reviewed-on: http://android.intel.com:8080/68899
/hardware/intel/common/omx-components/videocodec/OMXVideoEncoderAVC.cpp
c28131c7f4fd7a6506e46cededc4ae2657dd75de 25-Sep-2012 Yanli <yanli@yanli-HP-Compaq-8100-Elite-SFF-PC.(none)> omx-components: fix CTS MediaCodecListTest failure issue

BZ: 54024

Implement interface for GetParam with OMX_IndexParamVideoProfileLevelQuerySupported correctly for openmax encode component.

Change-Id: I29d318e62ee3d3b1a105b01b34af4576006997ac
Signed-off-by: Yanli <yanli@yanli-HP-Compaq-8100-Elite-SFF-PC.(none)>
Reviewed-on: http://android.intel.com:8080/67661
Reviewed-by: Yuan, Shengquan <shengquan.yuan@intel.com>
Reviewed-by: Shi, PingX <pingx.shi@intel.com>
Tested-by: Shi, PingX <pingx.shi@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
/hardware/intel/common/omx-components/videocodec/OMXVideoEncoderAVC.cpp
28516617d7c679a9d1c4d1a5a29af157eb25cc29 12-Sep-2012 Chang Ying <ying.chang@intel.com> AVCE: Add AndroidOpaque input color format support

BZ: 34659

Briefly, this implies that encoder can use texture object as
source buffer. On our platform texture object is represented as
buffer_handle_t and in RGB color format, however encoder only supports
YUV color space, so a color space conversion is needed.

Change-Id: Iad91a911184e0c6e66576b3c0bd402f1636b933f
Signed-off-by: Chang Ying <ying.chang@intel.com>
Reviewed-on: http://android.intel.com:8080/66722
Reviewed-by: Jiang, Fei <fei.jiang@intel.com>
Reviewed-by: Shi, PingX <pingx.shi@intel.com>
Tested-by: Shi, PingX <pingx.shi@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
/hardware/intel/common/omx-components/videocodec/OMXVideoEncoderAVC.cpp
124cae864848ce34be2113421ca73194802fb029 18-Jul-2012 hding3 <haitao.ding@intel.com> [PORT FROM R3] [omx-component] drop the frame when meet HW error.

BZ: 41694

port from R3 http://android.intel.com:8080/#/c/56814/

Change-Id: I463a0baec3d38998646e20aae48e992c56756b5c
Signed-off-by: Zhao Liang <leo.zhao@intel.com>
Signed-off-by: hding3 <haitao.ding@intel.com>
Reviewed-on: http://android.intel.com:8080/63517
Reviewed-by: Tang, Richard <richard.tang@intel.com>
Reviewed-by: Feng, Wei <wei.feng@intel.com>
Reviewed-by: Wang, Lili A <lili.a.wang@intel.com>
Reviewed-by: Wang, Elaine <elaine.wang@intel.com>
Reviewed-by: Ji, Guoliang <guoliang.ji@intel.com>
Reviewed-by: Shi, PingX <pingx.shi@intel.com>
Tested-by: Shi, PingX <pingx.shi@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
/hardware/intel/common/omx-components/videocodec/OMXVideoEncoderAVC.cpp
3b0173bed5cf2c4044399cd2466425c39c62e597 23-Aug-2012 Liu Bolun <bolunx.liu@intel.com> [PORT FROM R3]Add null pointer protection before passing to encoder

BZ: 53189

Under rare circumstance, the pointer of video encodermight be null which
will cause media server died. So, we need adding protection before using it.
If it is null pointer, return OMX_ErrorBadParameterto omx client to avoid
TOMBSTONE failure. Modifying for code style.
Signed-off-by: Liu Bolun <bolunx.liu@intel.com>

Change-Id: I276e93710ca36fdb06440812fb9be1fa98379c2d
Reviewed-on: http://android.intel.com:8080/63258
Reviewed-by: Liu, BolunX <bolunx.liu@intel.com>
Reviewed-by: Wang, Elaine <elaine.wang@intel.com>
Reviewed-by: Shi, PingX <pingx.shi@intel.com>
Tested-by: Shi, PingX <pingx.shi@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
/hardware/intel/common/omx-components/videocodec/OMXVideoEncoderAVC.cpp
13bdc6512d6b7ee90de2ced4459b76e05ce797af 20-Jun-2012 Chang Ying <ying.chang@intel.com> [Port from R3]AVCE: Low bitrate/resolution VQ tuning

BZ: 40475 41836

Impacted parameters:
1.disable_deblocking_filter_idc always set to '0'
2.intra period set to '30'
3.slice number set to '2' for resolution <= VGA

BZ41836 can also be fixed by intra period setup.

Change-Id: Ic5612210a2afe41660f709411e400591cd48526f
Signed-off-by: Chang Ying <ying.chang@intel.com>
Reviewed-on: http://android.intel.com:8080/53395
Reviewed-by: Ding, Haitao <haitao.ding@intel.com>
Tested-by: Ding, Haitao <haitao.ding@intel.com>
Reviewed-by: Yuan, Shengquan <shengquan.yuan@intel.com>
Reviewed-by: Zhao, Leo <leo.zhao@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
Reviewed-on: http://android.intel.com:8080/57185
/hardware/intel/common/omx-components/videocodec/OMXVideoEncoderAVC.cpp
15e74b4bab492385ae63009b6d6bbe3dcb2ccf84 30-Jul-2012 Zhao Liang <leo.zhao@intel.com> set default NALU out format as OMX_NaluFormatStartCodesSeparateFirstHeader in raw mode

BZ: 49453

To support video editor, in omx videoencoder,
set default nalu out format as OMX_NaluFormatStartCodesSeparateFirstHeader in raw mode,
and OMX_NaluFormatLengthPrefixedSeparateFirstHeader in metadata mode.

Change-Id: I0e2458757a3c5cae20f32a1523fff677c8da0cc2
Signed-off-by: Zhao Liang <leo.zhao@intel.com>
Reviewed-on: http://android.intel.com:8080/59508
Reviewed-by: Feng, Wei <wei.feng@intel.com>
Reviewed-by: Ding, Haitao <haitao.ding@intel.com>
Tested-by: Ding, Haitao <haitao.ding@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
/hardware/intel/common/omx-components/videocodec/OMXVideoEncoderAVC.cpp
4ce57b82fa719f2aa9247c7f4a44853715a29987 23-Jul-2012 Guoliang Ji <guoliang.ji@intel.com> Video omx-component: video enhancement implementation

BZ: 48107

Delete the share buffer mechanism, add the meta data mode modification.

Change-Id: Icdc0ae1d8e3c0e012966631055591553362e5542
Signed-off-by: Guoliang Ji <guoliang.ji@intel.com>
Signed-off-by: Zhao Liang <leo.zhao@intel.com>
Reviewed-on: http://android.intel.com:8080/58200
Reviewed-by: Ding, Haitao <haitao.ding@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: Ding, Haitao <haitao.ding@intel.com>
/hardware/intel/common/omx-components/videocodec/OMXVideoEncoderAVC.cpp
d128eedd844b44fa32ae952216d74d64b3b58a4f 26-Jun-2012 Ji Guoliang <guoliang.ji@gmail.com> [video omx-component] modify initialization handling of InitialQp and MinQP.

BZ: 42892

modify initialization handling of InitialQp and MinQP to make the two value can be re-calculation in psb-video.

Signed-off-by: Ji Guoliang <guoliang.ji@gmail.com>

Change-Id: I416a9d2385a4d3dc36117f389af232add96f823a
Signed-off-by: Ji Guoliang <guoliang.ji@gmail.com>
Reviewed-on: http://android.intel.com:8080/54073
Reviewed-by: Ji, Guoliang <guoliang.ji@intel.com>
Reviewed-by: Wang, Elaine <elaine.wang@intel.com>
Reviewed-by: Ding, Haitao <haitao.ding@intel.com>
Tested-by: Ding, Haitao <haitao.ding@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
/hardware/intel/common/omx-components/videocodec/OMXVideoEncoderAVC.cpp
6540b054b9f0beae74d92e2e006822cf67962b50 10-May-2012 wgu11 <wangyi.gu@intel.com> Movie studio: code cleanup for NV12 patch(part 4)

BZ: 33204

Clean up the video editor NV12 patch and get prepared for upstream.

Change-Id: I3b6459557d7e85affe6fb675883d2e482f302749
Signed-off-by: wgu11 <wangyi.gu@intel.com>
Reviewed-on: http://android.intel.com:8080/48164
Reviewed-by: Ding, Haitao <haitao.ding@intel.com>
Tested-by: Ding, Haitao <haitao.ding@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
/hardware/intel/common/omx-components/videocodec/OMXVideoEncoderAVC.cpp
f6a3749057cc9109f768e7c2c78945e721208034 28-Apr-2012 Chang Ying <ying.chang@intel.com> VEAVC: Add return vaule check for VideoEncoderAVC::getOutput

BZ: 28122

Add return vaule check for VideoEncoderAVC::getOutput

Change-Id: I10894467ef07458c085406f7407a3467d246b159
Signed-off-by: Chang Ying <ying.chang@intel.com>
Reviewed-on: http://android.intel.com:8080/46666
Reviewed-by: Yuan, Shengquan <shengquan.yuan@intel.com>
Reviewed-by: Ding, Haitao <haitao.ding@intel.com>
Tested-by: Ding, Haitao <haitao.ding@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
/hardware/intel/common/omx-components/videocodec/OMXVideoEncoderAVC.cpp
6bc8d027bb46c0638d26b3f755350b84f6325de3 03-Feb-2012 wfeng6 <wei.feng@intel.com> Video editor enabling (Part 4)

BZ: 21677 22177

Add handlers to query the video decoder and encoder profiles and levels to support video editor.

Change-Id: I39a7482cdd4327ed75464e14604399b999199119
Signed-off-by: wfeng6 <wei.feng@intel.com>
Reviewed-on: http://android.intel.com:8080/33365
Reviewed-by: Ding, Haitao <haitao.ding@intel.com>
Tested-by: Ding, Haitao <haitao.ding@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
/hardware/intel/common/omx-components/videocodec/OMXVideoEncoderAVC.cpp
e2cc802b1588648ff0a8b45a102d3d2663209c77 28-Dec-2011 Ji Guoliang <guoliangx.ji@gmail.com> VideoEncode: port omx-components from R2 to R3

BZ: 18528

merge/port the changes of R2 to R3

Change-Id: I2d770dbca9531ef0ed36c4b5cc6299db1f632bb3
Signed-off-by: Ji Guoliang <guoliangx.ji@gmail.com>
Reviewed-on: http://android.intel.com:8080/30063
Reviewed-by: Ji, GuoliangX <guoliangx.ji@intel.com>
Reviewed-by: Yuan, Shengquan <shengquan.yuan@intel.com>
Reviewed-by: Chang, Ying <ying.chang@intel.com>
Reviewed-by: Ding, Haitao <haitao.ding@intel.com>
Tested-by: Ding, Haitao <haitao.ding@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
/hardware/intel/common/omx-components/videocodec/OMXVideoEncoderAVC.cpp
2bfa6ad0118934357b8eb42c85c5b8d075e0bf23 24-Nov-2011 Shuo Liu <shuo.liu@intel.com> CAMERA: modify hardware omx encoder to support avc capture

BZ: 15257
1. add setParameter() for storeMetaDataInBuffers
2. comment the prefixed length nalu format and restore the start code nalu format

Change-Id: Ia3c239a7d1e8788e1acddd060245c37ee4040f7d
Signed-off-by: Shuo Liu <shuo.liu@intel.com>
Reviewed-on: http://android.intel.com:8080/25226
Reviewed-by: Seibel, Eric <eric.seibel@intel.com>
Tested-by: Seibel, Eric <eric.seibel@intel.com>
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Tested-by: Gross, Mark <mark.gross@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
/hardware/intel/common/omx-components/videocodec/OMXVideoEncoderAVC.cpp
80114224b110cdd1707292e6283e970e08b513f0 05-Nov-2011 Weian Chen <weian.chen@intel.com> omx-components: to enable length prefixed at OMX layer

BZ: 13281

Enable length prefixed bit stream type in OMX IL wrapper
Signed-off-by: Weian Chen <weian.chen@intel.com>

Change-Id: Icde35514e385b48b9d4296c1ac775045f1bf56e1
Reviewed-on: http://android.intel.com:8080/23224
Reviewed-by: Fang, Yanlong <yanlong.fang@intel.com>
Reviewed-by: Chen, Weian <weian.chen@intel.com>
Tested-by: Ding, Haitao <haitao.ding@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
/hardware/intel/common/omx-components/videocodec/OMXVideoEncoderAVC.cpp
19b2ab9f325bdbf3afe530e943fa5a0c0020b308 13-Sep-2011 Shuduo Sang <shuduo.sang@intel.com> [PORT FROM R1][omx-components] New OMX IL wrapper based on new encoder library

BZ: 5809

New OMX IL wrapper based on new encoder library

Change-Id: Idd5c9d30eca102d9516504f8be52bbbb8e664ddb
Orig-Change-Id: I7edf2ff47fb27ad0a63586328b765110ef32ddba
Signed-off-by: Weian Chen <weian.chen@intel.com>
Reviewed-on: http://android.intel.com:8080/18324
Tested-by: Sang, Shuduo <shuduo.sang@intel.com>
Reviewed-by: Monnier, OlivierX <olivierx.monnier@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
/hardware/intel/common/omx-components/videocodec/OMXVideoEncoderAVC.cpp
e7ace334fb7c64f7b32aa3746e5a11bcefa60bfb 15-Jun-2011 Andy Qiu <junhai.qiu@intel.com> new repartitioned omx video codec.

Change-Id: Ia8bfcb10589edbf71c79f10b977d67a1d0ccbee5
BZ: 3372
/hardware/intel/common/omx-components/videocodec/OMXVideoEncoderAVC.cpp