1. 21 Jul, 2022 12 commits
    • Add ContrastProcessor for contrast adjustments. · 7ef41c73
      PiperOrigin-RevId: 462232813
      olly committed
    • Add @code tags to DefaultDataSource javadoc · e65050a8
      #minor-release
      
      PiperOrigin-RevId: 461902089
      ibaker committed
    • Add Util helper methods to work with Futures · 1df79419
      This adds two methods that are helpful when working with Futures.
      One is a version of postOrRun that can indicate completion by a
      Future and the other is a simplified version of Guava's
      Futures.transformAsync (which can't be used as it's in Beta).
      
      PiperOrigin-RevId: 461896598
      tonihei committed
    • Remove okhttp related proguard rules · 759de7d6
      Issue: androidx/media#10310
      #minor-release
      PiperOrigin-RevId: 461889651
      bachinger committed
    • Don't include case statement if it falls through to default. · 42f2e144
      PiperOrigin-RevId: 461888238
      samrobinson committed
    • Only apply a MediaFormat-generated ColorInfo if it's valid. · 5533ad17
      Otherwise, invalid ColorInfo instances generated using faulty
      MediaFormat#getInteger values could cause exceptions.
      
      Confirmed that b/239435670 reproduces without this CL, and does not reproduce
      with this CL.
      
      PiperOrigin-RevId: 461862191
      huangdarwin committed
    • Add fail-fast null checks to the stable Player API · 080db2a0
      This will help developers self-diagnose issues like Issue: google/ExoPlayer#10392
      where the NPE occurs far from the original null value because a field
      gets assigned to null.
      
      This change aims to ensure that every stable method on Player,
      ExoPlayer and ExoPlayer.Builder that takes a non-null type will fail
      with an NPE before returning.
      
      #minor-release
      
      PiperOrigin-RevId: 461846580
      ibaker committed
    • HDR: Use FP16 color representation for texture processors. · f67c1a73
      * 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
      huangdarwin committed
    • HDR: Throw when unexpected color transfer encountered. · fd046bd2
      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
      huangdarwin committed
    • Use the current overrides of the player as preset · f828130c
      Issue: google/ExoPlayer#10429
      PiperOrigin-RevId: 461577039
      bachinger committed
    • Make minor fixes to HDR handling · 0db07c67
      - 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
      andrewlewis committed
    • Update demo HDR10 video URL · 405be80f
      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
      andrewlewis committed
  2. 15 Jul, 2022 4 commits
  3. 13 Jul, 2022 15 commits
  4. 12 Jul, 2022 8 commits
  5. 07 Jul, 2022 1 commit