Skip to content

Commit

Permalink
feat(client-medialive): H265 outputs now support disabling the debloc…
Browse files Browse the repository at this point in the history
…king filter.
  • Loading branch information
awstools committed Dec 9, 2024
1 parent bdfa868 commit 4adf1d4
Show file tree
Hide file tree
Showing 12 changed files with 82 additions and 16 deletions.
2 changes: 2 additions & 0 deletions clients/client-medialive/src/commands/CreateChannelCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -967,6 +967,7 @@ export interface CreateChannelCommandOutput extends CreateChannelResponse, __Met
* TileWidth: Number("int"),
* TreeblockSize: "AUTO" || "TREE_SIZE_32X32",
* MinQp: Number("int"),
* Deblocking: "DISABLED" || "ENABLED",
* },
* Mpeg2Settings: { // Mpeg2Settings
* AdaptiveQuantization: "AUTO" || "HIGH" || "LOW" || "MEDIUM" || "OFF",
Expand Down Expand Up @@ -2155,6 +2156,7 @@ export interface CreateChannelCommandOutput extends CreateChannelResponse, __Met
* // TileWidth: Number("int"),
* // TreeblockSize: "AUTO" || "TREE_SIZE_32X32",
* // MinQp: Number("int"),
* // Deblocking: "DISABLED" || "ENABLED",
* // },
* // Mpeg2Settings: { // Mpeg2Settings
* // AdaptiveQuantization: "AUTO" || "HIGH" || "LOW" || "MEDIUM" || "OFF",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -978,6 +978,7 @@ export interface DeleteChannelCommandOutput extends DeleteChannelResponse, __Met
* // TileWidth: Number("int"),
* // TreeblockSize: "AUTO" || "TREE_SIZE_32X32",
* // MinQp: Number("int"),
* // Deblocking: "DISABLED" || "ENABLED",
* // },
* // Mpeg2Settings: { // Mpeg2Settings
* // AdaptiveQuantization: "AUTO" || "HIGH" || "LOW" || "MEDIUM" || "OFF",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -978,6 +978,7 @@ export interface DescribeChannelCommandOutput extends DescribeChannelResponse, _
* // TileWidth: Number("int"),
* // TreeblockSize: "AUTO" || "TREE_SIZE_32X32",
* // MinQp: Number("int"),
* // Deblocking: "DISABLED" || "ENABLED",
* // },
* // Mpeg2Settings: { // Mpeg2Settings
* // AdaptiveQuantization: "AUTO" || "HIGH" || "LOW" || "MEDIUM" || "OFF",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -981,6 +981,7 @@ export interface RestartChannelPipelinesCommandOutput extends RestartChannelPipe
* // TileWidth: Number("int"),
* // TreeblockSize: "AUTO" || "TREE_SIZE_32X32",
* // MinQp: Number("int"),
* // Deblocking: "DISABLED" || "ENABLED",
* // },
* // Mpeg2Settings: { // Mpeg2Settings
* // AdaptiveQuantization: "AUTO" || "HIGH" || "LOW" || "MEDIUM" || "OFF",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -978,6 +978,7 @@ export interface StartChannelCommandOutput extends StartChannelResponse, __Metad
* // TileWidth: Number("int"),
* // TreeblockSize: "AUTO" || "TREE_SIZE_32X32",
* // MinQp: Number("int"),
* // Deblocking: "DISABLED" || "ENABLED",
* // },
* // Mpeg2Settings: { // Mpeg2Settings
* // AdaptiveQuantization: "AUTO" || "HIGH" || "LOW" || "MEDIUM" || "OFF",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -978,6 +978,7 @@ export interface StopChannelCommandOutput extends StopChannelResponse, __Metadat
* // TileWidth: Number("int"),
* // TreeblockSize: "AUTO" || "TREE_SIZE_32X32",
* // MinQp: Number("int"),
* // Deblocking: "DISABLED" || "ENABLED",
* // },
* // Mpeg2Settings: { // Mpeg2Settings
* // AdaptiveQuantization: "AUTO" || "HIGH" || "LOW" || "MEDIUM" || "OFF",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1009,6 +1009,7 @@ export interface UpdateChannelClassCommandOutput extends UpdateChannelClassRespo
* // TileWidth: Number("int"),
* // TreeblockSize: "AUTO" || "TREE_SIZE_32X32",
* // MinQp: Number("int"),
* // Deblocking: "DISABLED" || "ENABLED",
* // },
* // Mpeg2Settings: { // Mpeg2Settings
* // AdaptiveQuantization: "AUTO" || "HIGH" || "LOW" || "MEDIUM" || "OFF",
Expand Down
2 changes: 2 additions & 0 deletions clients/client-medialive/src/commands/UpdateChannelCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -967,6 +967,7 @@ export interface UpdateChannelCommandOutput extends UpdateChannelResponse, __Met
* TileWidth: Number("int"),
* TreeblockSize: "AUTO" || "TREE_SIZE_32X32",
* MinQp: Number("int"),
* Deblocking: "DISABLED" || "ENABLED",
* },
* Mpeg2Settings: { // Mpeg2Settings
* AdaptiveQuantization: "AUTO" || "HIGH" || "LOW" || "MEDIUM" || "OFF",
Expand Down Expand Up @@ -2142,6 +2143,7 @@ export interface UpdateChannelCommandOutput extends UpdateChannelResponse, __Met
* // TileWidth: Number("int"),
* // TreeblockSize: "AUTO" || "TREE_SIZE_32X32",
* // MinQp: Number("int"),
* // Deblocking: "DISABLED" || "ENABLED",
* // },
* // Mpeg2Settings: { // Mpeg2Settings
* // AdaptiveQuantization: "AUTO" || "HIGH" || "LOW" || "MEDIUM" || "OFF",
Expand Down
37 changes: 22 additions & 15 deletions clients/client-medialive/src/models/models_1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5239,6 +5239,20 @@ export interface H265ColorSpaceSettings {
Rec709Settings?: Rec709Settings | undefined;
}

/**
* @public
* @enum
*/
export const H265Deblocking = {
DISABLED: "DISABLED",
ENABLED: "ENABLED",
} as const;

/**
* @public
*/
export type H265Deblocking = (typeof H265Deblocking)[keyof typeof H265Deblocking];

/**
* H265 Filter Settings
* @public
Expand Down Expand Up @@ -5728,6 +5742,14 @@ export interface H265Settings {
* @public
*/
MinQp?: number | undefined;

/**
* Enable or disable the deblocking filter for this codec. The filter reduces blocking artifacts at block boundaries,
* which improves overall video quality. If the filter is disabled, visible block edges might appear in the output,
* especially at lower bitrates.
* @public
*/
Deblocking?: H265Deblocking | undefined;
}

