| 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 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 | 8 |
| 9 import 'package:mojo/bindings.dart' as bindings; | 9 import 'package:mojo/bindings.dart' as bindings; |
| 10 import 'package:mojo/core.dart' as core; | 10 import 'package:mojo/core.dart' as core; |
| 11 import 'package:mojo/mojo/bindings/types/mojom_types.mojom.dart' as mojom_types; |
| 12 |
| 11 | 13 |
| 12 class MediaTypeScheme extends bindings.MojoEnum { | 14 class MediaTypeScheme extends bindings.MojoEnum { |
| 13 static const MediaTypeScheme unknown = const MediaTypeScheme._(0); | 15 static const MediaTypeScheme unknown = const MediaTypeScheme._(0); |
| 14 static const MediaTypeScheme none = const MediaTypeScheme._(1); | 16 static const MediaTypeScheme none = const MediaTypeScheme._(1); |
| 15 static const MediaTypeScheme anyElementary = const MediaTypeScheme._(2); | 17 static const MediaTypeScheme anyElementary = const MediaTypeScheme._(2); |
| 16 static const MediaTypeScheme anyAudio = const MediaTypeScheme._(3); | 18 static const MediaTypeScheme anyAudio = const MediaTypeScheme._(3); |
| 17 static const MediaTypeScheme anyVideo = const MediaTypeScheme._(4); | 19 static const MediaTypeScheme anyVideo = const MediaTypeScheme._(4); |
| 18 static const MediaTypeScheme anySubpicture = const MediaTypeScheme._(5); | 20 static const MediaTypeScheme anySubpicture = const MediaTypeScheme._(5); |
| 19 static const MediaTypeScheme anyText = const MediaTypeScheme._(6); | 21 static const MediaTypeScheme anyText = const MediaTypeScheme._(6); |
| 20 static const MediaTypeScheme anyMultiplexed = const MediaTypeScheme._(7); | 22 static const MediaTypeScheme anyMultiplexed = const MediaTypeScheme._(7); |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 case any: | 125 case any: |
| 124 return 'MediaTypeScheme.any'; | 126 return 'MediaTypeScheme.any'; |
| 125 case multiplexed: | 127 case multiplexed: |
| 126 return 'MediaTypeScheme.multiplexed'; | 128 return 'MediaTypeScheme.multiplexed'; |
| 127 case lpcm: | 129 case lpcm: |
| 128 return 'MediaTypeScheme.lpcm'; | 130 return 'MediaTypeScheme.lpcm'; |
| 129 case compressedAudio: | 131 case compressedAudio: |
| 130 return 'MediaTypeScheme.compressedAudio'; | 132 return 'MediaTypeScheme.compressedAudio'; |
| 131 case video: | 133 case video: |
| 132 return 'MediaTypeScheme.video'; | 134 return 'MediaTypeScheme.video'; |
| 135 default: |
| 136 return null; |
| 133 } | 137 } |
| 134 } | 138 } |
| 135 | 139 |
| 136 int toJson() => mojoEnumValue; | 140 int toJson() => mojoEnumValue; |
| 137 } | 141 } |
| 138 | 142 |
| 143 |
| 144 |
| 139 class LpcmSampleFormat extends bindings.MojoEnum { | 145 class LpcmSampleFormat extends bindings.MojoEnum { |
| 140 static const LpcmSampleFormat unknown = const LpcmSampleFormat._(0); | 146 static const LpcmSampleFormat unknown = const LpcmSampleFormat._(0); |
| 141 static const LpcmSampleFormat any = const LpcmSampleFormat._(1); | 147 static const LpcmSampleFormat any = const LpcmSampleFormat._(1); |
| 142 static const LpcmSampleFormat unsigned8 = const LpcmSampleFormat._(2); | 148 static const LpcmSampleFormat unsigned8 = const LpcmSampleFormat._(2); |
| 143 static const LpcmSampleFormat signed16 = const LpcmSampleFormat._(3); | 149 static const LpcmSampleFormat signed16 = const LpcmSampleFormat._(3); |
| 144 static const LpcmSampleFormat signed24In32 = const LpcmSampleFormat._(4); | 150 static const LpcmSampleFormat signed24In32 = const LpcmSampleFormat._(4); |
| 145 static const LpcmSampleFormat float = const LpcmSampleFormat._(5); | 151 static const LpcmSampleFormat float = const LpcmSampleFormat._(5); |
| 146 | 152 |
| 147 const LpcmSampleFormat._(int v) : super(v); | 153 const LpcmSampleFormat._(int v) : super(v); |
| 148 | 154 |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 case any: | 207 case any: |
| 202 return 'LpcmSampleFormat.any'; | 208 return 'LpcmSampleFormat.any'; |
| 203 case unsigned8: | 209 case unsigned8: |
| 204 return 'LpcmSampleFormat.unsigned8'; | 210 return 'LpcmSampleFormat.unsigned8'; |
| 205 case signed16: | 211 case signed16: |
| 206 return 'LpcmSampleFormat.signed16'; | 212 return 'LpcmSampleFormat.signed16'; |
| 207 case signed24In32: | 213 case signed24In32: |
| 208 return 'LpcmSampleFormat.signed24In32'; | 214 return 'LpcmSampleFormat.signed24In32'; |
| 209 case float: | 215 case float: |
| 210 return 'LpcmSampleFormat.float'; | 216 return 'LpcmSampleFormat.float'; |
| 217 default: |
| 218 return null; |
| 211 } | 219 } |
| 212 } | 220 } |
| 213 | 221 |
| 214 int toJson() => mojoEnumValue; | 222 int toJson() => mojoEnumValue; |
| 215 } | 223 } |
| 216 | 224 |
| 225 |
| 226 |
| 217 class AudioEncoding extends bindings.MojoEnum { | 227 class AudioEncoding extends bindings.MojoEnum { |
| 218 static const AudioEncoding unknown = const AudioEncoding._(0); | 228 static const AudioEncoding unknown = const AudioEncoding._(0); |
| 219 static const AudioEncoding any = const AudioEncoding._(1); | 229 static const AudioEncoding any = const AudioEncoding._(1); |
| 220 static const AudioEncoding vorbis = const AudioEncoding._(2); | 230 static const AudioEncoding vorbis = const AudioEncoding._(2); |
| 221 | 231 |
| 222 const AudioEncoding._(int v) : super(v); | 232 const AudioEncoding._(int v) : super(v); |
| 223 | 233 |
| 224 static const Map<String, AudioEncoding> valuesMap = const { | 234 static const Map<String, AudioEncoding> valuesMap = const { |
| 225 "unknown": unknown, | 235 "unknown": unknown, |
| 226 "any": any, | 236 "any": any, |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 258 } | 268 } |
| 259 | 269 |
| 260 String toString() { | 270 String toString() { |
| 261 switch(this) { | 271 switch(this) { |
| 262 case unknown: | 272 case unknown: |
| 263 return 'AudioEncoding.unknown'; | 273 return 'AudioEncoding.unknown'; |
| 264 case any: | 274 case any: |
| 265 return 'AudioEncoding.any'; | 275 return 'AudioEncoding.any'; |
| 266 case vorbis: | 276 case vorbis: |
| 267 return 'AudioEncoding.vorbis'; | 277 return 'AudioEncoding.vorbis'; |
| 278 default: |
| 279 return null; |
| 268 } | 280 } |
| 269 } | 281 } |
| 270 | 282 |
| 271 int toJson() => mojoEnumValue; | 283 int toJson() => mojoEnumValue; |
| 272 } | 284 } |
| 273 | 285 |
| 286 |
| 287 |
| 274 class VideoEncoding extends bindings.MojoEnum { | 288 class VideoEncoding extends bindings.MojoEnum { |
| 275 static const VideoEncoding unknown = const VideoEncoding._(0); | 289 static const VideoEncoding unknown = const VideoEncoding._(0); |
| 276 static const VideoEncoding any = const VideoEncoding._(1); | 290 static const VideoEncoding any = const VideoEncoding._(1); |
| 277 static const VideoEncoding theora = const VideoEncoding._(2); | 291 static const VideoEncoding theora = const VideoEncoding._(2); |
| 278 static const VideoEncoding vp8 = const VideoEncoding._(3); | 292 static const VideoEncoding vp8 = const VideoEncoding._(3); |
| 279 | 293 |
| 280 const VideoEncoding._(int v) : super(v); | 294 const VideoEncoding._(int v) : super(v); |
| 281 | 295 |
| 282 static const Map<String, VideoEncoding> valuesMap = const { | 296 static const Map<String, VideoEncoding> valuesMap = const { |
| 283 "unknown": unknown, | 297 "unknown": unknown, |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 322 String toString() { | 336 String toString() { |
| 323 switch(this) { | 337 switch(this) { |
| 324 case unknown: | 338 case unknown: |
| 325 return 'VideoEncoding.unknown'; | 339 return 'VideoEncoding.unknown'; |
| 326 case any: | 340 case any: |
| 327 return 'VideoEncoding.any'; | 341 return 'VideoEncoding.any'; |
| 328 case theora: | 342 case theora: |
| 329 return 'VideoEncoding.theora'; | 343 return 'VideoEncoding.theora'; |
| 330 case vp8: | 344 case vp8: |
| 331 return 'VideoEncoding.vp8'; | 345 return 'VideoEncoding.vp8'; |
| 346 default: |
| 347 return null; |
| 332 } | 348 } |
| 333 } | 349 } |
| 334 | 350 |
| 335 int toJson() => mojoEnumValue; | 351 int toJson() => mojoEnumValue; |
| 336 } | 352 } |
| 337 | 353 |
| 354 |
| 355 |
| 338 class VideoProfile extends bindings.MojoEnum { | 356 class VideoProfile extends bindings.MojoEnum { |
| 339 static const VideoProfile unknown = const VideoProfile._(0); | 357 static const VideoProfile unknown = const VideoProfile._(0); |
| 340 static const VideoProfile notApplicable = const VideoProfile._(1); | 358 static const VideoProfile notApplicable = const VideoProfile._(1); |
| 341 static const VideoProfile h264Baseline = const VideoProfile._(2); | 359 static const VideoProfile h264Baseline = const VideoProfile._(2); |
| 342 static const VideoProfile h264Main = const VideoProfile._(3); | 360 static const VideoProfile h264Main = const VideoProfile._(3); |
| 343 static const VideoProfile h264Extended = const VideoProfile._(4); | 361 static const VideoProfile h264Extended = const VideoProfile._(4); |
| 344 static const VideoProfile h264High = const VideoProfile._(5); | 362 static const VideoProfile h264High = const VideoProfile._(5); |
| 345 static const VideoProfile h264High10 = const VideoProfile._(6); | 363 static const VideoProfile h264High10 = const VideoProfile._(6); |
| 346 static const VideoProfile h264High422 = const VideoProfile._(7); | 364 static const VideoProfile h264High422 = const VideoProfile._(7); |
| 347 static const VideoProfile h264High444Predictive = const VideoProfile._(8); | 365 static const VideoProfile h264High444Predictive = const VideoProfile._(8); |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 449 case h264High444Predictive: | 467 case h264High444Predictive: |
| 450 return 'VideoProfile.h264High444Predictive'; | 468 return 'VideoProfile.h264High444Predictive'; |
| 451 case h264ScalableBaseline: | 469 case h264ScalableBaseline: |
| 452 return 'VideoProfile.h264ScalableBaseline'; | 470 return 'VideoProfile.h264ScalableBaseline'; |
| 453 case h264ScalableHigh: | 471 case h264ScalableHigh: |
| 454 return 'VideoProfile.h264ScalableHigh'; | 472 return 'VideoProfile.h264ScalableHigh'; |
| 455 case h264StereoHigh: | 473 case h264StereoHigh: |
| 456 return 'VideoProfile.h264StereoHigh'; | 474 return 'VideoProfile.h264StereoHigh'; |
| 457 case h264MultiviewHigh: | 475 case h264MultiviewHigh: |
| 458 return 'VideoProfile.h264MultiviewHigh'; | 476 return 'VideoProfile.h264MultiviewHigh'; |
| 477 default: |
| 478 return null; |
| 459 } | 479 } |
| 460 } | 480 } |
| 461 | 481 |
| 462 int toJson() => mojoEnumValue; | 482 int toJson() => mojoEnumValue; |
| 463 } | 483 } |
| 464 | 484 |
| 485 |
| 486 |
| 465 class PixelFormat extends bindings.MojoEnum { | 487 class PixelFormat extends bindings.MojoEnum { |
| 466 static const PixelFormat unknown = const PixelFormat._(0); | 488 static const PixelFormat unknown = const PixelFormat._(0); |
| 467 static const PixelFormat i420 = const PixelFormat._(1); | 489 static const PixelFormat i420 = const PixelFormat._(1); |
| 468 static const PixelFormat yv12 = const PixelFormat._(2); | 490 static const PixelFormat yv12 = const PixelFormat._(2); |
| 469 static const PixelFormat yv16 = const PixelFormat._(3); | 491 static const PixelFormat yv16 = const PixelFormat._(3); |
| 470 static const PixelFormat yv12A = const PixelFormat._(4); | 492 static const PixelFormat yv12A = const PixelFormat._(4); |
| 471 static const PixelFormat yv24 = const PixelFormat._(5); | 493 static const PixelFormat yv24 = const PixelFormat._(5); |
| 472 static const PixelFormat nv12 = const PixelFormat._(6); | 494 static const PixelFormat nv12 = const PixelFormat._(6); |
| 473 static const PixelFormat nv21 = const PixelFormat._(7); | 495 static const PixelFormat nv21 = const PixelFormat._(7); |
| 474 static const PixelFormat uyvy = const PixelFormat._(8); | 496 static const PixelFormat uyvy = const PixelFormat._(8); |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 597 case xrgb: | 619 case xrgb: |
| 598 return 'PixelFormat.xrgb'; | 620 return 'PixelFormat.xrgb'; |
| 599 case rgb24: | 621 case rgb24: |
| 600 return 'PixelFormat.rgb24'; | 622 return 'PixelFormat.rgb24'; |
| 601 case rgb32: | 623 case rgb32: |
| 602 return 'PixelFormat.rgb32'; | 624 return 'PixelFormat.rgb32'; |
| 603 case mjpeg: | 625 case mjpeg: |
| 604 return 'PixelFormat.mjpeg'; | 626 return 'PixelFormat.mjpeg'; |
| 605 case mt21: | 627 case mt21: |
| 606 return 'PixelFormat.mt21'; | 628 return 'PixelFormat.mt21'; |
| 629 default: |
| 630 return null; |
| 607 } | 631 } |
| 608 } | 632 } |
| 609 | 633 |
| 610 int toJson() => mojoEnumValue; | 634 int toJson() => mojoEnumValue; |
| 611 } | 635 } |
| 612 | 636 |
| 637 |
| 638 |
| 613 class ColorSpace extends bindings.MojoEnum { | 639 class ColorSpace extends bindings.MojoEnum { |
| 614 static const ColorSpace unknown = const ColorSpace._(0); | 640 static const ColorSpace unknown = const ColorSpace._(0); |
| 615 static const ColorSpace notApplicable = const ColorSpace._(1); | 641 static const ColorSpace notApplicable = const ColorSpace._(1); |
| 616 static const ColorSpace jpeg = const ColorSpace._(2); | 642 static const ColorSpace jpeg = const ColorSpace._(2); |
| 617 static const ColorSpace hdRec709 = const ColorSpace._(3); | 643 static const ColorSpace hdRec709 = const ColorSpace._(3); |
| 618 static const ColorSpace sdRec601 = const ColorSpace._(4); | 644 static const ColorSpace sdRec601 = const ColorSpace._(4); |
| 619 | 645 |
| 620 const ColorSpace._(int v) : super(v); | 646 const ColorSpace._(int v) : super(v); |
| 621 | 647 |
| 622 static const Map<String, ColorSpace> valuesMap = const { | 648 static const Map<String, ColorSpace> valuesMap = const { |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 668 case unknown: | 694 case unknown: |
| 669 return 'ColorSpace.unknown'; | 695 return 'ColorSpace.unknown'; |
| 670 case notApplicable: | 696 case notApplicable: |
| 671 return 'ColorSpace.notApplicable'; | 697 return 'ColorSpace.notApplicable'; |
| 672 case jpeg: | 698 case jpeg: |
| 673 return 'ColorSpace.jpeg'; | 699 return 'ColorSpace.jpeg'; |
| 674 case hdRec709: | 700 case hdRec709: |
| 675 return 'ColorSpace.hdRec709'; | 701 return 'ColorSpace.hdRec709'; |
| 676 case sdRec601: | 702 case sdRec601: |
| 677 return 'ColorSpace.sdRec601'; | 703 return 'ColorSpace.sdRec601'; |
| 704 default: |
| 705 return null; |
| 678 } | 706 } |
| 679 } | 707 } |
| 680 | 708 |
| 681 int toJson() => mojoEnumValue; | 709 int toJson() => mojoEnumValue; |
| 682 } | 710 } |
| 683 | 711 |
| 684 | 712 |
| 685 | 713 |
| 714 |
| 715 |
| 686 class MediaType extends bindings.Struct { | 716 class MediaType extends bindings.Struct { |
| 687 static const List<bindings.StructDataHeader> kVersions = const [ | 717 static const List<bindings.StructDataHeader> kVersions = const [ |
| 688 const bindings.StructDataHeader(32, 0) | 718 const bindings.StructDataHeader(32, 0) |
| 689 ]; | 719 ]; |
| 690 MediaTypeScheme scheme = null; | 720 MediaTypeScheme scheme = null; |
| 691 MediaTypeDetails details = null; | 721 MediaTypeDetails details = null; |
| 692 | 722 |
| 693 MediaType() : super(kVersions.last.size); | 723 MediaType() : super(kVersions.last.size); |
| 694 | 724 |
| 695 static MediaType deserialize(bindings.Message message) { | 725 static MediaType deserialize(bindings.Message message) { |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 756 | 786 |
| 757 Map toJson() { | 787 Map toJson() { |
| 758 Map map = new Map(); | 788 Map map = new Map(); |
| 759 map["scheme"] = scheme; | 789 map["scheme"] = scheme; |
| 760 map["details"] = details; | 790 map["details"] = details; |
| 761 return map; | 791 return map; |
| 762 } | 792 } |
| 763 } | 793 } |
| 764 | 794 |
| 765 | 795 |
| 796 |
| 797 |
| 766 class MediaTypeSet extends bindings.Struct { | 798 class MediaTypeSet extends bindings.Struct { |
| 767 static const List<bindings.StructDataHeader> kVersions = const [ | 799 static const List<bindings.StructDataHeader> kVersions = const [ |
| 768 const bindings.StructDataHeader(32, 0) | 800 const bindings.StructDataHeader(32, 0) |
| 769 ]; | 801 ]; |
| 770 MediaTypeScheme scheme = null; | 802 MediaTypeScheme scheme = null; |
| 771 MediaTypeSetDetails details = null; | 803 MediaTypeSetDetails details = null; |
| 772 | 804 |
| 773 MediaTypeSet() : super(kVersions.last.size); | 805 MediaTypeSet() : super(kVersions.last.size); |
| 774 | 806 |
| 775 static MediaTypeSet deserialize(bindings.Message message) { | 807 static MediaTypeSet deserialize(bindings.Message message) { |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 836 | 868 |
| 837 Map toJson() { | 869 Map toJson() { |
| 838 Map map = new Map(); | 870 Map map = new Map(); |
| 839 map["scheme"] = scheme; | 871 map["scheme"] = scheme; |
| 840 map["details"] = details; | 872 map["details"] = details; |
| 841 return map; | 873 return map; |
| 842 } | 874 } |
| 843 } | 875 } |
| 844 | 876 |
| 845 | 877 |
| 878 |
| 879 |
| 846 class LpcmMediaTypeDetails extends bindings.Struct { | 880 class LpcmMediaTypeDetails extends bindings.Struct { |
| 847 static const List<bindings.StructDataHeader> kVersions = const [ | 881 static const List<bindings.StructDataHeader> kVersions = const [ |
| 848 const bindings.StructDataHeader(24, 0) | 882 const bindings.StructDataHeader(24, 0) |
| 849 ]; | 883 ]; |
| 850 LpcmSampleFormat sampleFormat = null; | 884 LpcmSampleFormat sampleFormat = null; |
| 851 int channels = 0; | 885 int channels = 0; |
| 852 int framesPerSecond = 0; | 886 int framesPerSecond = 0; |
| 853 | 887 |
| 854 LpcmMediaTypeDetails() : super(kVersions.last.size); | 888 LpcmMediaTypeDetails() : super(kVersions.last.size); |
| 855 | 889 |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 925 Map toJson() { | 959 Map toJson() { |
| 926 Map map = new Map(); | 960 Map map = new Map(); |
| 927 map["sampleFormat"] = sampleFormat; | 961 map["sampleFormat"] = sampleFormat; |
| 928 map["channels"] = channels; | 962 map["channels"] = channels; |
| 929 map["framesPerSecond"] = framesPerSecond; | 963 map["framesPerSecond"] = framesPerSecond; |
| 930 return map; | 964 return map; |
| 931 } | 965 } |
| 932 } | 966 } |
| 933 | 967 |
| 934 | 968 |
| 969 |
| 970 |
| 935 class LpcmMediaTypeSetDetails extends bindings.Struct { | 971 class LpcmMediaTypeSetDetails extends bindings.Struct { |
| 936 static const List<bindings.StructDataHeader> kVersions = const [ | 972 static const List<bindings.StructDataHeader> kVersions = const [ |
| 937 const bindings.StructDataHeader(32, 0) | 973 const bindings.StructDataHeader(32, 0) |
| 938 ]; | 974 ]; |
| 939 LpcmSampleFormat sampleFormat = null; | 975 LpcmSampleFormat sampleFormat = null; |
| 940 int minChannels = 0; | 976 int minChannels = 0; |
| 941 int maxChannels = 0; | 977 int maxChannels = 0; |
| 942 int minFramesPerSecond = 0; | 978 int minFramesPerSecond = 0; |
| 943 int maxFramesPerSecond = 0; | 979 int maxFramesPerSecond = 0; |
| 944 | 980 |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1032 map["sampleFormat"] = sampleFormat; | 1068 map["sampleFormat"] = sampleFormat; |
| 1033 map["minChannels"] = minChannels; | 1069 map["minChannels"] = minChannels; |
| 1034 map["maxChannels"] = maxChannels; | 1070 map["maxChannels"] = maxChannels; |
| 1035 map["minFramesPerSecond"] = minFramesPerSecond; | 1071 map["minFramesPerSecond"] = minFramesPerSecond; |
| 1036 map["maxFramesPerSecond"] = maxFramesPerSecond; | 1072 map["maxFramesPerSecond"] = maxFramesPerSecond; |
| 1037 return map; | 1073 return map; |
| 1038 } | 1074 } |
| 1039 } | 1075 } |
| 1040 | 1076 |
| 1041 | 1077 |
| 1078 |
| 1079 |
| 1042 class MultiplexedMediaTypeDetails extends bindings.Struct { | 1080 class MultiplexedMediaTypeDetails extends bindings.Struct { |
| 1043 static const List<bindings.StructDataHeader> kVersions = const [ | 1081 static const List<bindings.StructDataHeader> kVersions = const [ |
| 1044 const bindings.StructDataHeader(24, 0) | 1082 const bindings.StructDataHeader(24, 0) |
| 1045 ]; | 1083 ]; |
| 1046 MediaType multiplexType = null; | 1084 MediaType multiplexType = null; |
| 1047 List<MediaType> substreamTypes = null; | 1085 List<MediaType> substreamTypes = null; |
| 1048 | 1086 |
| 1049 MultiplexedMediaTypeDetails() : super(kVersions.last.size); | 1087 MultiplexedMediaTypeDetails() : super(kVersions.last.size); |
| 1050 | 1088 |
| 1051 static MultiplexedMediaTypeDetails deserialize(bindings.Message message) { | 1089 static MultiplexedMediaTypeDetails deserialize(bindings.Message message) { |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1126 | 1164 |
| 1127 Map toJson() { | 1165 Map toJson() { |
| 1128 Map map = new Map(); | 1166 Map map = new Map(); |
| 1129 map["multiplexType"] = multiplexType; | 1167 map["multiplexType"] = multiplexType; |
| 1130 map["substreamTypes"] = substreamTypes; | 1168 map["substreamTypes"] = substreamTypes; |
| 1131 return map; | 1169 return map; |
| 1132 } | 1170 } |
| 1133 } | 1171 } |
| 1134 | 1172 |
| 1135 | 1173 |
| 1174 |
| 1175 |
| 1136 class MultiplexedMediaTypeSetDetails extends bindings.Struct { | 1176 class MultiplexedMediaTypeSetDetails extends bindings.Struct { |
| 1137 static const List<bindings.StructDataHeader> kVersions = const [ | 1177 static const List<bindings.StructDataHeader> kVersions = const [ |
| 1138 const bindings.StructDataHeader(24, 0) | 1178 const bindings.StructDataHeader(24, 0) |
| 1139 ]; | 1179 ]; |
| 1140 MediaTypeSet multiplexTypeSet = null; | 1180 MediaTypeSet multiplexTypeSet = null; |
| 1141 List<MediaTypeSet> substreamTypeSets = null; | 1181 List<MediaTypeSet> substreamTypeSets = null; |
| 1142 | 1182 |
| 1143 MultiplexedMediaTypeSetDetails() : super(kVersions.last.size); | 1183 MultiplexedMediaTypeSetDetails() : super(kVersions.last.size); |
| 1144 | 1184 |
| 1145 static MultiplexedMediaTypeSetDetails deserialize(bindings.Message message) { | 1185 static MultiplexedMediaTypeSetDetails deserialize(bindings.Message message) { |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1220 | 1260 |
| 1221 Map toJson() { | 1261 Map toJson() { |
| 1222 Map map = new Map(); | 1262 Map map = new Map(); |
| 1223 map["multiplexTypeSet"] = multiplexTypeSet; | 1263 map["multiplexTypeSet"] = multiplexTypeSet; |
| 1224 map["substreamTypeSets"] = substreamTypeSets; | 1264 map["substreamTypeSets"] = substreamTypeSets; |
| 1225 return map; | 1265 return map; |
| 1226 } | 1266 } |
| 1227 } | 1267 } |
| 1228 | 1268 |
| 1229 | 1269 |
| 1270 |
| 1271 |
| 1230 class CompressedAudioMediaTypeDetails extends bindings.Struct { | 1272 class CompressedAudioMediaTypeDetails extends bindings.Struct { |
| 1231 static const List<bindings.StructDataHeader> kVersions = const [ | 1273 static const List<bindings.StructDataHeader> kVersions = const [ |
| 1232 const bindings.StructDataHeader(32, 0) | 1274 const bindings.StructDataHeader(32, 0) |
| 1233 ]; | 1275 ]; |
| 1234 AudioEncoding encoding = null; | 1276 AudioEncoding encoding = null; |
| 1235 LpcmSampleFormat sampleFormat = null; | 1277 LpcmSampleFormat sampleFormat = null; |
| 1236 int channels = 0; | 1278 int channels = 0; |
| 1237 int framesPerSecond = 0; | 1279 int framesPerSecond = 0; |
| 1238 String extraDataBase64 = null; | 1280 String extraDataBase64 = null; |
| 1239 | 1281 |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1331 map["encoding"] = encoding; | 1373 map["encoding"] = encoding; |
| 1332 map["sampleFormat"] = sampleFormat; | 1374 map["sampleFormat"] = sampleFormat; |
| 1333 map["channels"] = channels; | 1375 map["channels"] = channels; |
| 1334 map["framesPerSecond"] = framesPerSecond; | 1376 map["framesPerSecond"] = framesPerSecond; |
| 1335 map["extraDataBase64"] = extraDataBase64; | 1377 map["extraDataBase64"] = extraDataBase64; |
| 1336 return map; | 1378 return map; |
| 1337 } | 1379 } |
| 1338 } | 1380 } |
| 1339 | 1381 |
| 1340 | 1382 |
| 1383 |
| 1384 |
| 1341 class CompressedAudioMediaTypeSetDetails extends bindings.Struct { | 1385 class CompressedAudioMediaTypeSetDetails extends bindings.Struct { |
| 1342 static const List<bindings.StructDataHeader> kVersions = const [ | 1386 static const List<bindings.StructDataHeader> kVersions = const [ |
| 1343 const bindings.StructDataHeader(32, 0) | 1387 const bindings.StructDataHeader(32, 0) |
| 1344 ]; | 1388 ]; |
| 1345 AudioEncoding encoding = null; | 1389 AudioEncoding encoding = null; |
| 1346 LpcmSampleFormat sampleFormat = null; | 1390 LpcmSampleFormat sampleFormat = null; |
| 1347 int minChannels = 0; | 1391 int minChannels = 0; |
| 1348 int maxChannels = 0; | 1392 int maxChannels = 0; |
| 1349 int minFramesPerSecond = 0; | 1393 int minFramesPerSecond = 0; |
| 1350 int maxFramesPerSecond = 0; | 1394 int maxFramesPerSecond = 0; |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1451 map["sampleFormat"] = sampleFormat; | 1495 map["sampleFormat"] = sampleFormat; |
| 1452 map["minChannels"] = minChannels; | 1496 map["minChannels"] = minChannels; |
| 1453 map["maxChannels"] = maxChannels; | 1497 map["maxChannels"] = maxChannels; |
| 1454 map["minFramesPerSecond"] = minFramesPerSecond; | 1498 map["minFramesPerSecond"] = minFramesPerSecond; |
| 1455 map["maxFramesPerSecond"] = maxFramesPerSecond; | 1499 map["maxFramesPerSecond"] = maxFramesPerSecond; |
| 1456 return map; | 1500 return map; |
| 1457 } | 1501 } |
| 1458 } | 1502 } |
| 1459 | 1503 |
| 1460 | 1504 |
| 1505 |
| 1506 |
| 1461 class VideoMediaTypeDetails extends bindings.Struct { | 1507 class VideoMediaTypeDetails extends bindings.Struct { |
| 1462 static const List<bindings.StructDataHeader> kVersions = const [ | 1508 static const List<bindings.StructDataHeader> kVersions = const [ |
| 1463 const bindings.StructDataHeader(48, 0) | 1509 const bindings.StructDataHeader(48, 0) |
| 1464 ]; | 1510 ]; |
| 1465 VideoEncoding encoding = null; | 1511 VideoEncoding encoding = null; |
| 1466 VideoProfile profile = null; | 1512 VideoProfile profile = null; |
| 1467 PixelFormat pixelFormat = null; | 1513 PixelFormat pixelFormat = null; |
| 1468 ColorSpace colorSpace = null; | 1514 ColorSpace colorSpace = null; |
| 1469 int width = 0; | 1515 int width = 0; |
| 1470 int height = 0; | 1516 int height = 0; |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1606 map["width"] = width; | 1652 map["width"] = width; |
| 1607 map["height"] = height; | 1653 map["height"] = height; |
| 1608 map["codedWidth"] = codedWidth; | 1654 map["codedWidth"] = codedWidth; |
| 1609 map["codedHeight"] = codedHeight; | 1655 map["codedHeight"] = codedHeight; |
| 1610 map["extraDataBase64"] = extraDataBase64; | 1656 map["extraDataBase64"] = extraDataBase64; |
| 1611 return map; | 1657 return map; |
| 1612 } | 1658 } |
| 1613 } | 1659 } |
| 1614 | 1660 |
| 1615 | 1661 |
| 1662 |
| 1663 |
| 1616 class VideoMediaTypeSetDetails extends bindings.Struct { | 1664 class VideoMediaTypeSetDetails extends bindings.Struct { |
| 1617 static const List<bindings.StructDataHeader> kVersions = const [ | 1665 static const List<bindings.StructDataHeader> kVersions = const [ |
| 1618 const bindings.StructDataHeader(32, 0) | 1666 const bindings.StructDataHeader(32, 0) |
| 1619 ]; | 1667 ]; |
| 1620 VideoEncoding encoding = null; | 1668 VideoEncoding encoding = null; |
| 1621 int minWidth = 0; | 1669 int minWidth = 0; |
| 1622 int maxWidth = 0; | 1670 int maxWidth = 0; |
| 1623 int minHeight = 0; | 1671 int minHeight = 0; |
| 1624 int maxHeight = 0; | 1672 int maxHeight = 0; |
| 1625 | 1673 |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1714 map["minWidth"] = minWidth; | 1762 map["minWidth"] = minWidth; |
| 1715 map["maxWidth"] = maxWidth; | 1763 map["maxWidth"] = maxWidth; |
| 1716 map["minHeight"] = minHeight; | 1764 map["minHeight"] = minHeight; |
| 1717 map["maxHeight"] = maxHeight; | 1765 map["maxHeight"] = maxHeight; |
| 1718 return map; | 1766 return map; |
| 1719 } | 1767 } |
| 1720 } | 1768 } |
| 1721 | 1769 |
| 1722 | 1770 |
| 1723 | 1771 |
| 1772 |
| 1773 |
| 1724 enum MediaTypeDetailsTag { | 1774 enum MediaTypeDetailsTag { |
| 1725 multiplexed, | 1775 multiplexed, |
| 1726 lpcm, | 1776 lpcm, |
| 1727 compressedAudio, | 1777 compressedAudio, |
| 1728 video, | 1778 video, |
| 1729 unknown | 1779 unknown |
| 1730 } | 1780 } |
| 1731 | 1781 |
| 1732 class MediaTypeDetails extends bindings.Union { | 1782 class MediaTypeDetails extends bindings.Union { |
| 1733 static final _tag_to_int = const { | 1783 static final _tag_to_int = const { |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1873 break; | 1923 break; |
| 1874 default: | 1924 default: |
| 1875 result += "unknown"; | 1925 result += "unknown"; |
| 1876 } | 1926 } |
| 1877 result += ": $_data)"; | 1927 result += ": $_data)"; |
| 1878 return result; | 1928 return result; |
| 1879 } | 1929 } |
| 1880 } | 1930 } |
| 1881 | 1931 |
| 1882 | 1932 |
| 1933 |
| 1934 |
| 1883 enum MediaTypeSetDetailsTag { | 1935 enum MediaTypeSetDetailsTag { |
| 1884 multiplexed, | 1936 multiplexed, |
| 1885 lpcm, | 1937 lpcm, |
| 1886 compressedAudio, | 1938 compressedAudio, |
| 1887 video, | 1939 video, |
| 1888 unknown | 1940 unknown |
| 1889 } | 1941 } |
| 1890 | 1942 |
| 1891 class MediaTypeSetDetails extends bindings.Union { | 1943 class MediaTypeSetDetails extends bindings.Union { |
| 1892 static final _tag_to_int = const { | 1944 static final _tag_to_int = const { |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2031 result += "video"; | 2083 result += "video"; |
| 2032 break; | 2084 break; |
| 2033 default: | 2085 default: |
| 2034 result += "unknown"; | 2086 result += "unknown"; |
| 2035 } | 2087 } |
| 2036 result += ": $_data)"; | 2088 result += ": $_data)"; |
| 2037 return result; | 2089 return result; |
| 2038 } | 2090 } |
| 2039 } | 2091 } |
| 2040 | 2092 |
| 2093 |
| 2094 |
| 2095 |
| 2096 |
| OLD | NEW |