1 /* This Source Code Form is subject to the terms of the Mozilla Public 2 * License, v. 2.0. If a copy of the MPL was not distributed with this 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 5 package org.mozilla.gecko.media; 6 7 import java.nio.ByteBuffer; 8 import org.mozilla.gecko.annotation.WrapForJNI; 9 10 //A subset of the class VideoInfo in dom/media/MediaInfo.h 11 @WrapForJNI 12 public final class GeckoVideoInfo { 13 final public byte[] codecSpecificData; 14 final public byte[] extraData; 15 final public int displayWidth; 16 final public int displayHeight; 17 final public int pictureWidth; 18 final public int pictureHeight; 19 final public int rotation; 20 final public int stereoMode; 21 final public long duration; 22 final public String mimeType; GeckoVideoInfo(int displayWidth, int displayHeight, int pictureWidth, int pictureHeight, int rotation, int stereoMode, long duration, String mimeType, byte[] extraData, byte[] codecSpecificData)23 public GeckoVideoInfo(int displayWidth, int displayHeight, 24 int pictureWidth, int pictureHeight, 25 int rotation, int stereoMode, long duration, String mimeType, 26 byte[] extraData, byte[] codecSpecificData) { 27 this.displayWidth = displayWidth; 28 this.displayHeight = displayHeight; 29 this.pictureWidth = pictureWidth; 30 this.pictureHeight = pictureHeight; 31 this.rotation = rotation; 32 this.stereoMode = stereoMode; 33 this.duration = duration; 34 this.mimeType = mimeType; 35 this.extraData = extraData; 36 this.codecSpecificData = codecSpecificData; 37 } 38 } 39