/**
Expand Down Expand Up @@ -7131,18 +7153,3 @@ export const GlobalConfigurationOutputTimingSource = {
*/
export type GlobalConfigurationOutputTimingSource =
(typeof GlobalConfigurationOutputTimingSource)[keyof typeof GlobalConfigurationOutputTimingSource];

/**
* @public
* @enum
*/
export const GlobalConfigurationLowFramerateInputs = {
DISABLED: "DISABLED",
ENABLED: "ENABLED",
} as const;

/**
* @public
*/
export type GlobalConfigurationLowFramerateInputs =
(typeof GlobalConfigurationLowFramerateInputs)[keyof typeof GlobalConfigurationLowFramerateInputs];
18 changes: 17 additions & 1 deletion clients/client-medialive/src/models/models_2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ import {
ColorCorrectionSettings,
FeatureActivations,
GlobalConfigurationInputEndAction,
GlobalConfigurationLowFramerateInputs,
GlobalConfigurationOutputLockingMode,
GlobalConfigurationOutputTimingSource,
InputLossBehavior,
Expand All @@ -126,6 +125,21 @@ import {
VideoDescription,
} from "./models_1";

/**
* @public
* @enum
*/
export const GlobalConfigurationLowFramerateInputs = {
DISABLED: "DISABLED",
ENABLED: "ENABLED",
} as const;

/**
* @public
*/
export type GlobalConfigurationLowFramerateInputs =
(typeof GlobalConfigurationLowFramerateInputs)[keyof typeof GlobalConfigurationLowFramerateInputs];

/**
* Global Configuration
* @public
Expand Down Expand Up @@ -8113,6 +8127,8 @@ export interface UpdateInputSecurityGroupRequest {
InputSecurityGroupId: string | undefined;

/**
* @deprecated
*
* A collection of key-value pairs.
* @public
*/
Expand Down
2 changes: 2 additions & 0 deletions clients/client-medialive/src/protocols/Aws_restJson1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7707,6 +7707,7 @@ const se_H265Settings = (input: H265Settings, context: __SerdeContext): any => {
bufSize: [, , `BufSize`],
colorMetadata: [, , `ColorMetadata`],
colorSpaceSettings: [, (_) => se_H265ColorSpaceSettings(_, context), `ColorSpaceSettings`],
deblocking: [, , `Deblocking`],
filterSettings: [, (_) => se_H265FilterSettings(_, context), `FilterSettings`],
fixedAfd: [, , `FixedAfd`],
flickerAq: [, , `FlickerAq`],
Expand Down Expand Up @@ -11698,6 +11699,7 @@ const de_H265Settings = (output: any, context: __SerdeContext): H265Settings =>
BufSize: [, __expectInt32, `bufSize`],
ColorMetadata: [, __expectString, `colorMetadata`],
ColorSpaceSettings: [, (_: any) => de_H265ColorSpaceSettings(_, context), `colorSpaceSettings`],
Deblocking: [, __expectString, `deblocking`],
FilterSettings: [, (_: any) => de_H265FilterSettings(_, context), `filterSettings`],
FixedAfd: [, __expectString, `fixedAfd`],
FlickerAq: [, __expectString, `flickerAq`],
Expand Down
31 changes: 31 additions & 0 deletions codegen/sdk-codegen/aws-models/medialive.json
Original file line number Diff line number Diff line change
Expand Up @@ -16518,6 +16518,26 @@
"smithy.api#documentation": "H265 Color Space Settings"
}
},
"com.amazonaws.medialive#H265Deblocking": {
"type": "enum",
"members": {
"DISABLED": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "DISABLED"
}
},
"ENABLED": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "ENABLED"
}
}
},
"traits": {
"smithy.api#documentation": "H265 Deblocking"
}
},
"com.amazonaws.medialive#H265FilterSettings": {
"type": "structure",
"members": {
Expand Down Expand Up @@ -17087,6 +17107,13 @@
"smithy.api#documentation": "Sets the minimum QP. If you aren't familiar with quantization adjustment, leave the field empty. MediaLive will\napply an appropriate value.",
"smithy.api#jsonName": "minQp"
}
},
"Deblocking": {
"target": "com.amazonaws.medialive#H265Deblocking",
"traits": {
"smithy.api#documentation": "Enable or disable the deblocking filter for this codec. The filter reduces blocking artifacts at block boundaries,\nwhich improves overall video quality. If the filter is disabled, visible block edges might appear in the output,\nespecially at lower bitrates.",
"smithy.api#jsonName": "deblocking"
}
}
},
"traits": {
Expand Down Expand Up @@ -35048,6 +35075,10 @@
"Tags": {
"target": "com.amazonaws.medialive#Tags",
"traits": {
"smithy.api#deprecated": {
"since": "2024-11-20",
"message": "This API is deprecated. You must use UpdateTagsForResource instead."
},
"smithy.api#documentation": "A collection of key-value pairs.",
"smithy.api#jsonName": "tags"
}
Expand Down

0 comments on commit 4adf1d4

Please sign in to comment.