tencentcloud-sdk-mps 3.0.1205 → 3.0.1208

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/VERSION +1 -1
  3. data/lib/v20190612/models.rb +74 -29
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: be8d905a7a2990ecd40348448aaaebf477c38c4d
4
- data.tar.gz: 5ea60050766bb9781a193324adeab14ca01fd905
3
+ metadata.gz: 7f30b1cf970005b15f4d3718c017628250f9f533
4
+ data.tar.gz: 2bda29b022950a84ea8a1325157b912c613bc4df
5
5
  SHA512:
6
- metadata.gz: de8ad90042c016c00043afc3d0ce93fb9d015280aaf5cf21db12474c6f568ae5890bdbb0ae2fdb91f220c7d663f2369af186741a7c0e2275bc76362a3d935d17
7
- data.tar.gz: 0cc6727300a3a206685008182963e40cd9f3120999e7586063e38880e02286b2e8cc7e74a91cdb40b86f747bae3bfd391b40923f0df2410b6af2597dd048ccac
6
+ metadata.gz: 2d09ab49875fb15ac982bec771a62b5784793dacb41aefa32f395d11ceaef5bf771b9571c7f034ebe0675f5d22f36681e517fcd1fdf6ca63f5d0efc8a730ad1b
7
+ data.tar.gz: 25859be206cba940b60a8f0e07a31665bd7211513e63e0ffbbd4ca5e4cf0facea55960e38efd05e7dde9c8883585a530e3d961cdde33ca756d7b7cd2be0d2d54
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.1205
1
+ 3.0.1208
@@ -24583,10 +24583,12 @@ module TencentCloud
24583
24583
  # @type ScheduleId: Integer
24584
24584
  # @param AddOnParameter: 图片处理附加参数。
24585
24585
  # @type AddOnParameter: :class:`Tencentcloud::Mps.v20190612.models.AddOnParameter`
24586
+ # @param StdExtInfo: 图片处理拓展参数。
24587
+ # @type StdExtInfo: String
24586
24588
 
24587
- attr_accessor :InputInfo, :OutputStorage, :OutputDir, :OutputPath, :Definition, :ResourceId, :ImageTask, :ScheduleId, :AddOnParameter
24589
+ attr_accessor :InputInfo, :OutputStorage, :OutputDir, :OutputPath, :Definition, :ResourceId, :ImageTask, :ScheduleId, :AddOnParameter, :StdExtInfo
24588
24590
 
24589
- def initialize(inputinfo=nil, outputstorage=nil, outputdir=nil, outputpath=nil, definition=nil, resourceid=nil, imagetask=nil, scheduleid=nil, addonparameter=nil)
24591
+ def initialize(inputinfo=nil, outputstorage=nil, outputdir=nil, outputpath=nil, definition=nil, resourceid=nil, imagetask=nil, scheduleid=nil, addonparameter=nil, stdextinfo=nil)
24590
24592
  @InputInfo = inputinfo
24591
24593
  @OutputStorage = outputstorage
24592
24594
  @OutputDir = outputdir
@@ -24596,6 +24598,7 @@ module TencentCloud
24596
24598
  @ImageTask = imagetask
24597
24599
  @ScheduleId = scheduleid
24598
24600
  @AddOnParameter = addonparameter
24601
+ @StdExtInfo = stdextinfo
24599
24602
  end
24600
24603
 
24601
24604
  def deserialize(params)
@@ -24620,6 +24623,7 @@ module TencentCloud
24620
24623
  @AddOnParameter = AddOnParameter.new
24621
24624
  @AddOnParameter.deserialize(params['AddOnParameter'])
24622
24625
  end
24626
+ @StdExtInfo = params['StdExtInfo']
24623
24627
  end
24624
24628
  end
24625
24629
 
@@ -29221,6 +29225,8 @@ module TencentCloud
29221
29225
  # @param SubtitleFileInput: 要压制到视频中的字幕文件的输入信息,目前仅支持存储在COS的字幕文件
29222
29226
  # 注意:此字段可能返回 null,表示取不到有效值。
29223
29227
  # @type SubtitleFileInput: :class:`Tencentcloud::Mps.v20190612.models.MediaInputInfo`
