1. 13 Jul, 2022 8 commits
  2. 12 Jul, 2022 8 commits
  3. 07 Jul, 2022 11 commits
  4. 06 Jul, 2022 2 commits
    • Add RTP VP8 Reader Test · 1de4ee3a
      Update VP8 Reader to handle missing frames/fragments.
      
      Change-Id: I9eede8f1e3a20fb0ff2e7add0dfc60f0780ec769
      Shraddha Basantwani committed
    • Fix VP8 Reader · ff3d7dff
      Update VP8 header to check if the S bit is set.
      
      Variable fragmentedSampleSizeBytes is initialised with -1, and reader
      is directly adding fragmentSize to this variable.
      Updated it to check if the size is unset.
      
      Bug: 238153477
      Test: manual
      Change-Id: I9d5735422a4a0eeb2967af93809b879b434e3c57
      Shraddha Basantwani committed
  5. 04 Jul, 2022 11 commits
    • Implement device based encoder bitrate mapping. · 7d2eb760
      This feature is disabled by default for now.
      
      PiperOrigin-RevId: 458932471
      samrobinson committed
    • Merge pull request #96 from fengdai:release · 8e5af4a3
      PiperOrigin-RevId: 458883441
      Marc Baechinger committed
    • Fallback to SDR if encoder doesn't support HDR (HLG only). · 9c8dcb40
      If the input is HDR (HLG), check encoder capabilities for HDR support
      and request tone-mapping to SDR during decoder configuration otherwise.
      Capabilities are only checked for API 31 and above, as HDR editing is
      not supported before.
      
      As the encoder capabilities check needs to happen before selecting the
      encoder to use (as this may depend on the resolution output by the
      effects chain), the EncoderWrapper checks all candidate encoders
      for the MIME type for HDR capabilities and only requests fallback to
      SDR if none of them support it.
      
      When the actual encoder is selected, the wrapper checks that it matches
      one of the encoders is checked capabilities for.
      
      PiperOrigin-RevId: 458511599
      hschlueter committed
    • HDR: Configure GL shaders and encoder. · a0870a42
      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
      huangdarwin committed
    • Fix error in frame rate handling. · deea5c92
      The old getString() will throw because FRAME_RATE can only be float or int.
      
      PiperOrigin-RevId: 458481251
      claincly committed
    • Only consider enabled tracks in ProgressiveMediaPeriod.bufferedPosition · ceb23e69
      ProgressiveMediaPeriod loads all available tracks into SampleStreams
      (because it needs to read the data anyway and it allows easy activation
      of tracks without reloading). However, the SampleStreams for disabled
      tracks are not read and no one if waiting for them.
      
      The buffered position is used for user-visible state (e.g. in the UI)
      and to check how much data is already buffered to decide when to stop
      buffering (using LoadControl). Both values benefit from only
      using the actually enabled tracks to better reflect what is available
      for playback at the moment.
      
      Issue:Issue: google/ExoPlayer#10361
      PiperOrigin-RevId: 458475038
      tonihei committed
    • Find only REGULAR_CODECS in EncoderUtil. · 3df4f3eb
      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
      claincly committed
    • Document custom commands in the DefaultMediaNotificationProvider · 2c080681
      Issue: androidx/media#103
      #minor-release
      PiperOrigin-RevId: 458465479
      bachinger committed
    • Use ContextCompat.getMainExecutor when calling MediaBrowser methods · c9abe702
      This allows the service to be switched to run in another process and the app still works the same as if it is running in the same process.
      
      Issue: androidx/media#100
      PiperOrigin-RevId: 458460005
      bachinger committed
    • Round the frame rate in MediaFormat · 1f47fa83
      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
      claincly committed
    • Fix MIDI command timestamp calculations and synthesization duration. · da0a208b
      - 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
      hmzh committed