Skip to content

Commit 48dc91b

Browse files
committed
Make java constants consistent with native counterparts.
Change-Id: I481dfc18c170b4c60682ef1b38b57e10fb73d004
1 parent 7e400cf commit 48dc91b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

api/current.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11013,8 +11013,8 @@ package android.media {
1101311013
field public static final int INFO_TRY_AGAIN_LATER = -1; // 0xffffffff
1101411014
field public static final int MODE_AES_CTR = 1; // 0x1
1101511015
field public static final int MODE_UNENCRYPTED = 0; // 0x0
11016+
field public static final int VIDEO_SCALING_MODE_SCALE_TO_FIT = 1; // 0x1
1101611017
field public static final int VIDEO_SCALING_MODE_SCALE_TO_FIT_WITH_CROPPING = 2; // 0x2
11017-
field public static final int VIDEO_SCALING_MODE_STRETCH_TO_FIT = 1; // 0x1
1101811018
}
1101911019

1102011020
public static final class MediaCodec.BufferInfo {

media/java/android/media/MediaCodec.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -443,15 +443,15 @@ public ByteBuffer[] getOutputBuffers() {
443443
}
444444

445445
/** The content is scaled to the surface dimensions */
446-
public static final int VIDEO_SCALING_MODE_STRETCH_TO_FIT = 1;
446+
public static final int VIDEO_SCALING_MODE_SCALE_TO_FIT = 1;
447447

448448
/** The content is scaled, maintaining its aspect ratio, the whole
449449
surface area is used, content may be cropped
450450
*/
451451
public static final int VIDEO_SCALING_MODE_SCALE_TO_FIT_WITH_CROPPING = 2;
452452

453453
/** If a surface has been specified in a previous call to {@link #configure}
454-
specifies the scaling mode to use. The default is "stretch to fit".
454+
specifies the scaling mode to use. The default is "scale to fit".
455455
*/
456456
public native final void setVideoScalingMode(int mode);
457457

0 commit comments

Comments
 (0)