hschlueter
51a1a879fa
Use multiple output frames in transformer MediaPipe demo pre API 23.
...
PiperOrigin-RevId: 465545764
2022-08-05 12:58:48 +00:00
Googler
db2545b8a1
Use multiple output frames in transformer MediaPipe demo pre API 23.
...
PiperOrigin-RevId: 465545764
(cherry picked from commit 6da0a3543491a9d9bb3dbfaf1b203a04f7a19f5c)
2022-08-05 12:58:48 +00:00
hschlueter
fa1a7eb51e
Use multiple output frames in transformer MediaPipe demo pre API 23.
...
PiperOrigin-RevId: 465545764
(cherry picked from commit 51a1a879faadf749348902c12b382b42d54cd202)
2022-08-05 12:58:48 +00:00
leonwind
a76dbfd363
Add RgbAdjustment class to build RgbaMatrices
...
* Add RgbaMatrix interface implementation.
* Add Builder class for easy adjustments.
* Adjust existing RgbaMatrixPixelTests to use new RgbAdjustment class.
PiperOrigin-RevId: 465545429
2022-08-05 12:56:26 +00:00
leonwind
e8a4cceb12
Add RgbAdjustment class to build RgbaMatrices
...
* Add RgbaMatrix interface implementation.
* Add Builder class for easy adjustments.
* Adjust existing RgbaMatrixPixelTests to use new RgbAdjustment class.
PiperOrigin-RevId: 465545429
(cherry picked from commit 6502fce634913420af77ec78c275f97a61b8fac4)
2022-08-05 12:56:26 +00:00
leonwind
d34ed7a5e1
Add RgbAdjustment class to build RgbaMatrices
...
* Add RgbaMatrix interface implementation.
* Add Builder class for easy adjustments.
* Adjust existing RgbaMatrixPixelTests to use new RgbAdjustment class.
PiperOrigin-RevId: 465545429
(cherry picked from commit a76dbfd363e2d167b13d2bcd978979bcfd69b071)
2022-08-05 12:56:26 +00:00
huangdarwin
348662283a
HDR: Add comment to clarify lack of support HDR10 for AVC
...
PiperOrigin-RevId: 465360186
2022-08-04 18:18:18 +00:00
huangdarwin
acf40801cf
HDR: Add comment to clarify lack of support HDR10 for AVC
...
PiperOrigin-RevId: 465360186
(cherry picked from commit e63d594f490da6461bc5087d0526c5ca5215958d)
2022-08-04 18:18:18 +00:00
huangdarwin
7eab760b18
HDR: Add comment to clarify lack of support HDR10 for AVC
...
PiperOrigin-RevId: 465360186
(cherry picked from commit 348662283a60c88e6c5a0deef9307da75161b241)
2022-08-04 18:18:18 +00:00
claincly
80ec64696e
Factor out RTP timestamp to sample time method
...
PiperOrigin-RevId: 465337074
2022-08-04 16:49:03 +00:00
claincly
e9e7fb4e8a
Factor out RTP timestamp to sample time method
...
PiperOrigin-RevId: 465337074
(cherry picked from commit a1be6d6eb39a40b91f9dee0524d13e5ac805246f)
2022-08-04 16:49:03 +00:00
claincly
e57a36bb20
Factor out RTP timestamp to sample time method
...
PiperOrigin-RevId: 465337074
(cherry picked from commit 80ec64696e22856ce324ef03535754f838a49778)
2022-08-04 16:49:03 +00:00
tonihei
afc928330b
Update README for beta release.
...
PiperOrigin-RevId: 465318320
2022-08-04 15:17:56 +00:00
tonihei
35565cfea7
Update README for beta release.
...
PiperOrigin-RevId: 465318320
(cherry picked from commit afc928330b64424a6db1958910b688ee16dcebc5)
2022-08-04 15:17:56 +00:00
yschimke
6865cd4d07
Expose AudioOffload track state.
...
Adds a new event to AudioOffloadListener to get the offload state of the track, which indicates when software decoding is taking place.
PiperOrigin-RevId: 465264362
(cherry picked from commit fe2b846552e1dc0095a409a3407c328e38bd6a30)
2022-08-04 09:47:41 +00:00
yschimke
7893531888
Expose AudioOffload track state.
...
Adds a new event to AudioOffloadListener to get the offload state of the track, which indicates when software decoding is taking place.
PiperOrigin-RevId: 465264362
2022-08-04 09:47:41 +00:00
yschimke
7a8f348228
Expose AudioOffload track state.
...
Adds a new event to AudioOffloadListener to get the offload state of the track, which indicates when software decoding is taking place.
PiperOrigin-RevId: 465264362
(cherry picked from commit 7893531888608555fb09e77f12897752650131d5)
2022-08-04 09:47:41 +00:00
yschimke
318d838258
AudioOffload recovery.
...
Avoids disabling Offload on a write error, and instead relies on this being disabled on the AudioTrack init. It will no longer recover by disabling offload.
PiperOrigin-RevId: 465248917
(cherry picked from commit 2fbe1bbfb3c533c370c07a4f45068c00ea9c6efb)
2022-08-04 08:00:57 +00:00
yschimke
a10af8ecda
AudioOffload recovery.
...
Avoids disabling Offload on a write error, and instead relies on this being disabled on the AudioTrack init. It will no longer recover by disabling offload.
PiperOrigin-RevId: 465248917
2022-08-04 08:00:57 +00:00
yschimke
e5f17f44d5
AudioOffload recovery.
...
Avoids disabling Offload on a write error, and instead relies on this being disabled on the AudioTrack init. It will no longer recover by disabling offload.
PiperOrigin-RevId: 465248917
(cherry picked from commit a10af8ecda584ea0d2bbb2616296b60aace8d638)
2022-08-04 08:00:57 +00:00
birdbird
22efef2dea
Disable badge in API 26 and 27
2022-08-04 07:20:02 +02:00
leonwind
d7177ee733
Remove clamp function in contrast fragment shader.
...
* OpenGL automatically clamps the output colors to the [0, 1] interval.
PiperOrigin-RevId: 465071999
(cherry picked from commit 30fab8c00891b2a5423c169dd75ef0b7d40fe5b7)
2022-08-03 16:14:30 +00:00
leonwind
2347db5d74
Remove clamp function in contrast fragment shader.
...
* OpenGL automatically clamps the output colors to the [0, 1] interval.
PiperOrigin-RevId: 465071999
2022-08-03 16:14:30 +00:00
leonwind
46f267700f
Remove clamp function in contrast fragment shader.
...
* OpenGL automatically clamps the output colors to the [0, 1] interval.
PiperOrigin-RevId: 465071999
(cherry picked from commit 2347db5d7484b161f6389846e6cde5b0ac1ed7a6)
2022-08-03 16:14:30 +00:00
andrewlewis
dce7c45cf0
Avoid encoder default color info when tone-mapping
...
The encoder color info [defaults](https://cs.android.com/android/platform/superproject/+/master:frameworks/av/media/libstagefright/foundation/ColorUtils.cpp;l=377;drc=891c19ccfa4953b5e5f7b87118e007b994d8074c ) to a value that depends on the input resolution, but when tone-mapping is enabled we should always get BT.709 color space. Hard-code this constant for now to avoid behavior depending on the resolution. A future change should use the decoder output media format to populate the color info.
PiperOrigin-RevId: 465070378
(cherry picked from commit 40a28d5aeeb5f3c22e884690128182b68a9929f6)
2022-08-03 16:06:45 +00:00
andrewlewis
3c4ee51e10
Avoid encoder default color info when tone-mapping
...
The encoder color info [defaults](https://cs.android.com/android/platform/superproject/+/master:frameworks/av/media/libstagefright/foundation/ColorUtils.cpp;l=377;drc=891c19ccfa4953b5e5f7b87118e007b994d8074c ) to a value that depends on the input resolution, but when tone-mapping is enabled we should always get BT.709 color space. Hard-code this constant for now to avoid behavior depending on the resolution. A future change should use the decoder output media format to populate the color info.
PiperOrigin-RevId: 465070378
2022-08-03 16:06:45 +00:00
andrewlewis
f8aaed1ac7
Avoid encoder default color info when tone-mapping
...
The encoder color info [defaults](https://cs.android.com/android/platform/superproject/+/master:frameworks/av/media/libstagefright/foundation/ColorUtils.cpp;l=377;drc=891c19ccfa4953b5e5f7b87118e007b994d8074c ) to a value that depends on the input resolution, but when tone-mapping is enabled we should always get BT.709 color space. Hard-code this constant for now to avoid behavior depending on the resolution. A future change should use the decoder output media format to populate the color info.
PiperOrigin-RevId: 465070378
(cherry picked from commit 3c4ee51e10fe0a2ea495f00a3fcd98d6cb83b561)
2022-08-03 16:06:45 +00:00
Googler
8d1b91a413
Fix saving previous debugSurfaceView in FinalMatrixTPWrapper.
...
PiperOrigin-RevId: 465067306
(cherry picked from commit bbb7b1c0bc2dc004612d0644d862494fcdda294d)
2022-08-03 15:52:24 +00:00
hschlueter
a28a508d2d
Fix saving previous debugSurfaceView in FinalMatrixTPWrapper.
...
PiperOrigin-RevId: 465067306
2022-08-03 15:52:24 +00:00
hschlueter
110c442758
Fix saving previous debugSurfaceView in FinalMatrixTPWrapper.
...
PiperOrigin-RevId: 465067306
(cherry picked from commit a28a508d2dd10ac2858c334a1a0fe0ff1350e98c)
2022-08-03 15:52:24 +00:00
claincly
19f6b5422b
Clean up NOP constructor lines in RTP readers
...
PiperOrigin-RevId: 465067191
(cherry picked from commit 13e9ec9959b5dbd6f2f107f43d0a3a032ae8a717)
2022-08-03 15:51:48 +00:00
claincly
ed60c885f2
Clean up NOP constructor lines in RTP readers
...
PiperOrigin-RevId: 465067191
2022-08-03 15:51:48 +00:00
claincly
076218be9d
Clean up NOP constructor lines in RTP readers
...
PiperOrigin-RevId: 465067191
(cherry picked from commit ed60c885f2c09bcc8484eeeb340a96559c7ad918)
2022-08-03 15:51:48 +00:00
Googler
ff35958c54
Clean up FrameProcessor TODOs.
...
PiperOrigin-RevId: 465044342
(cherry picked from commit 245326a0433c82bf851e2fa556bb8399cf1ba2d6)
2022-08-03 13:53:53 +00:00
hschlueter
c5d1940fba
Clean up FrameProcessor TODOs.
...
PiperOrigin-RevId: 465044342
2022-08-03 13:53:53 +00:00
hschlueter
89edfbc12b
Clean up FrameProcessor TODOs.
...
PiperOrigin-RevId: 465044342
(cherry picked from commit c5d1940fbab430ede4b158300bbb381c032498bf)
2022-08-03 13:53:53 +00:00
Googler
89a2685052
Move effects functionality out of transformer to effects module.
...
PiperOrigin-RevId: 465038852
(cherry picked from commit 707b0618384db17f6d9d4947a445c0eed1c9c630)
2022-08-03 13:19:15 +00:00
hschlueter
22725ddfa8
Move effects functionality out of transformer to effects module.
...
PiperOrigin-RevId: 465038852
2022-08-03 13:19:15 +00:00
hschlueter
8b9203a3ea
Move effects functionality out of transformer to effects module.
...
PiperOrigin-RevId: 465038852
(cherry picked from commit 22725ddfa8f5c39c83b792a176339700364b724e)
2022-08-03 13:19:15 +00:00
Googler
368d28268b
Update Leanback library from androidx-platform-dev with build#8803384
...
TGP: https://fusion2.corp.google.com/presubmit/tap/459592967/OCL:459592967:BASE:464692555:1659412331108:1ed6eb4e/targets
If you need additional help investigating this issue, please consider using g/androidx-discuss to reach the wider Jetpack library owner and client community. For general questions about prebuilt drops, refer to go/androidx/g3_faq
PiperOrigin-RevId: 464852576
(cherry picked from commit a3de13c9a936691113325977924afe242dcbba31)
2022-08-02 19:01:58 +00:00
olly
8762322060
Update Leanback library
2022-08-02 19:01:58 +00:00
hschlueter
93bb191cb1
Create effect module.
...
PiperOrigin-RevId: 464767396
(cherry picked from commit 4d09ca66986a3c862b09f42a06a5bb031dce46f8)
2022-08-02 12:36:47 +00:00
Googler
0b0475e81b
Create effect module.
...
PiperOrigin-RevId: 464767396
(cherry picked from commit 26dcdcf1c01e1734cda5313487f27a19d4606513)
2022-08-02 12:36:47 +00:00
hschlueter
4d09ca6698
Create effect module.
...
PiperOrigin-RevId: 464767396
2022-08-02 12:36:47 +00:00
leonwind
d15f2ed388
Implement RGBA color matrices processor
...
* Transform frame colors using a defined RGBA Matrix to apply filters.
PiperOrigin-RevId: 464523581
2022-08-08 08:36:03 +00:00
leonwind
ae1915ea1a
Migrate Contrast asset to emulator generated one.
...
PiperOrigin-RevId: 464519030
2022-08-08 08:35:12 +00:00
huangdarwin
687a50e9b3
HDR: Have @C.ColorTransfer check consider NO_VALUE as SDR.
...
Format.NO_VALUE is a placeholder value for an invalid @C.ColorTransfer, used
for example when the decoder doesn't support this transfer function.
When encountering this invalid value, interpret this as COLOR_TRANSFER_SDR.
Confirmed locally that an exception is thrown when transcoding on p4head, and no exception is thrown when transcoding with this CL.
PiperOrigin-RevId: 464135080
2022-08-08 08:34:12 +00:00
hschlueter
480c129c54
Move FrameProcessor and related interfaces to common.
...
This will allow effects preview in ExoPlayer to use the
Effect and FrameProcessor interface (and the interfaces
they depend on) without depending on transformer or the
future effects module.
PiperOrigin-RevId: 464060047
2022-08-08 08:33:22 +00:00
bachinger
a28b3ef778
Add interface version of MediaSessionStub
...
PiperOrigin-RevId: 464052708
2022-08-08 08:32:29 +00:00
leonwind
3fae9df8a9
Add slider option for contrast in demo app
...
PiperOrigin-RevId: 464050072
2022-08-08 08:30:43 +00:00