Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(22)

Side by Side Diff: webrtc/api/android/java/src/org/webrtc/VideoSource.java

Issue 2547483003: Move /webrtc/api/android files to /webrtc/sdk/android (Closed)
Patch Set: Move to api folder under Android instead of src Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 /*
2 * Copyright 2013 The WebRTC project authors. All Rights Reserved.
3 *
4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 */
10
11 package org.webrtc;
12
13 /**
14 * Java wrapper of native AndroidVideoTrackSource.
15 */
16 public class VideoSource extends MediaSource {
17 public VideoSource(long nativeSource) {
18 super(nativeSource);
19 }
20
21 /**
22 * Calling this function will cause frames to be scaled down to the requested resolution. Also,
23 * frames will be cropped to match the requested aspect ratio, and frames will be dropped to match
24 * the requested fps. The requested aspect ratio is orientation agnostic and w ill be adjusted to
25 * maintain the input orientation, so it doesn't matter if e.g. 1280x720 or 72 0x1280 is requested.
26 */
27 public void adaptOutputFormat(int width, int height, int fps) {
28 nativeAdaptOutputFormat(nativeSource, width, height, fps);
29 }
30
31 private static native void nativeAdaptOutputFormat(
32 long nativeSource, int width, int height, int fps);
33 }
OLDNEW
« no previous file with comments | « webrtc/api/android/java/src/org/webrtc/VideoRendererGui.java ('k') | webrtc/api/android/java/src/org/webrtc/VideoTrack.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698