1. 01 Jul, 2022 5 commits
    • HDR: Configure GL shaders and encoder. · 39047b56
      Configure the GL shaders and encoder to take in HDR metadata.
      
      This mostly just consists of passing the Format.colorInfo through
      the VideoTranscodingSamplePipeline down to the encoder, rather than passing
      the PQ-ness down to the GL step.
      
      Due to b/237674316, this will remove HDR10+ support temporarily to introduce
      support for HLG10.
      
      Manually tested to confirm that HLG10 operations that don't affect color display
      correctly after this CL with "HDR editing" in the demo checked, and continue to display incorrectly (as before this CL) without the option unchecked.
      
      PiperOrigin-RevId: 458490810
      (cherry picked from commit 53db3056)
      huangdarwin committed
    • Fix error in frame rate handling. · b440b556
      The old getString() will throw because FRAME_RATE can only be float or int.
      
      PiperOrigin-RevId: 458481251
      (cherry picked from commit 2b6f62b2)
      claincly committed
    • Find only REGULAR_CODECS in EncoderUtil. · e3f1787c
      We used "ALL_COOECS" previously, and it is not necessary because "ALL_CODECS"
      additionally the codecs that support tunneling/secure decoding, which there
      is no use case in Transformer.
      
      PiperOrigin-RevId: 458470278
      (cherry picked from commit 8f89eba5)
      claincly committed
    • Round the frame rate in MediaFormat · f1d4a4ca
      Although MediaCodec claims supporting float frame rate, encoder init failed on
      API21 Nexus 5. Since it's just a performance hint to the codec, it's OK to
      generalize it to other API versions.
      
      PiperOrigin-RevId: 458434650
      (cherry picked from commit 821ab267)
      claincly committed
    • Fix MIDI command timestamp calculations and synthesization duration. · d03fb394
      - Improve variable naming to include time units for clarity
      - Fix existing timestamp calculations to respect time units as well as track tempo (default values for now)
      - Ensure the synthesizer produces PCM for the correct amount of time (including gaps between commands).
      
      PiperOrigin-RevId: 458428243
      (cherry picked from commit bce59b1a)
      hmzh committed
  2. 29 Jun, 2022 4 commits
  3. 28 Jun, 2022 1 commit
  4. 27 Jun, 2022 1 commit
    • Add timestamp to `Metadata` · 76310ad4
      `MetadataRenderer` is updated to output `Metadata` with its presentation time, in microseconds.
      
      PiperOrigin-RevId: 457444718
      (cherry picked from commit 6e9275c1)
      rohks committed
  5. 24 Jun, 2022 2 commits
  6. 23 Jun, 2022 4 commits
  7. 22 Jun, 2022 3 commits
  8. 20 Jun, 2022 2 commits
  9. 17 Jun, 2022 1 commit
  10. 16 Jun, 2022 1 commit
  11. 15 Jun, 2022 4 commits
  12. 13 Jun, 2022 2 commits
  13. 10 Jun, 2022 2 commits
  14. 09 Jun, 2022 3 commits
  15. 08 Jun, 2022 3 commits
  16. 06 Jun, 2022 1 commit
    • Add interface for async texture processors. · 84b46c10
      Implementations of this interface will be able to drop or add frames,
      change timestamps, accept multiple input frames before producing
      output, and process frames on their own background thread.
      
      A default implementation of this interface will be added to SingleFrameGlTextureProcessor in a follow-up.
      
      PiperOrigin-RevId: 453159835
      (cherry picked from commit 023d19c8)
      hschlueter committed
  17. 31 May, 2022 1 commit
    • Add async error listener to transformer to avoid exception wrapping. · a04cc94a
      This internal listener avoids wrapping the TransformationExceptions
      in PlaybackExceptions that are handled via the Player.Listener and
      is also used for FrameProcessingExceptions which already avoided
      the PlaybackException layer previously.
      
      This listener will also be useful in follow-ups for encoder-related
      TransformationExceptions that are thrown in the SurfaceProvider that
      will be called on the GL thread.
      
      PiperOrigin-RevId: 452074575
      (cherry picked from commit 960422e3)
      hschlueter committed