29228
+ # @param FontFileInput: 压制字幕字体文件的输入信息,目前仅支持url和cos。都填时url优先于cos。填了FontFileInput时FontFileInput优先于FontType
29229
+ # @type FontFileInput: :class:`Tencentcloud::Mps.v20190612.models.MediaInputInfo`
29224
29230
  # @param FontType: 字体类型,支持:
29225
29231
  # <li>hei.ttf:黑体</li>
29226
29232
  # <li>song.ttf:宋体</li>
@@ -29239,11 +29245,20 @@ module TencentCloud
29239
29245
  # <li>korean.ttf:韩语</li>
29240
29246
  # <li>japanese.ttf:日语</li>
29241
29247
  # <li>thai.ttf:泰语</li>
29242
- # 默认:hei.ttf 黑体。注意:楷体推荐使用kai.ttf
29248
+ # 默认:hei.ttf 黑体。
29249
+ # <br>注意:
29250
+ # <li>楷体推荐使用kai.ttf</li>
29251
+ # <li>填了FontFileInput时FontFileInput优先</li>
29252
+
29243
29253
  # 注意:此字段可能返回 null,表示取不到有效值。
29244
29254
  # @type FontType: String
29245
- # @param FontSize: 字体大小,格式:Npx,N 为数值,不指定则以字幕文件中为准。
29246
- # 默认源视频高度的5%。
29255
+ # @param FontSize: 字体大小,不指定则以字幕文件中为准。支持像素和百分比格式:
29256
+
29257
+ # - 像素:Npx,N范围:(0,4096]。
29258
+ # - 百分百:N%,N范围:(0,100];例如10%表示字幕字体大小=10%*源视频高度。
29259
+
29260
+ # 不填且字幕文件无设置时,默认源视频高度的5%。
29261
+
29247
29262
  # 注意:此字段可能返回 null,表示取不到有效值。
29248
29263
  # @type FontSize: String
29249
29264
  # @param FontColor: 字体颜色,格式:0xRRGGBB,默认值:0xFFFFFF(白色)。
@@ -29277,13 +29292,18 @@ module TencentCloud
29277
29292
 
29278
29293
  # 注意:此字段可能返回 null,表示取不到有效值。
29279
29294
  # @type BoardY: String
29280
- # @param BoardWidth: 底板的宽度,单位为像素,取值范围:[0,4096]。
29281
- # 默认源视频宽像素的90%。
29295
+ # @param BoardWidth: 底板的宽度,正整数。
29296
+ # - 代表像素时,取值范围:[0,4096]。
29297
+ # - 代表百分数时,[0, 100]。
29298
+ # 开启底板且不填此值时,默认源视频宽像素的90%。
29282
29299
 
29283
29300
  # 注意:此字段可能返回 null,表示取不到有效值。
29284
29301
  # @type BoardWidth: Integer
29285
- # @param BoardHeight: 底板的高度。单位为像素,取值范围:[0,4096]。
29286
- # 默认为源视频高像素的15%。
29302
+ # @param BoardHeight: 底板的高度,正整数。
29303
+ # - 代表像素时,取值范围:[0,4096]。
29304
+ # - 代表百分数时,[0, 100]。
29305
+ # 开启底板且不填此值时,默认为源视频高像素的15%。
29306
+
29287
29307
  # 注意:此字段可能返回 null,表示取不到有效值。
29288
29308
  # @type BoardHeight: Integer
29289
29309
  # @param BoardColor: 底板颜色。格式:0xRRGGBB,
@@ -29296,37 +29316,48 @@ module TencentCloud
29296
29316
  # 默认值:0.8。
29297
29317
  # 注意:此字段可能返回 null,表示取不到有效值。
29298
29318
  # @type BoardAlpha: Float
29299
- # @param OutlineWidth: 描边宽度
29300
- # 注意:此字段可能返回 null,表示取不到有效值。
29319
+ # @param OutlineWidth: 描边宽度。浮点数。
29320
+ # - 代表像素值时, [0, 1000]。
29321
+ # - 代表百分数时,[0, 100]。
29322
+ # 不填默认源视频高度的0.3%。
29301
29323
  # @type OutlineWidth: Float
