aboutsummaryrefslogtreecommitdiffstats
path: root/videocodec
Commit message (Collapse)AuthorAgeFilesLines
...
* omx-component: performance optimization for dynamic resolution changeywan1712014-07-212-4/+16
| | | | | | | | | | | BZ: 162482 When there is no need of buffer reallocation during dynamic resolution change do not flush output surface queue; just attach a DRC tag to the buffer of difference resolution, and send FormatChange to omx client when the buffer with DRC tag is output. Change-Id: I1ea2288b113e51645dcb75c4ca28ca9d132c2800 Signed-off-by: ywan171 <yi.a.wang@intel.com>
* Enhance the omx-component encode stack log print fucntion.gji22014-07-217-10/+19
| | | | | | | | | | | 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>
* WIDEVINE: Fix to handle,frames with no start codes or no slice header infoSuneel Kandru2014-07-211-8/+16
| | | | | | | | | BZ: 155960 In case of 0 NALU headers drop that frame and move on. Change-Id: I32142d659d37fabbaca3888230c76be8f14f9ca3 Signed-off-by: Suneel Kandru <suneel.kandru@intel.com>
* Enable Max Frame Size setting for VP8 encodeLiu Bolun2014-07-212-4/+30
| | | | | | | | | BZ: 162278 Add the related handler in OMX components. Change-Id: I613e7376da76ed91bcfc71917e6410698788b50a Signed-off-by: Liu Bolun <bolun.liu@intel.com>
* Enable VP8 HW encode for screen recordLiu Bolun2014-07-211-1/+1
| | | | | | | | | | BZ: 161797 Change the mime type from "video/x-webm" to "video/x-vnd.on2.vp8" to enable access VP8 HW encoder via MediaCodec::CreateByType. Change-Id: I7256256fd43e32442059ee2cb1f405d528596aab Signed-off-by: Liu Bolun <bolun.liu@intel.com>
* Adding a case for the platform variant, "moorefield" in the makefileDongwon Kim2014-07-213-3/+27
| | | | | | | | | | | BZ: 159031 Need review from VIDEO DECODER team This patch adds moorefield cases in the makefile. It also fixes the outdated name for the platform, "merrplus" to "moorefield" Change-Id: I326011789d1c23d24f9490c7a4f4521ef9802f2c Signed-off-by: Dongwon Kim <dongwon.kim@intel.com>
* initialize new parameters added in rcParameter for I-qp setting and max_qp ↵Zhao Liang2014-07-211-0/+8
| | | | | | | | | | | settting BZ: 157407 initialize to 0 to avoid confusion Change-Id: I16b4c284fbaca0a42244649f35b11a611a452cfa Signed-off-by: Zhao Liang <leo.zhao@intel.com>
* Fix CTS failed caseLiu Bolun2014-07-211-2/+2
| | | | | | | | | BZ: 157514 Add a new case for CTS test case. Change-Id: I1a4f09e428816d5426b046a8a3935d085857675e Signed-off-by: Liu Bolun <bolun.liu@intel.com>
* Refine OMXVideoEncoderAVC to work in real async modeZhao Liang2014-07-213-197/+190
| | | | | | | | | | | | 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
* omx-component: enable tile format for VXD392 on Baytrail platformTang, XiaoxiX2014-07-219-2/+71
| | | | | | | | | | BZ: 141202 Change the eColorFormat's value to HAL_PIXEL_FORMAT_NV12_X_TILED_INTEL and pass the tiling information by the flag mVASurfaceAttrib->flags. Change-Id: Id005eb9c8057ddb9e68a3b468678fa5db8800bc5 Signed-off-by: Tang, XiaoxiX <xiaoxix.tang@intel.com>
* Support CIR featuregji22014-07-211-25/+23
| | | | | | | | | BZ:156747 Support CIR feature Change-Id: I5fa13a8b6eac86679ff195fdc4096c451be37e67 Signed-off-by: gji2 <guoliang.ji@intel.com>
* Remove check of unused size variable in memory allocationRyan Saffores2014-07-215-25/+8
| | | | | | | | | | | | BZ: 157703 Removing the check and return on failure of the size variable for secure memory allocation. For secure playback INPORT_BUFFER_SIZE is used instead and the requested size is ignored so no need to check if the size requested is > INPORT_BUFFER_SIZE. Change-Id: Ic98eff2941ef07a9dbd041df839d43b53f67fc42 Signed-off-by: Ryan Saffores <ryan.d.saffores@intel.com>
* Adding secure video decoder for cherrytrail build targetRyan Saffores2014-07-215-1/+1297
| | | | | | | | | BZ: 156337 Adding directory with secure video decoder for cherrytrail Change-Id: I736304a467298e097b5059c94eaf6d00f5939334 Signed-off-by: Ryan Saffores <ryan.d.saffores@intel.com>
* Adding secure video decoder for merrplus build targetRyan Saffores2014-07-213-0/+561
| | | | | | | | | | BZ: 156327 Adding directory with secure video decoder for merrplus build target to enable Anniedale PO Change-Id: I39c083f633228894e186c8bff69d1dd73444728b Signed-off-by: Ryan Saffores <ryan.d.saffores@intel.com>
* Add some pathes to fix CTS failed issue.Liu Bolun2014-07-211-1/+13
| | | | | | | | | 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>
* Fix the set config error when widi display launch the encodergji22014-07-211-18/+3
| | | | | | | | | BZ: 154696 Fix the set config error when widi display launch the encoder Change-Id: I4b7037c98f84c85568b6e2ab5c17e8d41347c3b0 Signed-off-by: gji2 <guoliang.ji@intel.com>
* Remove opaque Source Type detecting logicZhao Liang2014-07-213-35/+12
| | | | | | | | | BZ: 156038 start code prefix NALU format is always default format Change-Id: Ib2e937f3c7fdc9349bcf7f7109b934565486228b Signed-off-by: Zhao Liang <leo.zhao@intel.com>
* Support VP8 HW encode on KitKat.Liu Bolun2014-07-211-1/+1
| | | | | | | | | | | | BZ: 155742 Due to update to KK, Google had separated VP8 and VP9 encode. The role name "video_encoder.vpx" had been dropped. Change it to "video_encoder.vp8". Change-Id: If62302f610333bb980684e3de9e8c3272867c01c Signed-off-by: Liu Bolun <bolun.liu@intel.com> Signed-off-by: pingshix <pingx.shi@intel.com>
* [PORT FROM MAIN JB-MR2] Eble dynamic setting bitrate/framerate/K frame for ↵liubolun2014-07-213-7/+42
| | | | | | | | | | | | | VP8 encode. BZ: 153768 Add a pair of get/set config function for seting k frame; Add codecs judgement for bitrate/frame rate setting in VCM mode. Change-Id: Ic86ceee7aadb7b296917ee340a732c79141b551c Orig-Change-Id: I6ffdad79cbe19ec8cdb753837ac48f87069b6f5d Signed-off-by: liubolun <bolun.liu@intel.com>
* [PORT FROM MAIN JB-MR2] Remove hardcode in Android.mkElaine Wang2014-07-211-4/+0
| | | | | | | | | | | | | BZ: 152922 There were 2 lines refer to vendor/intel/hardware/cc54/libsepdrm/ but sep_*.h isn't included in any source code under videocodec. Remove these 2 lines. Change-Id: If133bc01a9e6d21fcd76f604de91af630225369f Orig-Change-Id: I8bc08b5d661a0943744cca08b5e220f044760fc9 Signed-off-by: Elaine Wang <elaine.wang@intel.com>
* [MERGE TO MAIN] fix the build issueYong Yao2014-07-211-0/+2
| | | | | Change-Id: I890627dc602cb778d174bc0eb146ad4ceba0ea71 Signed-off-by: Yong Yao <yong.yao@intel.com>
* [PDK KK ABSP] omx-component: rename VPX as VP8 due to KK header file changesDan Liang2014-07-212-3/+3
| | | | | | | | | BZ: 141313 Modify VPX to VP8 Change-Id: I27ab9e7e91c0183898b1a01cbbf7f9b8a7540288 Signed-off-by: Dan Liang <dan.liang@intel.com>
* [PDK KK ABSP] omx-component: rename MetadataBufferTypeZhao Liang2014-07-212-3/+3
| | | | | | | | | | 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>
* Set right color format for omx plugins using GEN HWwfeng62014-07-215-2/+27
| | | | | | | | | | BZ: 151374 Set color format to titled for omx plugins using GEN HW. Change-Id: Iec7b8c1ae828b04a784f8efd9d861a182398cd6f Signed-off-by: wfeng6 <wei.feng@intel.com>
* Remove direct dependencies to linux/modules/intel_mediaElaine Wang2014-07-213-7/+6
| | | | | | | | | | | | | | | BZ: 152015 There are some direct references to linux/modules/intel_media/common/psb_drm.h. This means that if intel_media directory is moved elsewhere, it breaks the build. Refer to the psb_drm.h under device/intel/common/kernel-headers/linux instead. If developer modify the psb_drm.h file in kernel, he should make the same change to the one in kernel-headers as well. Change-Id: I9b6dda7a6a31a62a4b902e739057831071837a88 Signed-off-by: Elaine Wang <elaine.wang@intel.com>
* omx-component: use pOutputPortPrivate instead to report errorDan Liang2014-07-211-13/+11
| | | | | | | | | BZ: 147912 use pOutputPortPrivate instead of pAppPrivate. Change-Id: I153edc9c6bbacbe16125d790fcc676008dffb33a Signed-off-by: Dan Liang <dan.liang@intel.com>
* omx decode: set tiling flag in config structure if using tiling formatLi Zeng2014-07-211-0/+2
| | | | | | | | | BZ: 151378 set tiling flag in config structure if using tiling format Change-Id: I3ac5bde0824f8da4826c239e1995b4b3311aa53b Signed-off-by: Li Zeng <li.zeng@intel.com>
* remove live effect codeZhao Liang2014-07-216-229/+8
| | | | | | | | | BZ: 151334 replaced by low level libmix implementation Change-Id: I51cbe1f781d4a30af59bbba1172cb801f32e1a48 Signed-off-by: Zhao Liang <leo.zhao@intel.com>
* [PORT FROM R42B-STABLE] BYT-DRM-WV: Changed secure video decoder to use ↵Paul Zurcher2014-07-216-474/+302
| | | | | | | | | | | | | | | | MEI/TXEI memory allocation BZ: 145997 Implemented support for 16MB memory reserved for MEI/TXEI and allocated through the MEI memory manager in WVCrypto. Removed 4MB workaround. Also: removed dependency on libsecvideoparser.so. Replaced byteswaps with native implementation. Bugfixed freeing of secure buffers. Port change: only build secure AVC decoder on supported platforms. Removed extraneous libraries and header references. Change-Id: Ic9b83d1f38638bde3af29d8ef49932a159d834d6 Signed-off-by: Paul Zurcher <paul.zurcher@intel.com>
* omx-component: enable memory tiling for VP8 decoderTianmi Chen2014-07-211-0/+5
| | | | | | | | | BZ: 150114 enable memory tiling for VP8 decoder Change-Id: I5e948156661f2e4852e04a183a750aaa0d1f338d Signed-off-by: Tianmi Chen <tianmi.chen@intel.com>
* Fix the video editor export failure on PDKwfeng62014-07-211-2/+1
| | | | | | | | | | | | | 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>
* pass original rotation information to decoder.Andy Qiu2014-07-211-4/+7
| | | | | | | | | | BZ: 149979 If rotation information is not set per buffer, original rotation information needs to be passed to video decoder. Change-Id: Id236e72206d136c62d546aa260e735b57b20ae60 Signed-off-by: Andy Qiu <junhai.qiu@intel.com>
* omx: open the macro VED_TILING for memory tiling in merrifield。Gu, Wangyi2014-07-211-0/+23
| | | | | | | | | BZ: 124110 Open the macro VED_TILING for memory tiling in merrifield Change-Id: I0b521015f1f241157e8bfde09c2a9394039ac6ee Signed-off-by: Gu, Wangyi <wangyi.gu@intel.com>
* omx-components: Pass rotation degree stored in pInputPortPrivate to libmixWeian Chen2014-07-211-0/+9
| | | | | | | | | | BZ: 148092 When pInputPortPrivate is set by client, we assume it is by webRTC and rotation degree is inside, we parse it out and send to libmix Change-Id: I133ed784fb60eb7ef5572e66fb35d646618105fa Signed-off-by: Weian Chen <weian.chen@intel.com>
* Remove some logs in VP8 encode middleware.liubolun2014-07-211-1/+1
| | | | | | | | | | BZ: 148853 According to WebRTC's comments, removing some logs that will be printed countless times. Change-Id: I7b7beb179b4dffa6e04024801b279f2856df0aff Signed-off-by: liubolun <bolun.liu@intel.com>
* [PORT FROM R42B-STABLE] BYT-DRM-WV: Removed locks from PAVP callsPaul Zurcher2014-07-212-8/+0
| | | | | | | | | BZ: 145681 Removed locks used to work around thread-safe issues in PAVP library. Change-Id: If37a3202a360b0a3254de2a3403f888a5d6ecba1 Signed-off-by: Paul Zurcher <paul.zurcher@intel.com>
* [PORT FROM R42B-STABLE] BYT-DRM_WV: Error handling fix and auto teardownPaul Zurcher2014-07-212-78/+47
| | | | | | | | | | | | | | | | | | | | | | BZ: 140058 Fixed error handling for frame transcryption/error and PAVP auto-teardown. For PAVP auto-teardown, set a mode to drop frames until the first IDR frame after the new PAVP session is created. Patch set 2: Removed 30ms delay when dropping non-IDR frames. Removed port buffer flush to fix OMXCodec buffer ownership error. Pruned dead code and fixed compiler warnings. Change-Id: I3aa6302f250056f9018fc644db4b3badd355cfa4 Signed-off-by: Paul Zurcher <paul.zurcher@intel.com> Reviewed-on: http://android.intel.com:8080/136175 Reviewed-by: Kandru, Suneel <suneel.kandru@intel.com> Reviewed-by: Cheng, Catherine <catherine.cheng@intel.com> Reviewed-by: Saffores, Ryan D <ryan.d.saffores@intel.com> Tested-by: Post, DavidX J <davidx.j.post@intel.com> Reviewed-by: cactus <cactus@intel.com> Tested-by: cactus <cactus@intel.com> Signed-off-by: Suneel Kandru <suneel.kandru@intel.com>
* omx-component: Add support for Error Report needed by WebRTCDan Liang2014-07-212-2/+35
| | | | | | | | | BZ: 147912 enable error report in omx component Change-Id: Id5728d95272e622d0199a94a20e6af9acc78044c Signed-off-by: Dan Liang <dan.liang@intel.com>
* omx-components: Use include-path-for MACRO for AOSP include pathsChetan Rao2014-07-211-3/+3
| | | | | | | | | | BZ: 121345 Need to remove hardcoded AOSP include paths from TOP of Android Tree. Instead include-path-for MACRO should be used. Change-Id: I5f05da363b6db5c7908d2209a327d54972093b32 Signed-off-by: Chetan Rao <chetan.rao@intel.com>
* add set/get function for VPPBufferNum in OMXYu, Linda2014-07-213-9/+74
| | | | | | | | | | BZ: 145717 1. add set/get function for VPPBufferNum in OMX 2. vpp buffer num should omit in decoder buffer comparison Change-Id: Id4bb404b4f001b1f27b72692a4ae1efc81db9531 Signed-off-by: Yu, Linda <linda.yu@intel.com>
* [PORT FROM R43-STABLE]Fix CTS failed case testSignalSurfaceEOS.liubolun2014-07-211-17/+16
| | | | | | | | | | 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>
* [PORT FROM R42-TW]omx-component: avoid crash when caller passes NULL ↵Weian Chen2014-07-211-3/+11
| | | | | | | | | | | | | | | | parameter to GetDecoderOutputCrop() BZ: 144625 Add parameter check for GetDecoderOutputCrop() to avoid crash, when the uplayer caller passes in the NULL pointer Add check for function SetDecoderRotation() also. Change-Id: I894446e0a8f8c57ac8defdc6fc52d9ecdd2aca7b Orig-Change-Id: I8a074d93a3784049765a0c5c7d881b00067b2b91 Signed-off-by: Weian Chen <weian.chen@intel.com> Signed-off-by: Dan Liang <dan.liang@intel.com>
* [PORT FROM R43-STABLE]Enlarge the size of OMX Component output buffer size ↵liubolun2014-07-211-1/+1
| | | | | | | | | | | | to fix CTS failed cases. BZ: 147297 Setting the size of output buffer as the raw data size--width*height*1.5. It can fix some CTS failed cases. Change-Id: I3f972ef281984119d259a8e8024e02647dbef823 Signed-off-by: liubolun <bolun.liu@intel.com>
* omx-component: Move raw buffer mode related codeTianmi Chen2014-07-212-69/+6
| | | | | | | | | | | | | | | | | | BZ: 144930 Move raw buffer mode related code Change-Id: I8786919a1aa85a63d0efd974d5bd41adbc91581f Signed-off-by: Tianmi Chen <tianmi.chen@intel.com> Reviewed-on: http://android.intel.com:8080/138245 Reviewed-by: Wang, Yi A <yi.a.wang@intel.com> Reviewed-by: Gu, Wangyi <wangyi.gu@intel.com> Reviewed-by: Feng, Wei <wei.feng@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: cactus <cactus@intel.com> Tested-by: cactus <cactus@intel.com>
* Config omx to insert SPS/PPS before each IDR framegji22014-07-212-0/+10
| | | | | | | | | | | | | | | | | BZ: 138989 config omx to insert SPS/PPS before each IDR frame Signed-off-by: gji2 <guoliang.ji@intel.com> Change-Id: Ib4a2885e73a82f7f7d34fa0f0429310178f1a776 Reviewed-on: http://android.intel.com:8080/133633 Reviewed-by: Zhao, Leo <leo.zhao@intel.com> Reviewed-by: Yuan, Shengquan <shengquan.yuan@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: cactus <cactus@intel.com> Tested-by: cactus <cactus@intel.com>
* configure AIR/CIR parameters with index OMX_IndexParamVideoIntraRefreshgji22014-07-212-0/+66
| | | | | | | | | | | | | | | BZ: 138989 configure AIR/CIR parameters with index OMX_IndexParamVideoIntraRefresh Change-Id: Ifc5d36bc4975148935c4c148ad5707e180efb0fe Signed-off-by: gji2 <guoliang.ji@intel.com> Reviewed-on: http://android.intel.com:8080/133587 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>
* Fix video encode middlerware bug for CTS test case.liubolun2014-07-212-18/+52
| | | | | | | | | | | | | | | | | | | 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>
* Refine VP8 encode middlerware.liubolun2014-07-212-7/+26
| | | | | | | | | | | | | | | | | BZ: 135380 Add setconfig/getconfig for VP8 ref frame selection. Signed-off-by: liubolun <bolun.liu@intel.com> Change-Id: I9beeb922a39a0d374b9adc0541f800d78adf260a Reviewed-on: http://android.intel.com:8080/133853 Reviewed-by: Zhao, Leo <leo.zhao@intel.com> Reviewed-by: Liu, Bolun <bolun.liu@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>
* [PORT FROM R42B-STABLE] Change the omx plugin name for protected video on BYTwfeng62014-07-211-1/+1
| | | | | | | | | | | | | | | | | | BZ: 135095 Change the omx plugin name to "OMX.Intel.hw_vd.h264.secure" for protected video on BYT. Change-Id: I3d4cda888442cf8a649ef172dba48dc4b82d4a35 Signed-off-by: wfeng6 <wei.feng@intel.com> Reviewed-on: http://android.intel.com:8080/127882 Reviewed-by: Poornachandran, Rajesh <rajesh.poornachandran@intel.com> Tested-by: Post, DavidX J <davidx.j.post@intel.com> Reviewed-by: cactus <cactus@intel.com> Tested-by: cactus <cactus@intel.com> Reviewed-on: http://android.intel.com:8080/132667 Reviewed-by: Sun, Hang L <hang.l.sun@intel.com> Tested-by: Sun, Hang L <hang.l.sun@intel.com>
* [PORT FROM R42B-STABLE] BYT-DRM-WV-OMX: Enable thread sync in OMXRajesh Poornachandran2014-07-212-35/+53
| | | | | | | | | | | | | | | | | BZ: 132899 Enable thread sync support in OMX until support is available from PAVP lib. Route both Audio & Video decryption via SEC. Change-Id: Ied604066bdc3997c62a0d1c7303511cf69d8cd12 Signed-off-by: Rajesh Poornachandran <rajesh.poornachandran@intel.com> Reviewed-on: http://android.intel.com:8080/127249 Tested-by: Post, DavidX J <davidx.j.post@intel.com> Reviewed-by: cactus <cactus@intel.com> Tested-by: cactus <cactus@intel.com> Reviewed-on: http://android.intel.com:8080/132666 Reviewed-by: Sun, Hang L <hang.l.sun@intel.com> Tested-by: Sun, Hang L <hang.l.sun@intel.com>