1. 26 Jul, 2022 2 commits
  2. 25 Jul, 2022 3 commits
  3. 08 Aug, 2022 1 commit
  4. 25 Jul, 2022 1 commit
  5. 22 Jul, 2022 2 commits
    • Allow stream offset passed to GlEffectsFrameProcessor to change. · 9eeb4bc2
      This is needed for applying effects to a playlist.
      
      The effects are applied based on the presentation time of the
      frame in its corresponding media item and the offset is added
      back before encoding.
      
      Each time the offset changes, end of input stream is signalled
      to the texture processors. This is needed because the texture
      processors can expect monotonically increasing timestamp within
      the same input stream but when the offset changes, the timstamps
      jump back to 0.
      
      PiperOrigin-RevId: 462714966
      (cherry picked from commit 30e5bc98)
      hschlueter committed
    • DefaultMediaNotificationProvider: limit requests to load same bitmap · faf1f35f
      The DefaultMediaNotificationProvider caches the last loaded artwork
      bitmap so that the bitmap isn't loaded again when the notification is
      updated, e.g., the player is transiting from playing to paused. However,
      loading bitmap requests for bitmaps that are already being loaded are
      not suppressed. For example, if the notification is updated while the
      artwork is still downloading, the same artwork might be downloaded
      multiple times.
      
      This change suppresses a bitmap load request if the same artwork is
      still being loaded, to avoid additional artwork downloads.
      
      #minor-release
      
      PiperOrigin-RevId: 462572221
      (cherry picked from commit dd2c16bc)
      christosts committed
  6. 21 Jul, 2022 8 commits
  7. 20 Jul, 2022 5 commits
    • Add ContrastProcessor for contrast adjustments. · e959af40
      PiperOrigin-RevId: 462232813
      (cherry picked from commit 714edc93)
      olly committed
    • Rename seq to sequenceNumber in MediaSessionStub · 33c5aa7a
      "seq" is not a well-defined abbreviation and the value is
      also an integer, so sequenceNumber is better than just sequence.
      
      PiperOrigin-RevId: 462129581
      (cherry picked from commit 4a4a74ed)
      tonihei committed
    • Make DefaultMediaNotificationProvider more configurable · 62a2d76d
      Add a Builder to constructor DefaultMediaNotificationProvider. The
      Builder can also set the provider's:
      - notification ID
      - notification channel ID
      - notification channel name
      
      The change adds an API for apps to set the small icon in notifications.
      
      #minor-release
      Issue: androidx/media#104
      PiperOrigin-RevId: 462111536
      (cherry picked from commit 436ff6d8)
      christosts committed
    • Run MediaSessionStub commands in order · eb823a9a
      Some commands are run asynchronously and subsequent commands need
      to wait until the previous one finished. This can be supported
      by returning a Future for each command and using the existing
      command execution logic to wait for each Future to complete.
      
      As some MediaSessionStub code is now executed delayed to when it
      was originally created, we also need to check if the session is
      not released before triggering any actions or sending result codes.
      
      Issue: androidx/media#85
      PiperOrigin-RevId: 462101136
      (cherry picked from commit 7cb7636e)
      tonihei committed
    • Properly chain commands in MediaSessionStub · d84662e5
      The commands currently use a task and a postTask that are chained
      together manually. In some cases, e.g. when adding MediaItems,
      the postTask is already a chain of commands in itself.
      
      To allow using the entire command handling as a single task
      (for simplified queueing), we can change the implementation to
      always create a single task. If multiple subtasks need to be
      chained together, we can do that by wrapping the method calls.
      In case a task is asynchronous, we can also use Futures to
      chain them together.
      
      Overall, this is just a refactoring and changes no logic.
      
      Issue: androidx/media#85
      PiperOrigin-RevId: 462085724
      (cherry picked from commit 45f1f5b3)
      tonihei committed
  8. 19 Jul, 2022 9 commits
  9. 18 Jul, 2022 6 commits
    • HDR: Use FP16 color representation for texture processors. · 54cdec46
      * Introduced `useHdr` for `GlEffect#toGlTextureProcessor`, so
        `TextureProcessor` implementations can decide how to handle HDR.
      * Creating FP16 color textures for HDR input.
      
      Tested via manual testing, adding a no-op GlEffectWrapper to the transformation to
      force use of intermediate textures, adding a linear ramp to the fragment shader,
      and trying to ascertain that there's a real reduction in posterization when
      switching from 4-bit to 8-bit unsigned bytes, and again from 8-bit unsigned bytes
      to 16-bit floating point.
      
      PiperOrigin-RevId: 461613117
      (cherry picked from commit ba9c9bb9)
      huangdarwin committed
    • HDR: Throw when unexpected color transfer encountered. · add44470
      This may happen when a containers' color transfer incorrectly does not match
      the video's color transfer.
      
      An example of a file with such a mismatch is the current Transformer demo HDR10
      sample file.
      
      Manually tested by confirming that no errors are emitted for SDR and HLG sample
      files, and that errors are emitted for our incorrect HDR10 sample file.
      
      PiperOrigin-RevId: 461583532
      (cherry picked from commit 9f7a159b)
      huangdarwin committed
    • Implement getCurrentTracks in MediaController · 24bfe3a5
      After this change the current tracks are sent to the controller as part of
      `PlayerInfo` and call `Listener.onTracksChanged()` in case of a change in tracks.
      
      PiperOrigin-RevId: 461578695
      (cherry picked from commit 9a895cd1)
      bachinger committed
    • Use the current overrides of the player as preset · db25954d
      Issue: google/ExoPlayer#10429
      PiperOrigin-RevId: 461577039
      (cherry picked from commit 5c2aabca)
      bachinger committed
    • Make minor fixes to HDR handling · 04fa2fda
      - Update profile selection logic to pick an HDR-compatible profile when doing HDR editing on H.264/AVC videos.
      - Handle doing the capabilities check for all MIME types that support HDR (not just H.265/HEVC).
      - Fix a bug where we would pass an HDR input color format to the encoder when using tone-mapping.
      - Tweak how `EncoderWrapper` works so decisions at made at construction time.
      
      Manually tested cases:
      - Transformation of an SDR video.
      - Transformation of an HDR video to AVC (which triggers fallback/tone-mapping on a device that doesn't support HDR editing for AVC).
      - Transformation of an HDR video with HDR editing.
      
      PiperOrigin-RevId: 461572973
      (cherry picked from commit 604ab7fc)
      andrewlewis committed
    • Update demo HDR10 video URL · c4e64c3d
      The old URL doesn't correctly signal the HDR10 color info in the container.
      
      The new URL signals ST2084 (PQ) transfer function and BT.2020 color space as expected.
      
      PiperOrigin-RevId: 461560107
      (cherry picked from commit 794e366b)
      andrewlewis committed
  10. 15 Jul, 2022 1 commit
  11. 14 Jul, 2022 1 commit
  12. 13 Jul, 2022 1 commit