summaryrefslogtreecommitdiff
path: root/media/eco/ECOSession.cpp
AgeCommit message (Collapse)Author
2021-05-19EAF, Enable EAF on 1080P resolution(Codec side)android12-devCharles Chiu
Investigation purpose, For ECO service 1.0 spec, the support input frame size of ECO is limited <= 720P https://source.corp.google.com/aosp-android11/hardware/google/av/media/eco/ECOSession.cpp;l=59?q=createECOSession We could remove limitation here and do the some evaluation. Test: GCA Bug: 187359844 Change-Id: I97a1c96def7a800ce0b079029af5d3314a43961f
2019-05-30[ECOService]: Handle output width/height from encoder.Hangyu Kuang
Bug: 117877984 Test: Camera recording. Change-Id: I36a655dd905c1e14aec052f95af17f9b4e771910
2019-05-29ECOService: Handle framerate stats key.Hangyu Kuang
Bug: 117877984 Test: Unit test. Change-Id: I9475310bd0ec321bba27262eee4da84bc476a38f
2019-05-24[ECOService] Correctly set the AIDL interface return boolean.Hangyu Kuang
Bug: 133208312 Test: Unit test Change-Id: Ie292b91ccabfd25173cd11359abc0d43d67d688f
2019-05-23[ECOService] Fix the failure of removing listener and provider.Hangyu Kuang
Bug: 117877984 Test: Camera recording. Change-Id: Ic65bed1258b0423b82a3ba5b8a799b5ad61cb976
2019-05-15ECOService: Add support for handling actual bitrate stats.Hangyu Kuang
Bug: 117877984 Test: Unit test. Change-Id: Iaa3c6425c0cbebdc09af035a42358c452cb163c5
2019-05-14[ECOService]: Check the status of binder call.Hangyu Kuang
Bug: 117877984 Test: Unit test. Change-Id: I7e4d14e2b1b0a9426bfaeca46bde4b5a3a520d25
2019-05-09[ECOService]: Allow non camera recording session.Hangyu Kuang
Bug: 117877984 Test: Unit test. Change-Id: I1739b4898eb3e1967c02a8fdbfb3a3dc84c379e3
2019-05-08[ECOService]: Add dumpsys support to ECOService.Hangyu Kuang
Run "adb shell /vendor/bin/dumpsys media.ecoservice" DUMP OF SERVICE media.ecoservice: == ECO Service info: == Number of ECOServices: 1 == Session Info: == Width: 1280 Height: 720 isCameraRecording: 1, target-bitrate: 12000000 bps codetype: 1 profile: 8 level: 32768 Provider: QTIEncoder =================== Bug:117877984 Test: Unit test Change-Id: I9f578620a02ad6b71feadd063b0ca8d797f89e85
2019-05-06[ECOService]: Support adding listener after provider starts.Hangyu Kuang
If a listener subscribe to ECOSession after the provider sending the first session info, ECOSession should send the listener the latest session info right after adding it to internal. Also add a fix for the failrue in ECOSessionTest due to changing FrameType from int32_t to int8_t. Bug:117877984 Test: Unit test Change-Id: Ib982c6d9bfadb625eb85e0653941e2608158c054
2019-05-02Merge "[ECOService] Add debugString functionality to ECOData." into qt-devHangyu Kuang
2019-05-01[ECOService] Add stats/info logging support.Hangyu Kuang
Bug: 117877984 Test: Unit test. Change-Id: If8d0423f5610a435931af9ea7ece3da3263a5b27
2019-05-01[ECOService] Add debugString functionality to ECOData.Hangyu Kuang
The ECOData could now be dumped to a std::string. Sample output: processSessionStats ECOData(type = Stats) = { int32_t encoder-target-bitrate-bps = 22000000, int32_t encoder-level = 65536, float encoder-framerate-fps = 30.000000, int32_t encoder-profile = 8, int32_t encoder-kfi-frames = 30, int32_t encoder-type = 1, string stats-type = stats-type-session} Bug: 117877984 Test: Unit test. Change-Id: Ia6e018f2b46b64d4f8a1e00b1c4e41d123061ddb
2019-04-30[ECOService]: Add better logging support through setprop.Hangyu Kuang
adb shell setprop media.ecoservice.log.level 1 for debug log. adb shell setprop media.ecoservice.log.level 2 for verbose log. adb shell setprop media.ecoservice.log.level 3 for both debug log and verbose log. Bug: 117877984 Test: Unit test. Change-Id: If047476cd7957d0ef10940dbadc2bd36eeb320a1
2019-04-30Merge "[ECO] Fixes in ECOUtils and ECOSession." into qt-devTreeHugger Robot
2019-04-29[ECO] Fixes in ECOUtils and ECOSession.Ching Yin Derek Pang
1) Fixed data types in ECOUtils. 2) Account dimension for portrait and landscape mode in ECOSession. Test: Unit test. Bug: 124805646 Change-Id: Idfd6877bc39b77968d73ee1e95a2573a1439f435
2019-04-29[ECOService]: Add implementaion for removing listener and provider.Hangyu Kuang
Also add several more things: 1) Add key handling inside the ecosession. 2) Add the sessionlock to protect the access to ecosession. 3) Change some log from ALOGD to ALOGI to avoid log spam. Bug: 117877984 Test: Unit test. Change-Id: Ib02dcd278dfa528745fb9599afde22931849ef20
2019-04-24[ECOService] Start the thread in ECOSession's constructor.Hangyu Kuang
Also add 4 new keys in ECODataKey. Bug: 117877984 Test: Unit test. Change-Id: I66c075a78168320bb33b863b1c03651861385bcc
2019-04-19ECOService: Add ECOService implementation.Hangyu Kuang
Also add unit test for it. Bug: 117877984 Test: Unit test. Change-Id: I5900c2bc628d850278bf8d742d09fb15cff3c078
2019-04-11ECOService: Add ECOSession implenmentation.Hangyu Kuang
Also add FakeECOServiceStatsProvider and FakeECOServiceInfoListener to test ECOSession and ECOService. Bug: 117877984 Test: Unit test. Change-Id: Ia6bd576ea36c29cfeff3d3450b08a2a5fffc047b