summaryrefslogtreecommitdiffstats
path: root/mobile/android/geckoview/src/main/java/org/mozilla/gecko/media/GeckoVideoInfo.java
blob: c641c58354e7f6d3823921168ee7f2361b4c099a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

package org.mozilla.gecko.media;

import org.mozilla.gecko.annotation.WrapForJNI;

// A subset of the class VideoInfo in dom/media/MediaInfo.h
@WrapForJNI
public final class GeckoVideoInfo {
  public final byte[] codecSpecificData;
  public final byte[] extraData;
  public final int displayWidth;
  public final int displayHeight;
  public final int pictureWidth;
  public final int pictureHeight;
  public final int rotation;
  public final int stereoMode;
  public final long duration;
  public final String mimeType;

  public GeckoVideoInfo(
      final int displayWidth,
      final int displayHeight,
      final int pictureWidth,
      final int pictureHeight,
      final int rotation,
      final int stereoMode,
      final long duration,
      final String mimeType,
      final byte[] extraData,
      final byte[] codecSpecificData) {
    this.displayWidth = displayWidth;
    this.displayHeight = displayHeight;
    this.pictureWidth = pictureWidth;
    this.pictureHeight = pictureHeight;
    this.rotation = rotation;
    this.stereoMode = stereoMode;
    this.duration = duration;
    this.mimeType = mimeType;
    this.extraData = extraData;
    this.codecSpecificData = codecSpecificData;
  }
}