summaryrefslogtreecommitdiff
path: root/mm-video-v4l2
AgeCommit message (Collapse)Author
2017-07-13mm-video-v4l2: vdec: Color ConcealmentUmesh Pandey
8 bit and 10bit color concealment can have 2 different values. Set separate conceal color values using extended controls. CRs-Fixed: 2073948 Change-Id: I861b166c7fc371b690c7ae9a3823c8777769f477
2017-07-13mm-video-v4l2: venc: Support for encoder MB based slice spacingShivendra Kakrania
Support is added in video encoder component to configure macroblock (MB) based slice header spacing. And also updated byte based slice header spacing. CRs-Fixed: 2067990 Change-Id: I99b2d8db49ef01299e8115886c6e27ef9858f125
2017-07-12mm-video-v4l2: vidc: Support for encoder/decoder low latencyShivendra Kakrania
Support is added in video encoder/decoder component to configure encoder/decoder low latency mode using vendor extension. Change-Id: I9265bdc61aa890a1f5fe895e423300f552d86201 CRs-Fixed: 2067894
2017-07-11mm-video-v4l2: venc: Support for frame accurate dynamic configShivendra Kakrania
To ensure frame accurate parameter configuration, support for 2 new vendor extensions is added: 1. “vendor.qti-ext-enc-app-input-control.enable” 2. “vendor.qti-ext-enc-input-trigger.timestamp” With these extensions dynamic video encoder properties can be applied at specific frame. CRs-Fixed: 2066874 Change-Id: Ie52e945216c37199f2d83a6c1513c43eb218cc12
2017-07-10Merge "mm-video-v4l2: vidc: Correct error handling"Linux Build Service Account
2017-07-10Merge "mm-video-v4l2: venc: WA: ignore colorspace set by client when executing"Linux Build Service Account
2017-07-10Merge "mm-video-v4l2: venc: Set 601-Limited colorspace for color-converted ↵Linux Build Service Account
buffers"
2017-07-06Merge "video: Move data dump location to vendor partition"Linux Build Service Account
2017-07-06Merge "Few Security fixes"Linux Build Service Account
2017-07-06mm-video-v4l2: venc: WA: ignore colorspace set by client when executingPraveen Chavan
[a] Client detects the (wrong) dataspace change on the first buffer and sets the colorspace to OMX. [b] OMX also tries to set the (correct) colorspace from the private-handle. Operations [a] and [b] happen in executing state from 2 different threads. Based on which sets at the end, VUI could be right or wrong. As a WA, ignore set_config() of color-aspects in executing state to eliminate [a] from the race. Bug: 62323441 CRs-Fixed: 2058030 Change-Id: Ida78ae290a8e020d40c44e9037635caa79b45f2e
2017-07-06mm-video-v4l2: venc: Set 601-Limited colorspace for color-converted buffersPraveen Chavan
Colorspace is derived from gralloc-handles for graphic-buffers and set to codec. RGBA8888 Buffers are converted to YUV via C2D and have 601-Limited color. When passed to the device-layer, such buffers do not have gralloc-handle and hence colorspace does not get set. Set colorspace as 601-L explicitly in such case to the codec. b/63147656 CRs-Fixed: 2070838 Change-Id: Iae2705b8f4256d8e76309d2d1adb7cb6d3eb1692
2017-07-05mm-video-v4l2: vidc: Correct error handlingSaurabh Kothawade
Component returns non-bool values from few functions when it is not supposed to. Update those return values with correct type. CRs-Fixed: 2071821 Change-Id: Ie4cd59abedd36e530229729814480b9ef144ac14
2017-07-03Merge "mm-video-v4l2: vidc: venc: Fix typo in resolution check"Linux Build Service Account
2017-07-03Merge "mm-video-v4l2: vidc: Remove stale code"Linux Build Service Account
2017-07-03Merge "mm-video-v4l2: vidc: venc: Reconfigure Intra refresh"Linux Build Service Account
2017-07-03Few Security fixesKarthikeyan Periasamy
Clean-up deprecated string manipulation functions and use the Safe APIs instead. CRs-Fixed: 2070747 Change-Id: I076ec5f224caa1fc99c21f61fc4a32932b3fcafc
2017-06-30Merge "media: Consolidates and implements XML based config reading"Linux Build Service Account
2017-06-30Merge "mm-video-v4l2: Support H263 and MPEG4 sw encoders."Linux Build Service Account
2017-06-30Merge "media: Fix log flooding"Linux Build Service Account
2017-06-30video: Move data dump location to vendor partitionUma Mehta
change dump location from /data/misc/media to /data/vendor/media. Change-Id: I2bac14a6e2835b12cdad0e11dadf433aae32da08 CRs-Fixed: 2066348
2017-06-30mm-video-v4l2: vidc: venc: Reconfigure Intra refreshSaurabh Kothawade
OMX component sets intra refresh period in terms of mb count. However, client can set intra refresh period in terms of frame count while using Android extension. This needs reconfiguration of intra refresh period when resolution change occurs. This change caches frame count for intra refresh and reconfigures mb count on port redefinition. CRs-Fixed: 2068787 Change-Id: Ida04f3e4ff7969ce2a2b36a0ae383a96d8c406fb
2017-06-29media: Consolidates and implements XML based config readingAmit Shekhar
Consolidates system/session properties into platform specific configs which can be parsed during media codec process start and the property values can be used during component initialization. This can also be used to switch properties between video sessions - based on PL/test- scenario requirements by making modifications to the config file and "restarting" media codec process Change-Id: Ia16accec5716b2337722c1e2e276702c75775d75 CRs-Fixed: 2066348
2017-06-29mm-video-v4l2: vidc: venc: Fix typo in resolution checkSaurabh Kothawade
Correct condition that validates resolution while enabling B-frames. CRs-Fixed: 2069398 Change-Id: Ia5e6cb85a4ff43ee7f4422fb2cc68e51f6284a0a
2017-06-29mm-video-v4l2: vidc: Remove stale codeSaurabh Kothawade
Clean up encoder and decoder code to remove handling for unsupported old platform. CRs-Fixed: 2068885 Change-Id: Ied8f7cc3ce25521aa0e354610d39497c0eacc88b
2017-06-29mm-video-v4l2: Support H263 and MPEG4 sw encoders.Anubhav Phukan
Required for omx-test-app. CRs-Fixed: 2069233 Change-Id: I10b4cb70c2726b0425f52ef6677585c203aac248
2017-06-29Merge "mm-video-v4l2: vidc: venc: Enable down scalar for encoding" into ↵Linux Build Service Account
video-userspace.lnx.3.0
2017-06-29Merge "mm-video-v4l2: vdec: Remove arbitrary bytes mode"Linux Build Service Account
2017-06-29Merge "mm-video-v4l2: vdec: Color Metadata based on client params"Linux Build Service Account
2017-06-28media: Fix log floodingAmit Shekhar
Currently, Output extradata logs are printed every frame. Remove the unnecessary logs. Change-Id: I086400d20ce2fd7e77e06538a518a871d57c7f89 CRs-Fixed: 2066348
2017-06-26mm-video-v4l2: vdec: Remove arbitrary bytes modeMaheshwar Ajja
Remove arbitrary bytes mode related code as this feature is depricated. CRs-Fixed: 2057133 Change-Id: Ic45d00cbab228a7e25333acc3016f3b9c3e412e1
2017-06-26mm-video-v4l2: common: Fixing read/set vendor function for 64 bitShivendra Kakrania
Fixing incorrect definition of read/set int 64 bit functions. CRs-Fixed: 2066858 Change-Id: If4ff6ea5a799325364c7f755895710b825d60a09
2017-06-26mm-video-v4l2: vidc: venc: Enable down scalar for encodingVaibhav Deshu Venkatesh
Make changes to add an extension which can enable/disable downscalar and also set the output width and height. Whenever Downscalar is enabled, the output port definition dimensions are ignored but downscalar width/height are used as ouput width/height. CRs-Fixed: 2064901 Change-Id: Ie15c0e0dde560baa56288981518ac77d4e3da59c
2017-06-26mm-video-v4l2: vdec: Color Metadata based on client paramsUmesh Pandey
- For VP9 HDR and HLG, hdr info and coloraspects are present in the container rather than the bitstream, hence client sets the color aspects and hdr info via setConfig of OMX_QTIIndexConfigDescribeColorAspects and OMX_QTIIndexConfigDescribeHDRColorInfo. Use the client coloraspects and hdr info when converting to color metadata. - ColorMetaData is now calculated from coloraspects. This helps in removing the colormetadata in future when android dataspace is enabled. - Deprecate COLOR_SPACE and instead use COLOR_METADATA to inform color aspects and hdr info on the gralloc metadata. CRs-Fixed: 2064193 Change-Id: I2054aed403808dde7d4a64ca1baa040dd418a1cd
2017-06-26mm-video-v4l2: venc: Support for QP vendor extensionShivendra Kakrania
Added support for vendor extension to configure QP dynamically. This vendor extension support is in additon to earlier default omx support of get extension index. Change-Id: I4136050cc7ac478768071332562e1ae3ce3094a9 CRs-Fixed: 2066228
2017-06-26mm-video-v4l2: vidc: Remove perf_lock settingsPraneeth Paladugu
perf_lock code is redundant and not needed anymore. Hence remove the same. CRs-Fixed: 2062950 Change-Id: I3e51155b9055882512556811313f7d7ff32f7fdb
2017-06-26Merge "mm-video-v4l2: remove compile flag TARGET_USES_MEDIA_EXTENSIONS" into ↵Linux Build Service Account
video-userspace.lnx.3.0
2017-06-26mm-video-v4l2: vdec: Fix reporting change in color-space to the clientPraveen Chavan
If the colorspace in bitstream gets updated, the client is notified. However, when the client comes back to read, it must be notified of the color-space values from bitstream (if specified) and use default (client's values) if unspecified. Exception: For VPX, return the stream colorspace only if client has unspecified aspects. Bug: 36373942 CRs-Fixed: 2058039 Change-Id: Ie7c387371c55c655115c040f94f6e712a6c8b322
2017-06-26mm-video-v4l2: remove compile flag TARGET_USES_MEDIA_EXTENSIONSPraveen Chavan
This flag was used to conditionally disable features not backwards compatible with older android versions. This is not needed anymore. Moreover, this was disabling the required features in builds where this flag was not defined. Bug: 62276042 CRs-Fixed: 2064239 Change-Id: Ie4d1754ee01b644aaafc4cd958ea858ebc5507ac
2017-06-26mm-video-v4l2: vidc: vdec: Optimize start-up latencyPraneeth Paladugu
Optimize start-up latency with following changes. - Check CROP values from HW instead of actual resolution to decide sufficiency. - Set optimal output buffer count to driver based on Codec. CRs-Fixed: 2063537 Change-Id: I292ff9081fcbc5e698d1fd23e050a07d71348e0b
2017-06-21mm-video-v4l2: vdec: Handle OutputCrop client extradataAmit Shekhar
Handle client extradata extension for Output Crop. Change-Id: I53dcd998bf63a3ffe6992f4a3659c0949a69bcaa CRs-Fixed: 2059318
2017-06-14mm-video-v4l2: vdec: Allocate input(bitstream) buffers as uncachedPraveen Chavan
Cache invalidation seems to be expensive operation on 8998. Using cached buffers and invalidating incurs more cost than copying on to uncached memory. This will help reduce the CPU utilization of the thread calling invalidation Bug: 36793371 CRs-Fixed: 2057245 Change-Id: Iec859323f50017e9bfbbae00dc4c89f1ee9524b3
2017-06-14Merge "mm-video-v4l2: vdec: New client extradata OutputCrop" into ↵Linux Build Service Account
video-userspace.lnx.3.0-dev
2017-06-12mm-video-v4l2: vdec: New client extradata OutputCropAmit Shekhar
Add new client extradata extension for Output Crop. Change-Id: I32a702539ae2f86789c291403050c5ec9d4d7688 CRs-Fixed: 2059318
2017-06-09mm-video-v4l2: venc: fix dimensions issue when rotation changedMaheshwar Ajja
If client sets rotation 90 the video output port dimensions will be flipped. If client sets rotation again with 270 then dimensions are not expected to flip agian. Fix this kind of rotation issue by saving the rotation inside video component. Also skip setting rotation to video driver if rotation is not changed. CRs-Fixed: 2059188 Change-Id: Ic00f3ce3291f83c9f9bb8fef6da79f7705a0b8c9
2017-06-07mm-video-v4l2: venc: Clean up slice mode handlingSaurabh Kothawade
Remove stale definitions for slice-mode and merge handling for MB and BYTE based slice-mode in a single function. CRs-Fixed: 2051408 Change-Id: I7f774d61868229c32551634c3f15aeeda9d20b61
2017-06-07mm-video-v4l2: venc: Add support for B-framesSaurabh Kothawade
Allow B-frames in encode for H264 and HEVC. B-frames are enabled by default for camcorder use-cases. Validate intra period against system capabilities and recalibrate GOP if required. CRs-Fixed: 2051943 Change-Id: I3fa4579eadd544977a2d7310d90f7938f6b85ff6
2017-05-31mm-video-v4l2: Redesign C2D interfaceKarthikeyan Periasamy
Removed dynamic linking of the intermediate library. Added more input/output color format support. CRs-Fixed: 2038471 Change-Id: Idbd6ad8c6f29b8257f8c8ddb5c7c55db4d3b61cb
2017-05-25mm-video-v4l2: vdec: Add extradata support in decoderManikanta Kanamarlapudi
- Create new Input and Output extradata ports. - Add port definition support on extradata ports. - Add changes to use and free the buffers on extradata port. CRs-Fixed: 2047901 Change-Id: I4bddb1f55b87df118aa28948784ffa55399f4d36
2017-05-21Merge "mm-video-v4l2: venc: Skip buffer queue defer if timestamp is not ↵Linux Build Service Account
initialized" into video-userspace.lnx.3.0-dev
2017-05-21mm-video-v4l2: venc: Skip buffer queue defer if timestamp is not initializedMaheshwar Ajja
Skip buffer queue deferring mechanism if timestamp is not initialized. CRs-Fixed: 2036002 Change-Id: Id3647ffcd48933e5dfc8831c28714e96a6b91f6c