Commit graph

395 commits

Author SHA1 Message Date
Sungtak Lee
80345e908e media.c2 aidl: handle the case of fence being invalid
Bug: 254050314
Test: m
Change-Id: I6eed49119de96326324f901fd99d20ab605b92a0
2023-11-26 22:55:09 +00:00
Sungtak Lee
eec87d9081 media.c2 aidl: provide a waitable fd for blockpool creation
Provide a waitable fd as a param for IComponent::createBlockPool()
along with IGraphicBufferAllocator interface. This will remove one IPC
call from HAL to client to get a waitable fd during blockpool creation.

Test: m
Bug: 254050314
Change-Id: I38d9bde987793e352299385fb141e484c758f89d
2023-10-26 22:25:32 +00:00
Andrew Walbran
3a91d2b31f Support android.hardware.media.c2 in Rust.
Bug: 295245772
Test: m android.hardware.media.c2
Change-Id: I395783980ee12658fb0a246084c4d078840c6574
2023-10-17 15:31:23 +01:00
Devin Moore
d2f5f95f51 Update media OWNERS file
Test: none
Bug: none
Change-Id: Idf00ac904a3358d56e002650d0ef519e123f5678
2023-10-11 22:14:42 +00:00
Xin Li
a737141254 Merge "Merge Android 14" into main 2023-10-06 05:34:12 +00:00
Sungtak Lee
007122be1d media.c2 aidl: change minSdk to 30
Test: m
Bug:254050314
Change-Id: I62613e59146599b49ae69c84d033eca39fcfdb18
2023-10-04 17:26:20 +00:00
Treehugger Robot
90e403f2f6 Merge "media.c2 : Change waitable object to be based on single fd" into main am: c43c449c79
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2753410

Change-Id: I55051d80f1c8b5e7a099825c1d6887da500dbe99
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-28 03:58:18 +00:00
Treehugger Robot
c43c449c79 Merge "media.c2 : Change waitable object to be based on single fd" into main 2023-09-28 02:58:22 +00:00
Treehugger Robot
6b3f886f2f Merge "Support Rust builds of some AIDL interfaces." into main 2023-09-27 09:59:26 +00:00
Andrew Walbran
ddd2d2457f Merge "Enable Rust build of android.hardware.media.bufferpool2." into aosp-main-future 2023-09-26 16:39:05 +00:00
Wonsik Kim
6590f39160 Merge "media.c2: add apex_available and set minsdk to 31" into main am: bea101032f
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2734633

Change-Id: I9fc9ae4eff412e71b4f4914ab22a1ece8b7a46c7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-22 22:39:24 +00:00
Wonsik Kim
98faf55896 media.c2: add apex_available and set minsdk to 31
Test: m
Change-Id: Id5c266823f99a810cc69b31fff8e8be727c74031
2023-09-20 16:36:18 -07:00
Sungtak Lee
b34b1633ff media.c2 : Change waitable object to be based on single fd
Currently watiable object is based on two file descriptors created by
eventfd(). Change waitable object to be based on signle fd created by
pipe2().

Bug: 254050314
Test: m
Change-Id: I6771868a93c9bfb767c904d89a3a523e370b3e7e
2023-09-18 17:28:18 +00:00
Andrew Walbran
fcb6c4118b Enable Rust build of android.hardware.media.bufferpool2.
This is a prerequisite for android.hardware.media.c2, which I'm
splitting out to a separate CL to simplify merging.

Bug: 295245772
Change-Id: I1ab9ed45b0b500065c0f18b810c3aa266878b80f
2023-09-15 15:24:05 +01:00
Treehugger Robot
e20ecbd8a5 Merge "media.c2: Enable BaseBlock to parcel AHardwareBuffer" into main am: 02b33df6b8
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2751284

Change-Id: Ib0312240d25d3a4683429181949457535249657e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-14 18:57:55 +00:00
Andrew Walbran
2d425674b5 Support Rust builds of some AIDL interfaces.
For now android.hardware.common, android.hardware.common.fmq and
android.hardware.media.bufferpool2. These are prerequisites for
android.hardware.media.c2, which I'm splitting out to a separate CL to
simplify merging.

