Skip to content

Commit

Permalink
Make EncoderBitrateProvider and implementations package private.
Browse files Browse the repository at this point in the history
There is no API to allow applications to use these currently. Until
that exists, these classes do not need to be public.

PiperOrigin-RevId: 500792401
  • Loading branch information
Samrobbo authored and christosts committed Jan 10, 2023
1 parent 8cac27a commit 2693b60
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import com.google.android.exoplayer2.util.Util;

/** Provides encoder bitrates that should target 0.95 SSIM or higher, accounting for device used. */
public class DeviceMappedEncoderBitrateProvider implements EncoderBitrateProvider {
/* package */ class DeviceMappedEncoderBitrateProvider implements EncoderBitrateProvider {

@Override
public int getBitrate(String encoderName, int width, int height, float frameRate) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import android.media.MediaCodecInfo;

/** Provides bitrates for encoders to use as a target. */
public interface EncoderBitrateProvider {
/* package */ interface EncoderBitrateProvider {

/**
* Returns a recommended bitrate that the encoder should target.
Expand Down

0 comments on commit 2693b60

Please sign in to comment.