29302
- # @param OutlineColor: 描边颜色。6位16进制RGB
29303
- # 注意:此字段可能返回 null,表示取不到有效值。
29324
+ # @param OutlineColor: 描边颜色。6位16进制RGB。不填默认黑色。
29304
29325
  # @type OutlineColor: String
29305
- # @param OutlineAlpha: 描边透明度。(0,1] 正浮点数
29306
- # 注意:此字段可能返回 null,表示取不到有效值。
29326
+ # @param OutlineAlpha: 描边透明度。(0,1] 正浮点数。不填默认1,完全不透明
29307
29327
  # @type OutlineAlpha: Float
29308
- # @param ShadowWidth: 阴影宽度。浮点数 [0, 1000]
29309
- # 注意:此字段可能返回 null,表示取不到有效值。
29328
+ # @param ShadowWidth: 阴影宽度。浮点数。
29329
+ # - 代表像素值时, [0, 1000]。
29330
+ # - 代表百分数时,[0, 100]。
29331
+ # 不填默认无阴影。
29310
29332
  # @type ShadowWidth: Float
29311
- # @param ShadowColor: 阴影颜色。6位16进制RGB
29312
- # 注意:此字段可能返回 null,表示取不到有效值。
29333
+ # @param ShadowColor: 阴影颜色。6位16进制RGB。不填默认黑色(有设置阴影的情况下)
29313
29334
  # @type ShadowColor: String
29314
- # @param ShadowAlpha: 阴影透明度。(0,1] 正浮点数
29315
- # 注意:此字段可能返回 null,表示取不到有效值。
29335
+ # @param ShadowAlpha: 阴影透明度。(0,1] 正浮点数。不填默认1,完全不透明(有设置阴影的情况下)
29316
29336
  # @type ShadowAlpha: Float
29317
- # @param LineSpacing: 行间距。正整数 [0, 1000]
29318
- # 注意:此字段可能返回 null,表示取不到有效值。
29337
+ # @param LineSpacing: 行间距。正整数。
29338
+ # - 代表像素值时, [0, 1000]。
29339
+ # - 代表百分数时,[0, 100]。不填默认0。
29319
29340
  # @type LineSpacing: Integer
29320
- # @param Alignment: 对齐方式,,取值:top: 顶部对齐,字幕顶部按位置固定,底部随行数变化。bottom: 底部对齐,字幕底部按位置固定,顶部随行数变化。
29321
- # 注意:此字段可能返回 null,表示取不到有效值。
29341
+ # @param Alignment: 对齐方式,取值:top: 顶部对齐,字幕顶部按位置固定,底部随行数变化。bottom: 底部对齐,字幕底部按位置固定,顶部随行数变化。不填默认底部对齐。
29322
29342
  # @type Alignment: String