Bug: 295245772
Test: m android.hardware.common android.hardware.common.fmq android.hardware.media.bufferpool2
Change-Id: I23018cf198ae126ced8358d562fd8e8a7c6e78ad
Merged-In: I1ab9ed45b0b500065c0f18b810c3aa266878b80f
2023-09-14 16:46:00 +01:00
Sungtak Lee
22c2ea079b media.c2: Enable BaseBlock to parcel AHardwareBuffer
Enable c2 interface to send/receive AHardwareBuffer.

Test: m
Bug: 254050314
Change-Id: I3289d891fb0eae49652e3e88b77070f6762fc5b1
2023-09-14 03:04:47 +00:00
Sungtak Lee
8f2ffb4d1b Merge "media.c2 aidl: Use IGraphicBufferAllocator for createBlockPool()" into main am: 6e053ee395
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2721919

Change-Id: I8b51374652717832e1ea6cad314de60dd0a1d52e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-29 20:50:29 +00:00
Sungtak Lee
ee148fe88e media.c2 aidl: Use IGraphicBufferAllocator for createBlockPool()
Add IGraphicBufferAllocator interface as an alternate param for
IComponent::createBlockPool().

Bug: 254050314
Test: m
Change-Id: Iab3f1eb35287a8ed7c887ceb70c70d936d5bcfa8
2023-08-22 22:13:16 +00:00
Sungtak Lee
8878a13271 AIDL BufferPool implementation (HIDL -> AIDL)
Bug: 254050250
Test: m
Merged-In: I0d7bae2c01bd480d1e99f4b39c4a9013a2828897
Change-Id: I0d7bae2c01bd480d1e99f4b39c4a9013a2828897
2023-08-01 19:32:45 +00:00
Sungtak Lee
97e1dfb99d AIDL bufferpool implementation (just copy from HIDL impl)
Bug: 254050250
Test: no impact to build
Merged-In: I48841189a8743dcd6533a9e61581e48f0f1717f1
Change-Id: I48841189a8743dcd6533a9e61581e48f0f1717f1
2023-08-01 19:32:34 +00:00
Sungtak Lee
e3d399b3ac bufferpool2: Support mainline s/w codec
Bug: 254050250
Test: m
Merged-In: Id602b1a84880546ee726f36c247fabd2e4f2127c
Change-Id: Id602b1a84880546ee726f36c247fabd2e4f2127c
2023-08-01 19:32:15 +00:00
Sungtak Lee
72b2b38c7f bufferpool2: add sync() method and etc
Add sync() method to IConnection interface.
Add existing connection flag to return parcelable of
IClientManager::registerSender().
Use plain integer for returning fetch result status.

Bug: 254050250
Merged-In: Ifebd4b16e9b8c37e074e7126f39264a18fed5de8
Change-Id: Ifebd4b16e9b8c37e074e7126f39264a18fed5de8
2023-08-01 19:31:27 +00:00
Treehugger Robot
16a5725b68 Merge "media.c2 aidl: Add decoder output allocator interface" am: 3c4de3af67 am: a2147b121e am: 1c0c72e72b
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2613750

Change-Id: I01abf77bb3fa539090be72034d3f61c99dd34131
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-09 19:18:36 +00:00
Sungtak Lee
e739e842ba Revert "android.hardware.media.c2: Move to staging/"
This reverts commit a8c9aa3173.

Bug: 254050314
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:7afc209eb8b1f1d54208c601cb458f95712b1e2f)
Merged-In: Ia85af4e013529e104c84bc48f84a5daa89a5d9bf
Change-Id: Ia85af4e013529e104c84bc48f84a5daa89a5d9bf
2023-06-02 21:53:01 +00:00
Sungtak Lee
a2600caba4 media.c2 aidl: Add decoder output allocator interface
Bug: 254050314
Test: m
Merged-In: Ia0a63c29bb1fceabf290647003865c2a788980ef
Change-Id: Ia0a63c29bb1fceabf290647003865c2a788980ef
2023-06-02 14:18:47 -07:00
Sungtak Lee
10e5329325 android.hardware.media.c2: sync with internal
Bug: 254050314
Test: m
Merged-In: Ia85af4e013529e104c84bc48f84a5daa89a5d9bf
Change-Id: Ia85af4e013529e104c84bc48f84a5daa89a5d9bf
2023-06-02 14:18:47 -07:00
Wonsik Kim
c14558df40 Mark media.bufferpool2 and media.c2 as double-loadable
LL-NDK(libmediandk) has the dependency on
"android.hardware.media.bufferpool2" and "android.hardware.media.c2".

