5
5
use AsyncAws \Core \Response ;
6
6
use AsyncAws \Core \Result ;
7
7
use AsyncAws \MediaConvert \Enum \AudioChannelTag ;
8
+ use AsyncAws \MediaConvert \Enum \FrameMetricType ;
8
9
use AsyncAws \MediaConvert \Enum \HlsAdMarkers ;
9
10
use AsyncAws \MediaConvert \Enum \TeletextPageType ;
10
11
use AsyncAws \MediaConvert \ValueObject \AacSettings ;
@@ -413,6 +414,7 @@ private function populateResultAv1Settings(array $json): Av1Settings
413
414
'GopSize ' => isset ($ json ['gopSize ' ]) ? (float ) $ json ['gopSize ' ] : null ,
414
415
'MaxBitrate ' => isset ($ json ['maxBitrate ' ]) ? (int ) $ json ['maxBitrate ' ] : null ,
415
416
'NumberBFramesBetweenReferenceFrames ' => isset ($ json ['numberBFramesBetweenReferenceFrames ' ]) ? (int ) $ json ['numberBFramesBetweenReferenceFrames ' ] : null ,
417
+ 'PerFrameMetrics ' => !isset ($ json ['perFrameMetrics ' ]) ? null : $ this ->populateResult__listOfFrameMetricType ($ json ['perFrameMetrics ' ]),
416
418
'QvbrSettings ' => empty ($ json ['qvbrSettings ' ]) ? null : $ this ->populateResultAv1QvbrSettings ($ json ['qvbrSettings ' ]),
417
419
'RateControlMode ' => isset ($ json ['rateControlMode ' ]) ? (string ) $ json ['rateControlMode ' ] : null ,
418
420
'Slices ' => isset ($ json ['slices ' ]) ? (int ) $ json ['slices ' ] : null ,
@@ -437,6 +439,7 @@ private function populateResultAvcIntraSettings(array $json): AvcIntraSettings
437
439
'FramerateDenominator ' => isset ($ json ['framerateDenominator ' ]) ? (int ) $ json ['framerateDenominator ' ] : null ,
438
440
'FramerateNumerator ' => isset ($ json ['framerateNumerator ' ]) ? (int ) $ json ['framerateNumerator ' ] : null ,
439
441
'InterlaceMode ' => isset ($ json ['interlaceMode ' ]) ? (string ) $ json ['interlaceMode ' ] : null ,
442
+ 'PerFrameMetrics ' => !isset ($ json ['perFrameMetrics ' ]) ? null : $ this ->populateResult__listOfFrameMetricType ($ json ['perFrameMetrics ' ]),
440
443
'ScanTypeConversionMode ' => isset ($ json ['scanTypeConversionMode ' ]) ? (string ) $ json ['scanTypeConversionMode ' ] : null ,
441
444
'SlowPal ' => isset ($ json ['slowPal ' ]) ? (string ) $ json ['slowPal ' ] : null ,
442
445
'Telecine ' => isset ($ json ['telecine ' ]) ? (string ) $ json ['telecine ' ] : null ,
@@ -1078,6 +1081,7 @@ private function populateResultH264Settings(array $json): H264Settings
1078
1081
'ParControl ' => isset ($ json ['parControl ' ]) ? (string ) $ json ['parControl ' ] : null ,
1079
1082
'ParDenominator ' => isset ($ json ['parDenominator ' ]) ? (int ) $ json ['parDenominator ' ] : null ,
1080
1083
'ParNumerator ' => isset ($ json ['parNumerator ' ]) ? (int ) $ json ['parNumerator ' ] : null ,
1084
+ 'PerFrameMetrics ' => !isset ($ json ['perFrameMetrics ' ]) ? null : $ this ->populateResult__listOfFrameMetricType ($ json ['perFrameMetrics ' ]),
1081
1085
'QualityTuningLevel ' => isset ($ json ['qualityTuningLevel ' ]) ? (string ) $ json ['qualityTuningLevel ' ] : null ,
1082
1086
'QvbrSettings ' => empty ($ json ['qvbrSettings ' ]) ? null : $ this ->populateResultH264QvbrSettings ($ json ['qvbrSettings ' ]),
1083
1087
'RateControlMode ' => isset ($ json ['rateControlMode ' ]) ? (string ) $ json ['rateControlMode ' ] : null ,
@@ -1138,6 +1142,7 @@ private function populateResultH265Settings(array $json): H265Settings
1138
1142
'ParControl ' => isset ($ json ['parControl ' ]) ? (string ) $ json ['parControl ' ] : null ,
1139
1143
'ParDenominator ' => isset ($ json ['parDenominator ' ]) ? (int ) $ json ['parDenominator ' ] : null ,
1140
1144
'ParNumerator ' => isset ($ json ['parNumerator ' ]) ? (int ) $ json ['parNumerator ' ] : null ,
1145
+ 'PerFrameMetrics ' => !isset ($ json ['perFrameMetrics ' ]) ? null : $ this ->populateResult__listOfFrameMetricType ($ json ['perFrameMetrics ' ]),
1141
1146
'QualityTuningLevel ' => isset ($ json ['qualityTuningLevel ' ]) ? (string ) $ json ['qualityTuningLevel ' ] : null ,
1142
1147
'QvbrSettings ' => empty ($ json ['qvbrSettings ' ]) ? null : $ this ->populateResultH265QvbrSettings ($ json ['qvbrSettings ' ]),
1143
1148
'RateControlMode ' => isset ($ json ['rateControlMode ' ]) ? (string ) $ json ['rateControlMode ' ] : null ,
@@ -1692,6 +1697,7 @@ private function populateResultMpeg2Settings(array $json): Mpeg2Settings
1692
1697
'ParControl ' => isset ($ json ['parControl ' ]) ? (string ) $ json ['parControl ' ] : null ,
1693
1698
'ParDenominator ' => isset ($ json ['parDenominator ' ]) ? (int ) $ json ['parDenominator ' ] : null ,
1694
1699
'ParNumerator ' => isset ($ json ['parNumerator ' ]) ? (int ) $ json ['parNumerator ' ] : null ,
1700
+ 'PerFrameMetrics ' => !isset ($ json ['perFrameMetrics ' ]) ? null : $ this ->populateResult__listOfFrameMetricType ($ json ['perFrameMetrics ' ]),
1695
1701
'QualityTuningLevel ' => isset ($ json ['qualityTuningLevel ' ]) ? (string ) $ json ['qualityTuningLevel ' ] : null ,
1696
1702
'RateControlMode ' => isset ($ json ['rateControlMode ' ]) ? (string ) $ json ['rateControlMode ' ] : null ,
1697
1703
'ScanTypeConversionMode ' => isset ($ json ['scanTypeConversionMode ' ]) ? (string ) $ json ['scanTypeConversionMode ' ] : null ,
@@ -1888,6 +1894,7 @@ private function populateResultOutputGroupSettings(array $json): OutputGroupSett
1888
1894
'FileGroupSettings ' => empty ($ json ['fileGroupSettings ' ]) ? null : $ this ->populateResultFileGroupSettings ($ json ['fileGroupSettings ' ]),
1889
1895
'HlsGroupSettings ' => empty ($ json ['hlsGroupSettings ' ]) ? null : $ this ->populateResultHlsGroupSettings ($ json ['hlsGroupSettings ' ]),
1890
1896
'MsSmoothGroupSettings ' => empty ($ json ['msSmoothGroupSettings ' ]) ? null : $ this ->populateResultMsSmoothGroupSettings ($ json ['msSmoothGroupSettings ' ]),
1897
+ 'PerFrameMetrics ' => !isset ($ json ['perFrameMetrics ' ]) ? null : $ this ->populateResult__listOfFrameMetricType ($ json ['perFrameMetrics ' ]),
1891
1898
'Type ' => isset ($ json ['type ' ]) ? (string ) $ json ['type ' ] : null ,
1892
1899
]);
1893
1900
}
@@ -1919,6 +1926,7 @@ private function populateResultProresSettings(array $json): ProresSettings
1919
1926
'ParControl ' => isset ($ json ['parControl ' ]) ? (string ) $ json ['parControl ' ] : null ,
1920
1927
'ParDenominator ' => isset ($ json ['parDenominator ' ]) ? (int ) $ json ['parDenominator ' ] : null ,
1921
1928
'ParNumerator ' => isset ($ json ['parNumerator ' ]) ? (int ) $ json ['parNumerator ' ] : null ,
1929
+ 'PerFrameMetrics ' => !isset ($ json ['perFrameMetrics ' ]) ? null : $ this ->populateResult__listOfFrameMetricType ($ json ['perFrameMetrics ' ]),
1922
1930
'ScanTypeConversionMode ' => isset ($ json ['scanTypeConversionMode ' ]) ? (string ) $ json ['scanTypeConversionMode ' ] : null ,
1923
1931
'SlowPal ' => isset ($ json ['slowPal ' ]) ? (string ) $ json ['slowPal ' ] : null ,
1924
1932
'Telecine ' => isset ($ json ['telecine ' ]) ? (string ) $ json ['telecine ' ] : null ,
@@ -2394,6 +2402,7 @@ private function populateResultXavcSettings(array $json): XavcSettings
2394
2402
'FramerateConversionAlgorithm ' => isset ($ json ['framerateConversionAlgorithm ' ]) ? (string ) $ json ['framerateConversionAlgorithm ' ] : null ,
2395
2403
'FramerateDenominator ' => isset ($ json ['framerateDenominator ' ]) ? (int ) $ json ['framerateDenominator ' ] : null ,
2396
2404
'FramerateNumerator ' => isset ($ json ['framerateNumerator ' ]) ? (int ) $ json ['framerateNumerator ' ] : null ,
2405
+ 'PerFrameMetrics ' => !isset ($ json ['perFrameMetrics ' ]) ? null : $ this ->populateResult__listOfFrameMetricType ($ json ['perFrameMetrics ' ]),
2397
2406
'Profile ' => isset ($ json ['profile ' ]) ? (string ) $ json ['profile ' ] : null ,
2398
2407
'SlowPal ' => isset ($ json ['slowPal ' ]) ? (string ) $ json ['slowPal ' ] : null ,
2399
2408
'Softness ' => isset ($ json ['softness ' ]) ? (int ) $ json ['softness ' ] : null ,
@@ -2527,6 +2536,22 @@ private function populateResult__listOfForceIncludeRenditionSize(array $json): a
2527
2536
return $ items ;
2528
2537
}
2529
2538
2539
+ /**
2540
+ * @return list<FrameMetricType::*>
2541
+ */
2542
+ private function populateResult__listOfFrameMetricType (array $ json ): array
2543
+ {
2544
+ $ items = [];
2545
+ foreach ($ json as $ item ) {
2546
+ $ a = isset ($ item ) ? (string ) $ item : null ;
2547
+ if (null !== $ a ) {
2548
+ $ items [] = $ a ;
2549
+ }
2550
+ }
2551
+
2552
+ return $ items ;
2553
+ }
2554
+
2530
2555
/**
2531
2556
* @return list<HlsAdMarkers::*>
2532
2557
*/
0 commit comments