Skip to content

Commit

Permalink
Update generated code (#1823)
Browse files Browse the repository at this point in the history
* update generated code

* Update src/Service/Comprehend/CHANGELOG.md

---------

Co-authored-by: Jérémy Derussé <[email protected]>
  • Loading branch information
async-aws-bot and jderusse authored Jan 3, 2025
1 parent 951cb96 commit df5abb5
Show file tree
Hide file tree
Showing 6 changed files with 57 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

- AWS api-change: This release adds support for inserting timecode tracks into MP4 container outputs.
- AWS api-change: use regionalized endpoints
- AWS api-change: This release adds support for the AVC3 codec and fixes an alignment issue with Japanese vertical captions.

## 1.4.1

Expand Down
24 changes: 24 additions & 0 deletions src/Enum/H264WriteMp4PackagingType.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?php

namespace AsyncAws\MediaConvert\Enum;

/**
* Specify how SPS and PPS NAL units are written in your output MP4 container, according to ISO/IEC 14496-15. If the
* location of these parameters doesn't matter in your workflow: Keep the default value, AVC1. MediaConvert writes SPS
* and PPS NAL units in the sample description ('stsd') box (but not into samples directly). To write SPS and PPS NAL
* units directly into samples (but not in the 'stsd' box): Choose AVC3. When you do, note that your output might not
* play properly with some downstream systems or players.
*/
final class H264WriteMp4PackagingType
{
public const AVC1 = 'AVC1';
public const AVC3 = 'AVC3';

public static function exists(string $value): bool
{
return isset([
self::AVC1 => true,
self::AVC3 => true,
][$value]);
}
}
1 change: 1 addition & 0 deletions src/Result/CreateJobResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -1069,6 +1069,7 @@ private function populateResultH264Settings(array $json): H264Settings
'Telecine' => isset($json['telecine']) ? (string) $json['telecine'] : null,
'TemporalAdaptiveQuantization' => isset($json['temporalAdaptiveQuantization']) ? (string) $json['temporalAdaptiveQuantization'] : null,
'UnregisteredSeiTimecode' => isset($json['unregisteredSeiTimecode']) ? (string) $json['unregisteredSeiTimecode'] : null,
'WriteMp4PackagingType' => isset($json['writeMp4PackagingType']) ? (string) $json['writeMp4PackagingType'] : null,
]);
}

Expand Down
1 change: 1 addition & 0 deletions src/Result/GetJobResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -1069,6 +1069,7 @@ private function populateResultH264Settings(array $json): H264Settings
'Telecine' => isset($json['telecine']) ? (string) $json['telecine'] : null,
'TemporalAdaptiveQuantization' => isset($json['temporalAdaptiveQuantization']) ? (string) $json['temporalAdaptiveQuantization'] : null,
'UnregisteredSeiTimecode' => isset($json['unregisteredSeiTimecode']) ? (string) $json['unregisteredSeiTimecode'] : null,
'WriteMp4PackagingType' => isset($json['writeMp4PackagingType']) ? (string) $json['writeMp4PackagingType'] : null,
]);
}

Expand Down
1 change: 1 addition & 0 deletions src/Result/ListJobsResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -1136,6 +1136,7 @@ private function populateResultH264Settings(array $json): H264Settings
'Telecine' => isset($json['telecine']) ? (string) $json['telecine'] : null,
'TemporalAdaptiveQuantization' => isset($json['temporalAdaptiveQuantization']) ? (string) $json['temporalAdaptiveQuantization'] : null,
'UnregisteredSeiTimecode' => isset($json['unregisteredSeiTimecode']) ? (string) $json['unregisteredSeiTimecode'] : null,
'WriteMp4PackagingType' => isset($json['writeMp4PackagingType']) ? (string) $json['writeMp4PackagingType'] : null,
]);
}

Expand Down
29 changes: 29 additions & 0 deletions src/ValueObject/H264Settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
use AsyncAws\MediaConvert\Enum\H264Telecine;
use AsyncAws\MediaConvert\Enum\H264TemporalAdaptiveQuantization;
use AsyncAws\MediaConvert\Enum\H264UnregisteredSeiTimecode;
use AsyncAws\MediaConvert\Enum\H264WriteMp4PackagingType;

/**
* Required when you set Codec to the value H_264.
Expand Down Expand Up @@ -494,6 +495,17 @@ final class H264Settings
*/
private $unregisteredSeiTimecode;

/**
* Specify how SPS and PPS NAL units are written in your output MP4 container, according to ISO/IEC 14496-15. If the
* location of these parameters doesn't matter in your workflow: Keep the default value, AVC1. MediaConvert writes SPS
* and PPS NAL units in the sample description ('stsd') box (but not into samples directly). To write SPS and PPS NAL
* units directly into samples (but not in the 'stsd' box): Choose AVC3. When you do, note that your output might not
* play properly with some downstream systems or players.
*
* @var H264WriteMp4PackagingType::*|null
*/
private $writeMp4PackagingType;

/**
* @param array{
* AdaptiveQuantization?: null|H264AdaptiveQuantization::*,
Expand Down Expand Up @@ -540,6 +552,7 @@ final class H264Settings
* Telecine?: null|H264Telecine::*,
* TemporalAdaptiveQuantization?: null|H264TemporalAdaptiveQuantization::*,
* UnregisteredSeiTimecode?: null|H264UnregisteredSeiTimecode::*,
* WriteMp4PackagingType?: null|H264WriteMp4PackagingType::*,
* } $input
*/
public function __construct(array $input)
Expand Down Expand Up @@ -588,6 +601,7 @@ public function __construct(array $input)
$this->telecine = $input['Telecine'] ?? null;
$this->temporalAdaptiveQuantization = $input['TemporalAdaptiveQuantization'] ?? null;
$this->unregisteredSeiTimecode = $input['UnregisteredSeiTimecode'] ?? null;
$this->writeMp4PackagingType = $input['WriteMp4PackagingType'] ?? null;
}

/**
Expand Down Expand Up @@ -636,6 +650,7 @@ public function __construct(array $input)
* Telecine?: null|H264Telecine::*,
* TemporalAdaptiveQuantization?: null|H264TemporalAdaptiveQuantization::*,
* UnregisteredSeiTimecode?: null|H264UnregisteredSeiTimecode::*,
* WriteMp4PackagingType?: null|H264WriteMp4PackagingType::*,
* }|H264Settings $input
*/
public static function create($input): self
Expand Down Expand Up @@ -941,6 +956,14 @@ public function getUnregisteredSeiTimecode(): ?string
return $this->unregisteredSeiTimecode;
}

/**
* @return H264WriteMp4PackagingType::*|null
*/
public function getWriteMp4PackagingType(): ?string
{
return $this->writeMp4PackagingType;
}

/**
* @internal
*/
Expand Down Expand Up @@ -1157,6 +1180,12 @@ public function requestBody(): array
}
$payload['unregisteredSeiTimecode'] = $v;
}
if (null !== $v = $this->writeMp4PackagingType) {
if (!H264WriteMp4PackagingType::exists($v)) {
throw new InvalidArgument(\sprintf('Invalid parameter "writeMp4PackagingType" for "%s". The value "%s" is not a valid "H264WriteMp4PackagingType".', __CLASS__, $v));
}
$payload['writeMp4PackagingType'] = $v;
}

return $payload;
}
Expand Down

0 comments on commit df5abb5

Please sign in to comment.