Dependencies:
libmediandk -> libstagefright -> libsfplugin_ccodec
-> android.hardware.media.c2-V1-ndk
libmediandk -> libstagefright -> libsfplugin_ccodec
-> libcodec2_client -> libstagefright_bufferpool@
-> android.hardware.media.bufferpool2-V1-ndk

Bug: 251850069
Test: builds
Merged-In: I89aa17b8f1db9393d506edd9f242112cd11a05ec
Change-Id: I89aa17b8f1db9393d506edd9f242112cd11a05ec
2023-06-02 14:18:36 -07:00
Alex Buynytskyy
ec1198d941 UpsideDownCake is now 34
Ignore-AOSP-First: UpsideDownCake Finalization
Bug: 275409981
Test: build
Change-Id: I832ab7a8b5445ba85e27bbcf5be64906bfa0e5be
2023-04-07 23:41:20 +00:00
Treehugger Robot
4a619462af Merge "VtsHalMediaOmx: fix OmxCodecAllowedTest to match requirement" am: 28d4f75dd0 am: 7d9873d019 am: 64da566f72
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2243207

Change-Id: I5d267e871c14292c0de71ec1d63825b995027f9a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-28 22:43:21 +00:00
Wonsik Kim
db13ce5daf VtsHalMediaOmx: fix OmxCodecAllowedTest to match requirement
Bug: 249043823
Bug: 251553217
Test: atest VtsHalMediaOmxV1_0TargetStoreTest
Change-Id: I8015d559d8e7d88a32d1970102167fe4d7566c51
2023-02-28 10:45:55 -08:00
Sungtak Lee
a8c9aa3173 android.hardware.media.c2: Move to staging/
Bug: 254050314
Test: m
Change-Id: I4bc2c0b59453240f0638ccaa2f911ec8423e930d
2023-02-16 00:53:02 +00:00
Sungtak Lee
76937c6533 AIDL BufferPool implementation (HIDL -> AIDL)
Bug: 254050250
Test: m
Change-Id: I0d7bae2c01bd480d1e99f4b39c4a9013a2828897
2022-12-20 08:52:32 +00:00
Sungtak Lee
8fc3ca470d AIDL bufferpool implementation (just copy from HIDL impl)
Bug: 254050250
Change-Id: I48841189a8743dcd6533a9e61581e48f0f1717f1
2022-12-19 04:12:11 +00:00
Sungtak Lee
34254e5436 bufferpool2: Support mainline s/w codec
Bug: 254050250
Change-Id: Id602b1a84880546ee726f36c247fabd2e4f2127c
2022-12-19 04:11:31 +00:00
Bob Badour
0468ee6201 [LSC] Add LOCAL_LICENSE_KINDS to hardware/interfaces
Added SPDX-license-identifier-Apache-2.0 to:
  media/bufferpool/aidl/Android.bp
  media/c2/aidl/Android.bp

Bug: 68860345
Bug: 151177513
Bug: 151953481

Test: m all
Change-Id: Icfbfae758bef55aa82873350a9e119833bacbafb
2022-12-15 07:20:02 -08:00
Treehugger Robot
94a68d04b7 Merge changes from topic "c2aidl"
* changes:
  Add Codec2 AIDL interface
  Add bufferpool AIDL definitions
2022-12-14 20:24:14 +00:00
Sungtak Lee
456c1b9602 Merge "bufferpool2: add sync() method and etc" 2022-12-09 05:26:04 +00:00
Sungtak Lee
185e03c308 Add OWNERS for media interface am: 3ee79d5a46 am: c303e7aefb am: 8860ed12ee
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2333742

