Skip to content

Commit f72d392

Browse files
theandi666Android (Google) Code Review
authored andcommitted
Merge "Make java constants consistent with native counterparts." into jb-dev
2 parents 37a8370 + 48dc91b commit f72d392

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
@@ -11019,8 +11019,8 @@ package android.media {
1101911019
field public static final int INFO_TRY_AGAIN_LATER = -1; // 0xffffffff
1102011020
field public static final int MODE_AES_CTR = 1; // 0x1
1102111021
field public static final int MODE_UNENCRYPTED = 0; // 0x0
11022+
field public static final int VIDEO_SCALING_MODE_SCALE_TO_FIT = 1; // 0x1
1102211023
field public static final int VIDEO_SCALING_MODE_SCALE_TO_FIT_WITH_CROPPING = 2; // 0x2
11023-
field public static final int VIDEO_SCALING_MODE_STRETCH_TO_FIT = 1; // 0x1
1102411024
}
1102511025

1102611026
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)