1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23 package org.opencastproject.mediapackage;
24
25 import org.opencastproject.mediapackage.track.ScanOrder;
26 import org.opencastproject.mediapackage.track.ScanType;
27 import org.opencastproject.mediapackage.track.VideoStreamImpl;
28
29 import javax.xml.bind.annotation.adapters.XmlAdapter;
30 import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
31
32
33
34
35 @XmlJavaTypeAdapter(VideoStream.Adapter.class)
36 public interface VideoStream extends Stream {
37
38 Float getBitRate();
39
40 Float getFrameRate();
41
42 Integer getFrameWidth();
43
44 Integer getFrameHeight();
45
46 ScanType getScanType();
47
48 ScanOrder getScanOrder();
49
50 String getCaptureDevice();
51
52 String getCaptureDeviceVersion();
53
54 String getCaptureDeviceVendor();
55
56 String getFormat();
57
58 String getFormatVersion();
59
60 String getEncoderLibraryVendor();
61
62 class Adapter extends XmlAdapter<VideoStreamImpl, Stream> {
63 @Override
64 public VideoStreamImpl marshal(Stream v) throws Exception {
65 return (VideoStreamImpl) v;
66 }
67
68 @Override
69 public Stream unmarshal(VideoStreamImpl v) throws Exception {
70 return v;
71 }
72 }
73 }