View Javadoc
1   /*
2    * Licensed to The Apereo Foundation under one or more contributor license
3    * agreements. See the NOTICE file distributed with this work for additional
4    * information regarding copyright ownership.
5    *
6    *
7    * The Apereo Foundation licenses this file to you under the Educational
8    * Community License, Version 2.0 (the "License"); you may not use this file
9    * except in compliance with the License. You may obtain a copy of the License
10   * at:
11   *
12   *   http://opensource.org/licenses/ecl2.txt
13   *
14   * Unless required by applicable law or agreed to in writing, software
15   * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
16   * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the
17   * License for the specific language governing permissions and limitations under
18   * the License.
19   *
20   */
21  
22  
23  package org.opencastproject.inspection.ffmpeg.api;
24  
25  /**
26   * Common metadata for all kind of embedded media streams.
27   */
28  public class StreamMetadata extends TemporalMetadata {
29  
30    protected String alignment;
31  
32    protected Long delay;
33  
34    protected Long frames;
35  
36    protected Float compressionRatio;
37  
38    protected String captureDevice;
39    protected String captureDeviceVersion;
40    protected String captureDeviceVendor;
41    protected String captureDeviceURL;
42    protected String captureDeviceInfo;
43  
44    // bits
45    private Integer resolution;
46  
47    public String getAlignment() {
48      return alignment;
49    }
50  
51    public void setAlignment(String alignment) {
52      this.alignment = alignment;
53    }
54  
55    public Long getDelay() {
56      return delay;
57    }
58  
59    public void setDelay(Long delay) {
60      this.delay = delay;
61    }
62  
63    public Long getFrames() {
64      return frames;
65    }
66  
67    public void setFrames(Long frames) {
68      this.frames = frames;
69    }
70  
71    public Float getCompressionRatio() {
72      return compressionRatio;
73    }
74  
75    public void setCompressionRatio(Float compressionRatio) {
76      this.compressionRatio = compressionRatio;
77    }
78  
79    public String getCaptureDevice() {
80      return captureDevice;
81    }
82  
83    public void setCaptureDevice(String captureDevice) {
84      this.captureDevice = captureDevice;
85    }
86  
87    public String getCaptureDeviceVersion() {
88      return captureDeviceVersion;
89    }
90  
91    public void setCaptureDeviceVersion(String captureDeviceVersion) {
92      this.captureDeviceVersion = captureDeviceVersion;
93    }
94  
95    public String getCaptureDeviceVendor() {
96      return captureDeviceVendor;
97    }
98  
99    public void setCaptureDeviceVendor(String captureDeviceVendor) {
100     this.captureDeviceVendor = captureDeviceVendor;
101   }
102 
103   public String getCaptureDeviceURL() {
104     return captureDeviceURL;
105   }
106 
107   public void setCaptureDeviceURL(String captureDeviceURL) {
108     this.captureDeviceURL = captureDeviceURL;
109   }
110 
111   public String getCaptureDeviceInfo() {
112     return captureDeviceInfo;
113   }
114 
115   public void setCaptureDeviceInfo(String captureDeviceInfo) {
116     this.captureDeviceInfo = captureDeviceInfo;
117   }
118 
119   /** Returns the resolution in bits. Usually one of 8, 16, 20 or 24. */
120   public Integer getResolution() {
121     return resolution;
122   }
123 
124   /** Sets the resolution in bits. Usually one of 8, 16, 20 or 24. */
125   public void setResolution(Integer resolution) {
126     this.resolution = resolution;
127   }
128 }