29323
-
29324
- attr_accessor :Path, :StreamIndex, :SubtitleFileInput, :FontType, :FontSize, :FontColor, :FontAlpha, :YPos, :BoardY, :BoardWidth, :BoardHeight, :BoardColor, :BoardAlpha, :OutlineWidth, :OutlineColor, :OutlineAlpha, :ShadowWidth, :ShadowColor, :ShadowAlpha, :LineSpacing, :Alignment
29325
-
29326
- def initialize(path=nil, streamindex=nil, subtitlefileinput=nil, fonttype=nil, fontsize=nil, fontcolor=nil, fontalpha=nil, ypos=nil, boardy=nil, boardwidth=nil, boardheight=nil, boardcolor=nil, boardalpha=nil, outlinewidth=nil, outlinecolor=nil, outlinealpha=nil, shadowwidth=nil, shadowcolor=nil, shadowalpha=nil, linespacing=nil, alignment=nil)
29343
+ # @param BoardWidthUnit: 默认0。为1时BoardWidth代表百分之几,以视频宽为基准
29344
+ # @type BoardWidthUnit: Integer
29345
+ # @param BoardHeightUnit: 默认0。为1时BoardHeight代表百分之几,以视频高为基准
29346
+ # @type BoardHeightUnit: Integer
29347
+ # @param OutlineWidthUnit: 默认0。为1时OutlineWidth代表百分之几,以视频高为基准
29348
+ # @type OutlineWidthUnit: Integer
29349
+ # @param ShadowWidthUnit: 默认0。为1时ShadowWidth代表百分之几,以视频高为基准
29350
+ # @type ShadowWidthUnit: Integer
29351
+ # @param LineSpacingUnit: 默认0。为1时LineSpacing代表百分之几,以视频高为基准
29352
+ # @type LineSpacingUnit: Integer
29353
+
29354
+ attr_accessor :Path, :StreamIndex, :SubtitleFileInput, :FontFileInput, :FontType, :FontSize, :FontColor, :FontAlpha, :YPos, :BoardY, :BoardWidth, :BoardHeight, :BoardColor, :BoardAlpha, :OutlineWidth, :OutlineColor, :OutlineAlpha, :ShadowWidth, :ShadowColor, :ShadowAlpha, :LineSpacing, :Alignment, :BoardWidthUnit, :BoardHeightUnit, :OutlineWidthUnit, :ShadowWidthUnit, :LineSpacingUnit
29355
+
29356
+ def initialize(path=nil, streamindex=nil, subtitlefileinput=nil, fontfileinput=nil, fonttype=nil, fontsize=nil, fontcolor=nil, fontalpha=nil, ypos=nil, boardy=nil, boardwidth=nil, boardheight=nil, boardcolor=nil, boardalpha=nil, outlinewidth=nil, outlinecolor=nil, outlinealpha=nil, shadowwidth=nil, shadowcolor=nil, shadowalpha=nil, linespacing=nil, alignment=nil, boardwidthunit=nil, boardheightunit=nil, outlinewidthunit=nil, shadowwidthunit=nil, linespacingunit=nil)
29327
29357
  @Path = path
29328
29358
  @StreamIndex = streamindex
29329
29359
  @SubtitleFileInput = subtitlefileinput
29360
+ @FontFileInput = fontfileinput
29330
29361
  @FontType = fonttype
29331
29362
  @FontSize = fontsize
29332
29363
  @FontColor = fontcolor
@@ -29345,6 +29376,11 @@ module TencentCloud
29345
29376
  @ShadowAlpha = shadowalpha
29346
29377
  @LineSpacing = linespacing
29347
29378
  @Alignment = alignment
29379
+ @BoardWidthUnit = boardwidthunit
29380
+ @BoardHeightUnit = boardheightunit
29381
+ @OutlineWidthUnit = outlinewidthunit
29382
+ @ShadowWidthUnit = shadowwidthunit
29383
+ @LineSpacingUnit = linespacingunit
29348
29384
  end
29349
29385
 
29350
29386
  def deserialize(params)
@@ -29354,6 +29390,10 @@ module TencentCloud
29354
29390
  @SubtitleFileInput = MediaInputInfo.new
29355
29391
  @SubtitleFileInput.deserialize(params['SubtitleFileInput'])
29356
29392
  end
29393
+ unless params['FontFileInput'].nil?
29394
+ @FontFileInput = MediaInputInfo.new
29395
+ @FontFileInput.deserialize(params['FontFileInput'])
29396
+ end
29357
29397
  @FontType = params['FontType']
29358
29398
  @FontSize = params['FontSize']
29359
29399
  @FontColor = params['FontColor']
@@ -29372,6 +29412,11 @@ module TencentCloud
29372
29412
  @ShadowAlpha = params['ShadowAlpha']
29373
29413
  @LineSpacing = params['LineSpacing']
29374
29414
  @Alignment = params['Alignment']
29415
+ @BoardWidthUnit = params['BoardWidthUnit']
29416
+ @BoardHeightUnit = params['BoardHeightUnit']
29417
+ @OutlineWidthUnit = params['OutlineWidthUnit']
29418
+ @ShadowWidthUnit = params['ShadowWidthUnit']
29419
+ @LineSpacingUnit = params['LineSpacingUnit']
29375
29420
  end
29376
29421
  end
29377
29422
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-mps
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.1205
4
+ version: 3.0.1208
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-01-21 00:00:00.000000000 Z
11
+ date: 2026-01-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common