OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 library media_types_mojom; | 5 library media_types_mojom; |
6 import 'package:mojo/bindings.dart' as bindings; | 6 import 'package:mojo/bindings.dart' as bindings; |
7 | 7 |
8 | 8 |
9 class MediaTypeScheme extends bindings.MojoEnum { | 9 class MediaTypeScheme extends bindings.MojoEnum { |
10 static const MediaTypeScheme unknown = const MediaTypeScheme._(0); | 10 static const MediaTypeScheme unknown = const MediaTypeScheme._(0); |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 case video: | 128 case video: |
129 return 'MediaTypeScheme.video'; | 129 return 'MediaTypeScheme.video'; |
130 default: | 130 default: |
131 return null; | 131 return null; |
132 } | 132 } |
133 } | 133 } |
134 | 134 |
135 int toJson() => mojoEnumValue; | 135 int toJson() => mojoEnumValue; |
136 } | 136 } |
137 | 137 |
138 | |
139 | |
140 class LpcmSampleFormat extends bindings.MojoEnum { | 138 class LpcmSampleFormat extends bindings.MojoEnum { |
141 static const LpcmSampleFormat unknown = const LpcmSampleFormat._(0); | 139 static const LpcmSampleFormat unknown = const LpcmSampleFormat._(0); |
142 static const LpcmSampleFormat any = const LpcmSampleFormat._(1); | 140 static const LpcmSampleFormat any = const LpcmSampleFormat._(1); |
143 static const LpcmSampleFormat unsigned8 = const LpcmSampleFormat._(2); | 141 static const LpcmSampleFormat unsigned8 = const LpcmSampleFormat._(2); |
144 static const LpcmSampleFormat signed16 = const LpcmSampleFormat._(3); | 142 static const LpcmSampleFormat signed16 = const LpcmSampleFormat._(3); |
145 static const LpcmSampleFormat signed24In32 = const LpcmSampleFormat._(4); | 143 static const LpcmSampleFormat signed24In32 = const LpcmSampleFormat._(4); |
146 static const LpcmSampleFormat float = const LpcmSampleFormat._(5); | 144 static const LpcmSampleFormat float = const LpcmSampleFormat._(5); |
147 | 145 |
148 const LpcmSampleFormat._(int v) : super(v); | 146 const LpcmSampleFormat._(int v) : super(v); |
149 | 147 |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 case float: | 208 case float: |
211 return 'LpcmSampleFormat.float'; | 209 return 'LpcmSampleFormat.float'; |
212 default: | 210 default: |
213 return null; | 211 return null; |
214 } | 212 } |
215 } | 213 } |
216 | 214 |
217 int toJson() => mojoEnumValue; | 215 int toJson() => mojoEnumValue; |
218 } | 216 } |
219 | 217 |
220 | |
221 | |
222 class AudioEncoding extends bindings.MojoEnum { | 218 class AudioEncoding extends bindings.MojoEnum { |
223 static const AudioEncoding unknown = const AudioEncoding._(0); | 219 static const AudioEncoding unknown = const AudioEncoding._(0); |
224 static const AudioEncoding any = const AudioEncoding._(1); | 220 static const AudioEncoding any = const AudioEncoding._(1); |
225 static const AudioEncoding vorbis = const AudioEncoding._(2); | 221 static const AudioEncoding vorbis = const AudioEncoding._(2); |
226 | 222 |
227 const AudioEncoding._(int v) : super(v); | 223 const AudioEncoding._(int v) : super(v); |
228 | 224 |
229 static const Map<String, AudioEncoding> valuesMap = const { | 225 static const Map<String, AudioEncoding> valuesMap = const { |
230 "unknown": unknown, | 226 "unknown": unknown, |
231 "any": any, | 227 "any": any, |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
271 case vorbis: | 267 case vorbis: |
272 return 'AudioEncoding.vorbis'; | 268 return 'AudioEncoding.vorbis'; |
273 default: | 269 default: |
274 return null; | 270 return null; |
275 } | 271 } |
276 } | 272 } |
277 | 273 |
278 int toJson() => mojoEnumValue; | 274 int toJson() => mojoEnumValue; |
279 } | 275 } |
280 | 276 |
281 | |
282 | |
283 class VideoEncoding extends bindings.MojoEnum { | 277 class VideoEncoding extends bindings.MojoEnum { |
284 static const VideoEncoding unknown = const VideoEncoding._(0); | 278 static const VideoEncoding unknown = const VideoEncoding._(0); |
285 static const VideoEncoding any = const VideoEncoding._(1); | 279 static const VideoEncoding any = const VideoEncoding._(1); |
286 static const VideoEncoding theora = const VideoEncoding._(2); | 280 static const VideoEncoding theora = const VideoEncoding._(2); |
287 static const VideoEncoding vp8 = const VideoEncoding._(3); | 281 static const VideoEncoding vp8 = const VideoEncoding._(3); |
288 | 282 |
289 const VideoEncoding._(int v) : super(v); | 283 const VideoEncoding._(int v) : super(v); |
290 | 284 |
291 static const Map<String, VideoEncoding> valuesMap = const { | 285 static const Map<String, VideoEncoding> valuesMap = const { |
292 "unknown": unknown, | 286 "unknown": unknown, |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
339 case vp8: | 333 case vp8: |
340 return 'VideoEncoding.vp8'; | 334 return 'VideoEncoding.vp8'; |
341 default: | 335 default: |
342 return null; | 336 return null; |
343 } | 337 } |
344 } | 338 } |
345 | 339 |
346 int toJson() => mojoEnumValue; | 340 int toJson() => mojoEnumValue; |
347 } | 341 } |
348 | 342 |
349 | |
350 | |
351 class VideoProfile extends bindings.MojoEnum { | 343 class VideoProfile extends bindings.MojoEnum { |
352 static const VideoProfile unknown = const VideoProfile._(0); | 344 static const VideoProfile unknown = const VideoProfile._(0); |
353 static const VideoProfile notApplicable = const VideoProfile._(1); | 345 static const VideoProfile notApplicable = const VideoProfile._(1); |
354 static const VideoProfile h264Baseline = const VideoProfile._(2); | 346 static const VideoProfile h264Baseline = const VideoProfile._(2); |
355 static const VideoProfile h264Main = const VideoProfile._(3); | 347 static const VideoProfile h264Main = const VideoProfile._(3); |
356 static const VideoProfile h264Extended = const VideoProfile._(4); | 348 static const VideoProfile h264Extended = const VideoProfile._(4); |
357 static const VideoProfile h264High = const VideoProfile._(5); | 349 static const VideoProfile h264High = const VideoProfile._(5); |
358 static const VideoProfile h264High10 = const VideoProfile._(6); | 350 static const VideoProfile h264High10 = const VideoProfile._(6); |
359 static const VideoProfile h264High422 = const VideoProfile._(7); | 351 static const VideoProfile h264High422 = const VideoProfile._(7); |
360 static const VideoProfile h264High444Predictive = const VideoProfile._(8); | 352 static const VideoProfile h264High444Predictive = const VideoProfile._(8); |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
470 case h264MultiviewHigh: | 462 case h264MultiviewHigh: |
471 return 'VideoProfile.h264MultiviewHigh'; | 463 return 'VideoProfile.h264MultiviewHigh'; |
472 default: | 464 default: |
473 return null; | 465 return null; |
474 } | 466 } |
475 } | 467 } |
476 | 468 |
477 int toJson() => mojoEnumValue; | 469 int toJson() => mojoEnumValue; |
478 } | 470 } |
479 | 471 |
480 | |
481 | |
482 class PixelFormat extends bindings.MojoEnum { | 472 class PixelFormat extends bindings.MojoEnum { |
483 static const PixelFormat unknown = const PixelFormat._(0); | 473 static const PixelFormat unknown = const PixelFormat._(0); |
484 static const PixelFormat i420 = const PixelFormat._(1); | 474 static const PixelFormat i420 = const PixelFormat._(1); |
485 static const PixelFormat yv12 = const PixelFormat._(2); | 475 static const PixelFormat yv12 = const PixelFormat._(2); |
486 static const PixelFormat yv16 = const PixelFormat._(3); | 476 static const PixelFormat yv16 = const PixelFormat._(3); |
487 static const PixelFormat yv12A = const PixelFormat._(4); | 477 static const PixelFormat yv12A = const PixelFormat._(4); |
488 static const PixelFormat yv24 = const PixelFormat._(5); | 478 static const PixelFormat yv24 = const PixelFormat._(5); |
489 static const PixelFormat nv12 = const PixelFormat._(6); | 479 static const PixelFormat nv12 = const PixelFormat._(6); |
490 static const PixelFormat nv21 = const PixelFormat._(7); | 480 static const PixelFormat nv21 = const PixelFormat._(7); |
491 static const PixelFormat uyvy = const PixelFormat._(8); | 481 static const PixelFormat uyvy = const PixelFormat._(8); |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
622 case mt21: | 612 case mt21: |
623 return 'PixelFormat.mt21'; | 613 return 'PixelFormat.mt21'; |
624 default: | 614 default: |
625 return null; | 615 return null; |
626 } | 616 } |
627 } | 617 } |
628 | 618 |
629 int toJson() => mojoEnumValue; | 619 int toJson() => mojoEnumValue; |
630 } | 620 } |
631 | 621 |
632 | |
633 | |
634 class ColorSpace extends bindings.MojoEnum { | 622 class ColorSpace extends bindings.MojoEnum { |
635 static const ColorSpace unknown = const ColorSpace._(0); | 623 static const ColorSpace unknown = const ColorSpace._(0); |
636 static const ColorSpace notApplicable = const ColorSpace._(1); | 624 static const ColorSpace notApplicable = const ColorSpace._(1); |
637 static const ColorSpace jpeg = const ColorSpace._(2); | 625 static const ColorSpace jpeg = const ColorSpace._(2); |
638 static const ColorSpace hdRec709 = const ColorSpace._(3); | 626 static const ColorSpace hdRec709 = const ColorSpace._(3); |
639 static const ColorSpace sdRec601 = const ColorSpace._(4); | 627 static const ColorSpace sdRec601 = const ColorSpace._(4); |
640 | 628 |
641 const ColorSpace._(int v) : super(v); | 629 const ColorSpace._(int v) : super(v); |
642 | 630 |
643 static const Map<String, ColorSpace> valuesMap = const { | 631 static const Map<String, ColorSpace> valuesMap = const { |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
699 default: | 687 default: |
700 return null; | 688 return null; |
701 } | 689 } |
702 } | 690 } |
703 | 691 |
704 int toJson() => mojoEnumValue; | 692 int toJson() => mojoEnumValue; |
705 } | 693 } |
706 | 694 |
707 | 695 |
708 | 696 |
709 | |
710 | |
711 class MediaType extends bindings.Struct { | 697 class MediaType extends bindings.Struct { |
712 static const List<bindings.StructDataHeader> kVersions = const [ | 698 static const List<bindings.StructDataHeader> kVersions = const [ |
713 const bindings.StructDataHeader(32, 0) | 699 const bindings.StructDataHeader(32, 0) |
714 ]; | 700 ]; |
715 MediaTypeScheme scheme = null; | 701 MediaTypeScheme scheme = null; |
716 MediaTypeDetails details = null; | 702 MediaTypeDetails details = null; |
717 | 703 |
718 MediaType() : super(kVersions.last.size); | 704 MediaType() : super(kVersions.last.size); |
719 | 705 |
720 static MediaType deserialize(bindings.Message message) { | 706 static MediaType deserialize(bindings.Message message) { |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
791 | 777 |
792 Map toJson() { | 778 Map toJson() { |
793 Map map = new Map(); | 779 Map map = new Map(); |
794 map["scheme"] = scheme; | 780 map["scheme"] = scheme; |
795 map["details"] = details; | 781 map["details"] = details; |
796 return map; | 782 return map; |
797 } | 783 } |
798 } | 784 } |
799 | 785 |
800 | 786 |
801 | |
802 | |
803 class MediaTypeSet extends bindings.Struct { | 787 class MediaTypeSet extends bindings.Struct { |
804 static const List<bindings.StructDataHeader> kVersions = const [ | 788 static const List<bindings.StructDataHeader> kVersions = const [ |
805 const bindings.StructDataHeader(32, 0) | 789 const bindings.StructDataHeader(32, 0) |
806 ]; | 790 ]; |
807 MediaTypeScheme scheme = null; | 791 MediaTypeScheme scheme = null; |
808 MediaTypeSetDetails details = null; | 792 MediaTypeSetDetails details = null; |
809 | 793 |
810 MediaTypeSet() : super(kVersions.last.size); | 794 MediaTypeSet() : super(kVersions.last.size); |
811 | 795 |
812 static MediaTypeSet deserialize(bindings.Message message) { | 796 static MediaTypeSet deserialize(bindings.Message message) { |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
883 | 867 |
884 Map toJson() { | 868 Map toJson() { |
885 Map map = new Map(); | 869 Map map = new Map(); |
886 map["scheme"] = scheme; | 870 map["scheme"] = scheme; |
887 map["details"] = details; | 871 map["details"] = details; |
888 return map; | 872 return map; |
889 } | 873 } |
890 } | 874 } |
891 | 875 |
892 | 876 |
893 | |
894 | |
895 class LpcmMediaTypeDetails extends bindings.Struct { | 877 class LpcmMediaTypeDetails extends bindings.Struct { |
896 static const List<bindings.StructDataHeader> kVersions = const [ | 878 static const List<bindings.StructDataHeader> kVersions = const [ |
897 const bindings.StructDataHeader(24, 0) | 879 const bindings.StructDataHeader(24, 0) |
898 ]; | 880 ]; |
899 LpcmSampleFormat sampleFormat = null; | 881 LpcmSampleFormat sampleFormat = null; |
900 int channels = 0; | 882 int channels = 0; |
901 int framesPerSecond = 0; | 883 int framesPerSecond = 0; |
902 | 884 |
903 LpcmMediaTypeDetails() : super(kVersions.last.size); | 885 LpcmMediaTypeDetails() : super(kVersions.last.size); |
904 | 886 |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
989 Map toJson() { | 971 Map toJson() { |
990 Map map = new Map(); | 972 Map map = new Map(); |
991 map["sampleFormat"] = sampleFormat; | 973 map["sampleFormat"] = sampleFormat; |
992 map["channels"] = channels; | 974 map["channels"] = channels; |
993 map["framesPerSecond"] = framesPerSecond; | 975 map["framesPerSecond"] = framesPerSecond; |
994 return map; | 976 return map; |
995 } | 977 } |
996 } | 978 } |
997 | 979 |
998 | 980 |
999 | |
1000 | |
1001 class LpcmMediaTypeSetDetails extends bindings.Struct { | 981 class LpcmMediaTypeSetDetails extends bindings.Struct { |
1002 static const List<bindings.StructDataHeader> kVersions = const [ | 982 static const List<bindings.StructDataHeader> kVersions = const [ |
1003 const bindings.StructDataHeader(32, 0) | 983 const bindings.StructDataHeader(32, 0) |
1004 ]; | 984 ]; |
1005 LpcmSampleFormat sampleFormat = null; | 985 LpcmSampleFormat sampleFormat = null; |
1006 int minChannels = 0; | 986 int minChannels = 0; |
1007 int maxChannels = 0; | 987 int maxChannels = 0; |
1008 int minFramesPerSecond = 0; | 988 int minFramesPerSecond = 0; |
1009 int maxFramesPerSecond = 0; | 989 int maxFramesPerSecond = 0; |
1010 | 990 |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1123 map["sampleFormat"] = sampleFormat; | 1103 map["sampleFormat"] = sampleFormat; |
1124 map["minChannels"] = minChannels; | 1104 map["minChannels"] = minChannels; |
1125 map["maxChannels"] = maxChannels; | 1105 map["maxChannels"] = maxChannels; |
1126 map["minFramesPerSecond"] = minFramesPerSecond; | 1106 map["minFramesPerSecond"] = minFramesPerSecond; |
1127 map["maxFramesPerSecond"] = maxFramesPerSecond; | 1107 map["maxFramesPerSecond"] = maxFramesPerSecond; |
1128 return map; | 1108 return map; |
1129 } | 1109 } |
1130 } | 1110 } |
1131 | 1111 |
1132 | 1112 |
1133 | |
1134 | |
1135 class MultiplexedMediaTypeDetails extends bindings.Struct { | 1113 class MultiplexedMediaTypeDetails extends bindings.Struct { |
1136 static const List<bindings.StructDataHeader> kVersions = const [ | 1114 static const List<bindings.StructDataHeader> kVersions = const [ |
1137 const bindings.StructDataHeader(24, 0) | 1115 const bindings.StructDataHeader(24, 0) |
1138 ]; | 1116 ]; |
1139 MediaType multiplexType = null; | 1117 MediaType multiplexType = null; |
1140 List<MediaType> substreamTypes = null; | 1118 List<MediaType> substreamTypes = null; |
1141 | 1119 |
1142 MultiplexedMediaTypeDetails() : super(kVersions.last.size); | 1120 MultiplexedMediaTypeDetails() : super(kVersions.last.size); |
1143 | 1121 |
1144 static MultiplexedMediaTypeDetails deserialize(bindings.Message message) { | 1122 static MultiplexedMediaTypeDetails deserialize(bindings.Message message) { |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1228 | 1206 |
1229 Map toJson() { | 1207 Map toJson() { |
1230 Map map = new Map(); | 1208 Map map = new Map(); |
1231 map["multiplexType"] = multiplexType; | 1209 map["multiplexType"] = multiplexType; |
1232 map["substreamTypes"] = substreamTypes; | 1210 map["substreamTypes"] = substreamTypes; |
1233 return map; | 1211 return map; |
1234 } | 1212 } |
1235 } | 1213 } |
1236 | 1214 |
1237 | 1215 |
1238 | |
1239 | |
1240 class MultiplexedMediaTypeSetDetails extends bindings.Struct { | 1216 class MultiplexedMediaTypeSetDetails extends bindings.Struct { |
1241 static const List<bindings.StructDataHeader> kVersions = const [ | 1217 static const List<bindings.StructDataHeader> kVersions = const [ |
1242 const bindings.StructDataHeader(24, 0) | 1218 const bindings.StructDataHeader(24, 0) |
1243 ]; | 1219 ]; |
1244 MediaTypeSet multiplexTypeSet = null; | 1220 MediaTypeSet multiplexTypeSet = null; |
1245 List<MediaTypeSet> substreamTypeSets = null; | 1221 List<MediaTypeSet> substreamTypeSets = null; |
1246 | 1222 |
1247 MultiplexedMediaTypeSetDetails() : super(kVersions.last.size); | 1223 MultiplexedMediaTypeSetDetails() : super(kVersions.last.size); |
1248 | 1224 |
1249 static MultiplexedMediaTypeSetDetails deserialize(bindings.Message message) { | 1225 static MultiplexedMediaTypeSetDetails deserialize(bindings.Message message) { |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1333 | 1309 |
1334 Map toJson() { | 1310 Map toJson() { |
1335 Map map = new Map(); | 1311 Map map = new Map(); |
1336 map["multiplexTypeSet"] = multiplexTypeSet; | 1312 map["multiplexTypeSet"] = multiplexTypeSet; |
1337 map["substreamTypeSets"] = substreamTypeSets; | 1313 map["substreamTypeSets"] = substreamTypeSets; |
1338 return map; | 1314 return map; |
1339 } | 1315 } |
1340 } | 1316 } |
1341 | 1317 |
1342 | 1318 |
1343 | |
1344 | |
1345 class CompressedAudioMediaTypeDetails extends bindings.Struct { | 1319 class CompressedAudioMediaTypeDetails extends bindings.Struct { |
1346 static const List<bindings.StructDataHeader> kVersions = const [ | 1320 static const List<bindings.StructDataHeader> kVersions = const [ |
1347 const bindings.StructDataHeader(32, 0) | 1321 const bindings.StructDataHeader(32, 0) |
1348 ]; | 1322 ]; |
1349 AudioEncoding encoding = null; | 1323 AudioEncoding encoding = null; |
1350 LpcmSampleFormat sampleFormat = null; | 1324 LpcmSampleFormat sampleFormat = null; |
1351 int channels = 0; | 1325 int channels = 0; |
1352 int framesPerSecond = 0; | 1326 int framesPerSecond = 0; |
1353 String extraDataBase64 = null; | 1327 String extraDataBase64 = null; |
1354 | 1328 |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1471 map["encoding"] = encoding; | 1445 map["encoding"] = encoding; |
1472 map["sampleFormat"] = sampleFormat; | 1446 map["sampleFormat"] = sampleFormat; |
1473 map["channels"] = channels; | 1447 map["channels"] = channels; |
1474 map["framesPerSecond"] = framesPerSecond; | 1448 map["framesPerSecond"] = framesPerSecond; |
1475 map["extraDataBase64"] = extraDataBase64; | 1449 map["extraDataBase64"] = extraDataBase64; |
1476 return map; | 1450 return map; |
1477 } | 1451 } |
1478 } | 1452 } |
1479 | 1453 |
1480 | 1454 |
1481 | |
1482 | |
1483 class CompressedAudioMediaTypeSetDetails extends bindings.Struct { | 1455 class CompressedAudioMediaTypeSetDetails extends bindings.Struct { |
1484 static const List<bindings.StructDataHeader> kVersions = const [ | 1456 static const List<bindings.StructDataHeader> kVersions = const [ |
1485 const bindings.StructDataHeader(32, 0) | 1457 const bindings.StructDataHeader(32, 0) |
1486 ]; | 1458 ]; |
1487 AudioEncoding encoding = null; | 1459 AudioEncoding encoding = null; |
1488 LpcmSampleFormat sampleFormat = null; | 1460 LpcmSampleFormat sampleFormat = null; |
1489 int minChannels = 0; | 1461 int minChannels = 0; |
1490 int maxChannels = 0; | 1462 int maxChannels = 0; |
1491 int minFramesPerSecond = 0; | 1463 int minFramesPerSecond = 0; |
1492 int maxFramesPerSecond = 0; | 1464 int maxFramesPerSecond = 0; |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1623 map["sampleFormat"] = sampleFormat; | 1595 map["sampleFormat"] = sampleFormat; |
1624 map["minChannels"] = minChannels; | 1596 map["minChannels"] = minChannels; |
1625 map["maxChannels"] = maxChannels; | 1597 map["maxChannels"] = maxChannels; |
1626 map["minFramesPerSecond"] = minFramesPerSecond; | 1598 map["minFramesPerSecond"] = minFramesPerSecond; |
1627 map["maxFramesPerSecond"] = maxFramesPerSecond; | 1599 map["maxFramesPerSecond"] = maxFramesPerSecond; |
1628 return map; | 1600 return map; |
1629 } | 1601 } |
1630 } | 1602 } |
1631 | 1603 |
1632 | 1604 |
1633 | |
1634 | |
1635 class VideoMediaTypeDetails extends bindings.Struct { | 1605 class VideoMediaTypeDetails extends bindings.Struct { |
1636 static const List<bindings.StructDataHeader> kVersions = const [ | 1606 static const List<bindings.StructDataHeader> kVersions = const [ |
1637 const bindings.StructDataHeader(48, 0) | 1607 const bindings.StructDataHeader(48, 0) |
1638 ]; | 1608 ]; |
1639 VideoEncoding encoding = null; | 1609 VideoEncoding encoding = null; |
1640 VideoProfile profile = null; | 1610 VideoProfile profile = null; |
1641 PixelFormat pixelFormat = null; | 1611 PixelFormat pixelFormat = null; |
1642 ColorSpace colorSpace = null; | 1612 ColorSpace colorSpace = null; |
1643 int width = 0; | 1613 int width = 0; |
1644 int height = 0; | 1614 int height = 0; |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1825 map["width"] = width; | 1795 map["width"] = width; |
1826 map["height"] = height; | 1796 map["height"] = height; |
1827 map["codedWidth"] = codedWidth; | 1797 map["codedWidth"] = codedWidth; |
1828 map["codedHeight"] = codedHeight; | 1798 map["codedHeight"] = codedHeight; |
1829 map["extraDataBase64"] = extraDataBase64; | 1799 map["extraDataBase64"] = extraDataBase64; |
1830 return map; | 1800 return map; |
1831 } | 1801 } |
1832 } | 1802 } |
1833 | 1803 |
1834 | 1804 |
1835 | |
1836 | |
1837 class VideoMediaTypeSetDetails extends bindings.Struct { | 1805 class VideoMediaTypeSetDetails extends bindings.Struct { |
1838 static const List<bindings.StructDataHeader> kVersions = const [ | 1806 static const List<bindings.StructDataHeader> kVersions = const [ |
1839 const bindings.StructDataHeader(32, 0) | 1807 const bindings.StructDataHeader(32, 0) |
1840 ]; | 1808 ]; |
1841 VideoEncoding encoding = null; | 1809 VideoEncoding encoding = null; |
1842 int minWidth = 0; | 1810 int minWidth = 0; |
1843 int maxWidth = 0; | 1811 int maxWidth = 0; |
1844 int minHeight = 0; | 1812 int minHeight = 0; |
1845 int maxHeight = 0; | 1813 int maxHeight = 0; |
1846 | 1814 |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1960 map["minWidth"] = minWidth; | 1928 map["minWidth"] = minWidth; |
1961 map["maxWidth"] = maxWidth; | 1929 map["maxWidth"] = maxWidth; |
1962 map["minHeight"] = minHeight; | 1930 map["minHeight"] = minHeight; |
1963 map["maxHeight"] = maxHeight; | 1931 map["maxHeight"] = maxHeight; |
1964 return map; | 1932 return map; |
1965 } | 1933 } |
1966 } | 1934 } |
1967 | 1935 |
1968 | 1936 |
1969 | 1937 |
1970 | |
1971 | |
1972 enum MediaTypeDetailsTag { | 1938 enum MediaTypeDetailsTag { |
1973 multiplexed, | 1939 multiplexed, |
1974 lpcm, | 1940 lpcm, |
1975 compressedAudio, | 1941 compressedAudio, |
1976 video, | 1942 video, |
1977 unknown | 1943 unknown |
1978 } | 1944 } |
1979 | 1945 |
1980 class MediaTypeDetails extends bindings.Union { | 1946 class MediaTypeDetails extends bindings.Union { |
1981 static final _tag_to_int = const { | 1947 static final _tag_to_int = const { |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2117 break; | 2083 break; |
2118 default: | 2084 default: |
2119 result += "unknown"; | 2085 result += "unknown"; |
2120 } | 2086 } |
2121 result += ": $_data)"; | 2087 result += ": $_data)"; |
2122 return result; | 2088 return result; |
2123 } | 2089 } |
2124 } | 2090 } |
2125 | 2091 |
2126 | 2092 |
2127 | |
2128 | |
2129 enum MediaTypeSetDetailsTag { | 2093 enum MediaTypeSetDetailsTag { |
2130 multiplexed, | 2094 multiplexed, |
2131 lpcm, | 2095 lpcm, |
2132 compressedAudio, | 2096 compressedAudio, |
2133 video, | 2097 video, |
2134 unknown | 2098 unknown |
2135 } | 2099 } |
2136 | 2100 |
2137 class MediaTypeSetDetails extends bindings.Union { | 2101 class MediaTypeSetDetails extends bindings.Union { |
2138 static final _tag_to_int = const { | 2102 static final _tag_to_int = const { |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2274 break; | 2238 break; |
2275 default: | 2239 default: |
2276 result += "unknown"; | 2240 result += "unknown"; |
2277 } | 2241 } |
2278 result += ": $_data)"; | 2242 result += ": $_data)"; |
2279 return result; | 2243 return result; |
2280 } | 2244 } |
2281 } | 2245 } |
2282 | 2246 |
2283 | 2247 |
2284 | |
2285 | |
2286 | |
OLD | NEW |