summaryrefslogtreecommitdiff
path: root/mm-video-v4l2
AgeCommit message (Collapse)Author
2021-02-12[LSC] Add LOCAL_LICENSE_KINDS to hardware/qcom/sdm845/mediaBob Badour
Added SPDX-license-identifier-Apache-2.0 to: libstagefrighthw/Android.mk Added SPDX-license-identifier-BSD to: libc2dcolorconvert/Android.mk libplatformconfig/Android.mk mm-video-v4l2/vidc/common/Android.mk mm-video-v4l2/vidc/vdec/Android.mk mm-video-v4l2/vidc/venc/Android.mk Added SPDX-license-identifier-BSD SPDX-license-identifier-MIT to: mm-core/Android.mk Bug: 68860345 Bug: 151177513 Bug: 151953481 Test: m all Exempt-From-Owner-Approval: janitorial work Change-Id: Iead7f221951694cd9da8358ce5d18ac9f34b52dd
2020-02-26Merge remote-tracking branch ↵android-mainline-12.0.0_r112android-mainline-11.0.0_r44android-mainline-11.0.0_r43android-mainline-11.0.0_r42android-mainline-11.0.0_r41android-mainline-11.0.0_r40android-mainline-11.0.0_r39android-mainline-11.0.0_r38android-mainline-11.0.0_r37android-mainline-11.0.0_r36android-mainline-11.0.0_r35android-mainline-11.0.0_r34android-mainline-11.0.0_r32android-mainline-11.0.0_r31android-mainline-11.0.0_r30android-mainline-11.0.0_r28android-mainline-11.0.0_r27android-mainline-11.0.0_r26android-mainline-11.0.0_r25android-mainline-11.0.0_r24android-mainline-11.0.0_r23android-mainline-11.0.0_r22android-mainline-11.0.0_r21android-mainline-11.0.0_r20android-mainline-11.0.0_r18android-mainline-11.0.0_r17android-mainline-11.0.0_r16android-mainline-11.0.0_r15android-mainline-11.0.0_r14android-mainline-11.0.0_r13android-mainline-11.0.0_r12aml_tz2_305400500aml_tz2_305400300aml_tz2_305400100aml_tz2_304500300aml_tz2_303900110aml_tz2_303900102aml_tz2_303800002aml_tz2_303800001aml_tz2_303200001android12-mainline-tzdata2-releaseandroid11-mainline-tethering-releaseandroid11-mainline-permission-releaseandroid11-mainline-os-statsd-releaseandroid11-mainline-networkstack-releaseandroid11-mainline-media-swcodec-releaseandroid11-mainline-media-releaseandroid11-mainline-extservices-releaseandroid11-mainline-documentsui-releaseandroid11-mainline-conscrypt-releaseandroid11-mainline-cellbroadcast-releaseandroid11-mainline-captiveportallogin-releaseandroid11-devaml_tz2_305400100Alex Hong
'goog/qcom/release/LA.UM.7.8.9.C2.08.00.00.618.012' into rvc-dev Conflicts: mm-video-v4l2/vidc/vdec/src/omx_vdec_v4l2.cpp Bug: 149539244 Change-Id: I1f76b1a162e331bad8e6af6b259aca271a212460
2020-02-11vdec: Set correct output buffer size: dynamic meta modePriyanka Gujjula
When frameworks queries for output buffer size on decoder via OMX_IndexParamPortDefinition, expectation is to return metadata buffer size instead of YUV buffer size in dynamic metadata mode. Test: CtsMediaTestCases & CtsVideoTestCases pass Bug: 147104052 Change-Id: Ica54841cbc81b29c4b3bfa0b58f94a0f82de300b
2020-01-06vdec: Set correct output buffer size: dynamic meta modePriyanka Gujjula
When frameworks queries for output buffer size on decoder via OMX_IndexParamPortDefinition, expectation is to return metadata buffer size instead of YUV buffer size in dynamic metadata mode. Change-Id: Ica54841cbc81b29c4b3bfa0b58f94a0f82de300b
2019-09-26mm-video-v4l2: venc: handle use after free on venc_devGovindaraj Rajagopal
pthread_join(msg_thread_id) is called after deleting venc_dev object. So member variables from venc_dev class is accessed in VencEncMsgThread. So changed the sequence to ensure thread_join before deleting venc_dev obj. Change-Id: I0b49d9d9051d1e4e01ee507fe87a6df88f2b986d Signed-off-by: Govindaraj Rajagopal <grajagop@codeaurora.org>
2019-02-15Merge remote-tracking branch 'goog/qcom/release/LA.UM.7.8.9.C1.08.00.00.516.083'Robin Peng
Conflicts: mm-video-v4l2/vidc/vdec/src/omx_vdec_v4l2.cpp mm-video-v4l2/vidc/venc/src/omx_video_base.cpp Bug: 124397977 Change-Id: I92df53d9ee300d501a9629355256364280fff595
2019-01-23media: Fix compilation error with logical OR operandSanthosh Behara
Fix compilation error with logical OR operand usage Change-Id: I4db58aecb8bea18c03262d60c75983e024b29fad
2018-12-24Merge remote-tracking branch 'goog/qcom/release/LA.UM.7.8.9.C1.08.00.00.516.007'Robin Peng
Conflicts: mm-video-v4l2/vidc/venc/inc/video_encoder_device_v4l2.h Bug: 121228685 Change-Id: I38dfda186f1d12cd2732808d1d8ebbda90946db4
2018-12-12venc: add break to switch statementUma Mehta
insert 'break;' to avoid fall-through to default case. Change-Id: I23e4067d906e635559d79bcd6bfbe0d2be5ff6db
2018-12-06Fix invalid logical constant creation in sdm845Yi Kong
This code incorrectly uses || to combine a bunch of state constants, fixes constant-logical-operand warning. Test: m checkbuild Change-Id: I51dedf2b34e270550e0e5f97ac30990f9a4669c6
2018-10-29Allow implicit-fallthrough warnings in video_encoder_device_v4l2.cpp. am: ↵Chih-Hung Hsieh
6afc17b75f am: 223643dc0f am: 1318f5939e Change-Id: I206d8fed55e2c78cdf75512f115aa9ee07e3ac43
2018-10-29Allow implicit-fallthrough warnings in video_encoder_device_v4l2.cpp. am: ↵Chih-Hung Hsieh
6afc17b75f am: 223643dc0f Change-Id: I2bbe05218a97ac34e59642c2695385e7477a63f3
2018-10-29Allow implicit-fallthrough warnings in video_encoder_device_v4l2.cpp.android-wear-8.0.0_r2Chih-Hung Hsieh
It will be a global error by default. Test: make checkbuild Bug: 112564944 Change-Id: I379c618465365363536aecf3f34e5105ea72e53a Exempt-From-Owner-Approval: do not block on new warnings
2018-10-16mm-video-v4l2: vdec: Typecast the value instead of addressMaheshwar Ajja
m_etb/ftb_q.pop_entry() will save the buffer header pointer address in the value of the variable passed. Use the value of this variable and not the address to typecast. Change-Id: I53b78dc47486c0ce4e934dd579c9212f269859e9 Signed-off-by: shubham <shubgupt@codeaurora.org>
2018-09-26Fix invalid logical constant creation in sdm845.Stephen Hines
This code incorrectly uses || to combine a bunch of state constants. The next Clang warns on this buggy pattern. hardware/qcom/sdm845/media/mm-video-v4l2/vidc/venc/src/omx_video_base.cpp:1097:40: error: use of logical '||' with constant operand [-Werror,-Wconstant-logical-operand] if (eState == (OMX_StateLoaded || OMX_StateWaitForResources ^ ~~~~~~~~~~~~~~~~~~~~~~~~~ hardware/qcom/sdm845/media/mm-video-v4l2/vidc/venc/src/omx_video_base.cpp:1097:40: note: use '|' for a bitwise operation if (eState == (OMX_StateLoaded || OMX_StateWaitForResources ^~ | Bug: http://b/110779387 Test: Build with new toolchain. Change-Id: If791d503a43740f83189f181964931a26cb77fe2
2018-09-05mm-video-v4l2: vdec: Correct order of reading color primariesandroid-9.0.0_r47android-9.0.0_r46android-9.0.0_r45android-9.0.0_r44android-9.0.0_r43android-9.0.0_r42android-9.0.0_r41android-9.0.0_r40android-9.0.0_r37android-9.0.0_r36pie-qpr3-s1-releasepie-qpr3-releasepie-qpr3-b-releasepie-b4s4-devSanthosh Behara
According to H265 spec, the color primaries should be in G,B,R order. But in the exisisting code they are read in R, G, B order. Correct the order of reading bitstream as per the specification. (Cherry-picked from: https://partner-android-review.googlesource.com/c/platform/hardware/qcom/sdm845/media/+/1120439) Bug: 111799726 Change-Id: Ic6703dcf7878c27e3e18e437039ddb74cf8d32d6 (cherry picked from commit acb885f628ccf4731d887d47300e5d9ff58b72b4)
2018-09-04media: venc: Fix compilation errorManikanta Kanamarlapudi
Use the "base" enum type when comparing against an extended enum value. CRs-Fixed: 2307726 Change-Id: I143194f4e688c747a487441c6c22e894176b4598
2018-08-17mm-video-v4l2: vdec: Correct order of reading color primariesSanthosh Behara
According to H265 spec, the color primaries should be in G,B,R order. But in the exisisting code they are read in R, G, B order. Correct the order of reading bitstream as per the specification. (Cherry-picked from: https://partner-android-review.googlesource.com/c/platform/hardware/qcom/sdm845/media/+/1120439) Bug: 111799726 Change-Id: Ic6703dcf7878c27e3e18e437039ddb74cf8d32d6
2018-08-16mm-video-v4l2: vdec: Correct order of reading color primariesSanthosh Behara
According to H265 spec, the color primaries should be in G,B,R order. But in the exisisting code they are read in R, G, B order. Correct the order of reading bitstream as per the specification. Change-Id: Ic6703dcf7878c27e3e18e437039ddb74cf8d32d6
2018-07-28mm-video-v4l2: venc: Reset P frame count.Prateek Shrivastava
When implicitly enabled B frames are disabled, the number of P frames are set to new P frame count. This should be set back to initial value before implicitly enabling B frames. Change-Id: Id91dbedda6e1c93fbceacd9045636a6413626428
2018-07-16media: Fix order of setting bitrate and rate ctrl paramspie-dr1-devAmit Shekhar
Setting frame quality factor depends on CQ rate control, hence, rate control needs to be set earlier. Fix order of setting bitrate and rate ctrl params. Change-Id: Id5e52e5b4fbc847f911a1c3e3460c78db90c49b9 CRs-Fixed: 2264722 Bug: 110283731 (cherry picked from commit 930afd7644c8ee73326ec8970a3a7c02c4b97a34)
2018-07-04Merge "mm-video-v4l2: Protect buffer access and increase input buffer size"Linux Build Service Account
2018-06-22Merge "media: Fix order of setting bitrate and rate ctrl params"Linux Build Service Account
2018-06-20media: Fix order of setting bitrate and rate ctrl paramsAmit Shekhar
Setting frame quality factor depends on CQ rate control, hence, rate control needs to be set earlier. Fix order of setting bitrate and rate ctrl params. Change-Id: Id5e52e5b4fbc847f911a1c3e3460c78db90c49b9 CRs-Fixed: 2264722
2018-06-20media: Set the tile dimensions to the driver only if Grid is enabledSanthosh Behara
Set the capture port dimensions to the driver before calling start streaming when grid is set to true. Change-Id: Ia8291b04ae8cc8886116bd6f1697f7f0dfa37515
2018-06-14Merge remote-tracking branch ↵Aaron Ding
'goog/qcom/release/LA.UM.7.3.9.08.00.00.385.376' into pi-dev Bug: 110126338 Change-Id: Icb2be3e7de033c894ec427db684a577e50b5d6af
2018-06-13Merge "media: Fix image grid control setting for non-HEIC roles" into ↵Linux Build Service Account
video-userspace.lnx.7.3.9
2018-06-12Merge "media: Fix coding type name for HEIC" into video-userspace.lnx.7.3.9Linux Build Service Account
2018-06-12media: Fix image grid control setting for non-HEIC rolesAmit Shekhar
Return gracefully when grid dimension is set for non-HEIC role. HEIC session with tiling in framework uses HEVC role and should be allowed to encode without setting grid dimension Change-Id: I34d57a01f7831f3b9677a257d96823aa77e2a42d CRs-Fixed: 2258393
2018-06-04media: Fix coding type name for HEICAmit Shekhar
Replace OMX_VIDEO_CodingHEIC and use OMX_VIDEO_CodingImageHEIC Change-Id: I63bfb07f901310a3340223b6aed14d98a6966c0d CRs-Fixed: 2250186
2018-06-01Merge "Merge branch 'qcom/release/LA.UM.7.3.9.08.00.00.385.328' into pi-dev" ↵Chris Fries
into pi-dev
2018-05-31media: Fix Qualcomm's key frame interval bug.Hangyu Kuang
Bug: 80321721 Test: Video recording and look at the output video. Change-Id: I501de4899c94af8e8ef341b7f9546016d7b8b3e7
2018-05-30Rename sdm670 to sdm710.Shibin George
Change-Id: I5291a6f72a0b12bde937b839f3ab4908b38723cb
2018-05-29mm-video-v4l2: Protect buffer access and increase input buffer sizeSurajit Podder
Protect buffer access for below scenarios: *Increase the scope of buf_lock in free_buffer to avoid access of freed buffer for both input and output buffers. Also, add check before output buffer access. *Disallow allocate buffer mode after client has called use buffer. Allocate additional 512 bytes of memory for input buffers on top of allocation size as per hardware requirement. Change-Id: Ic570d8248806ee492f68b51cb73139cf5c5028e5
2018-05-25Merge branch 'qcom/release/LA.UM.7.3.9.08.00.00.385.328' into pi-devaaronding
Bug: 80274434 Change-Id: I228bcd2c38016cc1298d253b88c1ef8e6e46645c
2018-05-07Merge "media: Support HEIF encode with tiling in HW"Linux Build Service Account
2018-04-30media: Support HEIF encode with tiling in HWAmit Shekhar
Enables HEIF encode with grid support in HW Supports configuration of Quality-factor, Constant-quality rate control, MainStill profile for HEVC and Grid-info params Change-Id: I21c2660d5218363c9444f8bb023a4ae0ce852102
2018-04-27Merge remote-tracking branch ↵Daniel Mentz
'goog/qcom/release/LA.UM.7.3.9.08.00.00.385.267' into pi-dev Bug: 78481303 Change-Id: I2ee41df2b7bd67f75d0e1626baaa400eb9b84221
2018-04-10Merge remote-tracking branch ↵Daniel Mentz
'goog/qcom/release/LA.UM.7.3.9.08.00.00.385.245' into pi-dev Conflicts: libstagefrighthw/QComOMXMetadata.h mm-video-v4l2/vidc/vdec/Android.mk mm-video-v4l2/vidc/vdec/inc/omx_vdec.h mm-video-v4l2/vidc/vdec/inc/ts_parser.h mm-video-v4l2/vidc/venc/Android.mk Bug: 77871398 Change-Id: Iaade819caadef58cc7b1fdf64f0b549bec102eb9
2018-04-05mm-video-v4l2: update new resolution to C2D when port reconfigMahesh Lanka
After unified multiple port reconfigs, there might be no explicit port reconfig event for crop info update, and didn't set the new resolution to C2D before conversion started. Add logic to update new resolution to C2D when port reconfig. CRs-Fixed: 2154864 Change-Id: I256329a8619f8a1496a0306fb98ccd20bc8db6ba
2018-04-05mm-video-v4l2: vdec: allow C2D convert from NV12_UBWC to 420SPMahesh Lanka
Modified the color format check condition to allow C2D convert from NV12_UBWC to YUV420SP. Change-Id: I44d553d9eaed28cbc63c8e74b4cc2e588d372849 CRs-Fixed: 2171163
2018-04-05mm-video-v4l2: Update correct refresh rate to displaySurajit Podder
Update logic to update display refresh rate, keeping a default max refresh rate of 60fps. Change-Id: I12224f854e49b89b6b5aedd3766eaa3284a3656d
2018-04-05mm-video-v4l2: vdec: Add error handling in proxy handlerSurajit Podder
Add error check in buffer handler, to ensure buffers are not queued to driver and streamon is not called repeatedly when streamon fails initially. Change-Id: Ic621dec6ae547bdb9da2bf41f0a6114176c50d7a
2018-04-05mm-video-v4l2: vdec: add HEVC main10 profile query supportShi Zhongbo
Add HEVC main10 profile in the supported profile list for client's query. Change-Id: I1e3a9d204b3340bad68a57bee9f23ff04052acd1
2018-04-05mm-video-v4l2: Fix issue with crop updateSurajit Podder
Initiate port reconfig on sequence changed sufficient event with change in resolution, if downscalar is not enabled and split mode is enabled, to ensure OPB resolution is correctly set. This ensures output port resolution is consistent in capture port format and output extradata. Change-Id: Ifda1915f9d49cabeb77529df980e3474f5372186
2018-03-29Merge remote-tracking branch ↵Daniel Mentz
'goog/qcom/release/LA.UM.7.3.9.08.00.00.385.217' into pi-dev Bug: 76442208 Change-Id: Id4a4dd01227a4eaef472f6cd81f76f3581fe9384
2018-03-29Make libOmxSwVencMpeg4 build with the VNDK.Steven Moreland
When the vndk is enabled (BOARD_VNDK_VERSION=current), vendor libraries must only link against vendor variants in the build system. This also means that they receive restricted sets of headers and that automatic global headers are restricted. Test: build libOmxSwVencMpeg4 with BOARD_VNDK_VERSION=current Bug: 69574580 Change-Id: Ia9c00a575faf53ec2edff1c0dc9003ee1953cc7b
2018-03-28Build libOmxVdec and libOmxVenc with VNDKJiyong Park
Missing media/hardware/*.h are resolved by adding media_plugin_headers explicitly. Missing system/graphics.h is resolved by switching system/window.h to cutils/native_handle.h as in I7214dcc1e57f2a0466fc28173dd5de5d54c9a721 for msm8998. Missing hardware/gralloc.h is resolved by adding libhardware_headers ui/ANativeObjectBase.h is not included as it isn't used. Bug: 69574580 Test: m -j Test: BOARD_VNDK_VERSION=current m -j libOmxVdec libOmxVenc Change-Id: I10c903701842c1953eeb99f9651a64e1ffbbbad9
2018-03-28Build libOmxVidcCommon with BOARD_VNDK_VERSIONJustin Yun
Add missing header libraries and change headers. Bug: 69574580 Test: BOARD_VNDK_VERSION=current m -j libOmxVidcCommon Change-Id: I59f2f7031bdaf5c3614359fe74b445a2c871634c
2018-03-27media: change way of accessing aosp project headersManikanta Kanamarlapudi
- Remove hardcode paths of aosp headers in vendor make files. - Add aosp header libraries to access aosp headers. CRs-Fixed: 2206443 Change-Id: Ib2b4f1ddeb48397bbe2afdfb9ac54cc3cb3fd9ac