Change-Id: I088a80e72e794bc0e29277701d8d0a6eeb4ed6aa
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-09 00:27:35 +00:00
Sungtak Lee
3ee79d5a46 Add OWNERS for media interface
Bug: 261752425
Change-Id: I4fe9ddd1c22ebfff03f5660ec9b01de2521f8533
2022-12-08 23:19:03 +00:00
Sungtak Lee
3782c69e1f bufferpool2: add sync() method and etc
Add sync() method to IConnection interface.
Add existing connection flag to return parcelable of
IClientManager::registerSender().
Use plain integer for returning fetch result status.

Bug: 254050250
Change-Id: Ifebd4b16e9b8c37e074e7126f39264a18fed5de8
2022-12-08 22:28:45 +00:00
Bob Badour
95a366dafb [LSC] Add LOCAL_LICENSE_KINDS to hardware/interfaces
Added SPDX-license-identifier-Apache-2.0 to:
  media/c2/aidl/Android.bp

Bug: 68860345
Bug: 151177513
Bug: 151953481

Test: m all
Change-Id: I5b515357122fc261c6e44e155eb03e9e07780393
2022-12-08 06:18:33 -08:00
Sungtak Lee
8602fe3a0b Add Codec2 AIDL interface
Bug: 251850069
Test: m
Change-Id: I1fc28084519281df68bca7ae5e2b814b03214577
Merged-In: I1fc28084519281df68bca7ae5e2b814b03214577
2022-12-07 07:24:42 +00:00
Sungtak Lee
1468ddfbf3 Add bufferpool AIDL definitions
Bug: 254050250
Test: m
Change-Id: I4b371ccd9a1e1ed59e642d585aa4119c775fbd2c
Merged-In: I4b371ccd9a1e1ed59e642d585aa4119c775fbd2c
2022-12-07 07:23:32 +00:00
Wonsik Kim
4f5dd1c953 Mark media.bufferpool2 and media.c2 as double-loadable
LL-NDK(libmediandk) has the dependency on
"android.hardware.media.bufferpool2" and "android.hardware.media.c2".

Dependencies:
libmediandk -> libstagefright -> libsfplugin_ccodec
-> android.hardware.media.c2-V1-ndk
libmediandk -> libstagefright -> libsfplugin_ccodec
-> libcodec2_client -> libstagefright_bufferpool@
-> android.hardware.media.bufferpool2-V1-ndk

Bug: 251850069
Test: builds
Change-Id: I89aa17b8f1db9393d506edd9f242112cd11a05ec
2022-12-06 12:35:07 -08:00
Sungtak Lee
d8631076ec Merge "Add Codec2 AIDL interface" 2022-11-18 23:52:41 +00:00
Sungtak Lee
45b06598bd Add Codec2 AIDL interface
Bug: 251850069
Test: m
Change-Id: I1fc28084519281df68bca7ae5e2b814b03214577
2022-11-17 23:21:07 +00:00
Bob Badour
18c8b0edd0 [LSC] Add LOCAL_LICENSE_KINDS to hardware/interfaces
Added SPDX-license-identifier-Apache-2.0 to:
  media/bufferpool/aidl/Android.bp

Bug: 68860345
Bug: 151177513
Bug: 151953481

Test: m all
Change-Id: I65c292fd4b24f7f2a3087c48152d300b249df5ba
2022-11-10 11:40:27 -08:00
Sungtak Lee
90584d2caa Add bufferpool AIDL definitions
Bug: 254050250
Test: m
Change-Id: I4b371ccd9a1e1ed59e642d585aa4119c775fbd2c
2022-11-02 21:27:45 +00:00
Arun Johnson
03fba7a807 Allowing OMX.google* codecs for Devices launching with S
S AOSP did not remove the OMX.google* codecs, so this cannot be
enforced for devices launching with S

bug: 230582620
Change-Id: I25e8f827645db8e83c8c3142f5e76a912fdf7b22
(cherry picked from commit 6973e79b91)
Merged-In: I25e8f827645db8e83c8c3142f5e76a912fdf7b22
2022-06-29 00:03:48 +00:00