1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace AlibabaCloud\Videoenhan\V20200320; |
4
|
|
|
|
5
|
|
|
use AlibabaCloud\Client\Resolver\ApiResolver; |
6
|
|
|
|
7
|
|
|
/** |
8
|
|
|
* @method AbstractEcommerceVideo abstractEcommerceVideo(array $options = []) |
9
|
|
|
* @method AbstractFilmVideo abstractFilmVideo(array $options = []) |
10
|
|
|
* @method AddFaceVideoTemplate addFaceVideoTemplate(array $options = []) |
11
|
|
|
* @method AdjustVideoColor adjustVideoColor(array $options = []) |
12
|
|
|
* @method ChangeVideoSize changeVideoSize(array $options = []) |
13
|
|
|
* @method ConvertHdrVideo convertHdrVideo(array $options = []) |
14
|
|
|
* @method DeleteFaceVideoTemplate deleteFaceVideoTemplate(array $options = []) |
15
|
|
|
* @method EnhancePortraitVideo enhancePortraitVideo(array $options = []) |
16
|
|
|
* @method EnhanceVideoQuality enhanceVideoQuality(array $options = []) |
17
|
|
|
* @method EraseVideoLogo eraseVideoLogo(array $options = []) |
18
|
|
|
* @method EraseVideoSubtitles eraseVideoSubtitles(array $options = []) |
19
|
|
|
* @method GenerateHumanAnimeStyleVideo generateHumanAnimeStyleVideo(array $options = []) |
20
|
|
|
* @method GenerateVideo generateVideo(array $options = []) |
21
|
|
|
* @method GetAsyncJobResult getAsyncJobResult(array $options = []) |
22
|
|
|
* @method InterpolateVideoFrame interpolateVideoFrame(array $options = []) |
23
|
|
|
* @method MergeVideoFace mergeVideoFace(array $options = []) |
24
|
|
|
* @method MergeVideoModelFace mergeVideoModelFace(array $options = []) |
25
|
|
|
* @method QueryFaceVideoTemplate queryFaceVideoTemplate(array $options = []) |
26
|
|
|
* @method ReduceVideoNoise reduceVideoNoise(array $options = []) |
27
|
|
|
* @method SuperResolveVideo superResolveVideo(array $options = []) |
28
|
|
|
* @method ToneSdrVideo toneSdrVideo(array $options = []) |
29
|
|
|
*/ |
30
|
|
|
class VideoenhanApiResolver extends ApiResolver |
31
|
|
|
{ |
32
|
|
|
} |
33
|
|
|
|
34
|
|
|
class Rpc extends \AlibabaCloud\Client\Resolver\Rpc |
35
|
|
|
{ |
36
|
|
|
/** @var string */ |
37
|
|
|
public $product = 'videoenhan'; |
38
|
|
|
|
39
|
|
|
/** @var string */ |
40
|
|
|
public $version = '2020-03-20'; |
41
|
|
|
|
42
|
|
|
/** @var string */ |
43
|
|
|
public $method = 'POST'; |
44
|
|
|
|
45
|
|
|
/** @var string */ |
46
|
|
|
public $serviceCode = 'videoenhan'; |
47
|
|
|
} |
48
|
|
|
|
49
|
|
|
/** |
50
|
|
|
* @method string getDuration() |
51
|
|
|
* @method string getHeight() |
52
|
|
|
* @method string getAsync() |
53
|
|
|
* @method string getVideoUrl() |
54
|
|
|
* @method string getWidth() |
55
|
|
|
*/ |
56
|
|
|
class AbstractEcommerceVideo extends Rpc |
57
|
|
|
{ |
58
|
|
|
|
59
|
|
|
/** |
60
|
|
|
* @param string $value |
61
|
|
|
* |
62
|
|
|
* @return $this |
63
|
|
|
*/ |
64
|
|
|
public function withDuration($value) |
65
|
|
|
{ |
66
|
|
|
$this->data['Duration'] = $value; |
67
|
|
|
$this->options['form_params']['Duration'] = $value; |
68
|
|
|
|
69
|
|
|
return $this; |
70
|
|
|
} |
71
|
|
|
|
72
|
|
|
/** |
73
|
|
|
* @param string $value |
74
|
|
|
* |
75
|
|
|
* @return $this |
76
|
|
|
*/ |
77
|
|
|
public function withHeight($value) |
78
|
|
|
{ |
79
|
|
|
$this->data['Height'] = $value; |
80
|
|
|
$this->options['form_params']['Height'] = $value; |
81
|
|
|
|
82
|
|
|
return $this; |
83
|
|
|
} |
84
|
|
|
|
85
|
|
|
/** |
86
|
|
|
* @param string $value |
87
|
|
|
* |
88
|
|
|
* @return $this |
89
|
|
|
*/ |
90
|
|
|
public function withAsync($value) |
91
|
|
|
{ |
92
|
|
|
$this->data['Async'] = $value; |
93
|
|
|
$this->options['form_params']['Async'] = $value; |
94
|
|
|
|
95
|
|
|
return $this; |
96
|
|
|
} |
97
|
|
|
|
98
|
|
|
/** |
99
|
|
|
* @param string $value |
100
|
|
|
* |
101
|
|
|
* @return $this |
102
|
|
|
*/ |
103
|
|
|
public function withVideoUrl($value) |
104
|
|
|
{ |
105
|
|
|
$this->data['VideoUrl'] = $value; |
106
|
|
|
$this->options['form_params']['VideoUrl'] = $value; |
107
|
|
|
|
108
|
|
|
return $this; |
109
|
|
|
} |
110
|
|
|
|
111
|
|
|
/** |
112
|
|
|
* @param string $value |
113
|
|
|
* |
114
|
|
|
* @return $this |
115
|
|
|
*/ |
116
|
|
|
public function withWidth($value) |
117
|
|
|
{ |
118
|
|
|
$this->data['Width'] = $value; |
119
|
|
|
$this->options['form_params']['Width'] = $value; |
120
|
|
|
|
121
|
|
|
return $this; |
122
|
|
|
} |
123
|
|
|
} |
124
|
|
|
|
125
|
|
|
/** |
126
|
|
|
* @method string getLength() |
127
|
|
|
* @method string getAsync() |
128
|
|
|
* @method string getVideoUrl() |
129
|
|
|
*/ |
130
|
|
|
class AbstractFilmVideo extends Rpc |
131
|
|
|
{ |
132
|
|
|
|
133
|
|
|
/** |
134
|
|
|
* @param string $value |
135
|
|
|
* |
136
|
|
|
* @return $this |
137
|
|
|
*/ |
138
|
|
|
public function withLength($value) |
139
|
|
|
{ |
140
|
|
|
$this->data['Length'] = $value; |
141
|
|
|
$this->options['form_params']['Length'] = $value; |
142
|
|
|
|
143
|
|
|
return $this; |
144
|
|
|
} |
145
|
|
|
|
146
|
|
|
/** |
147
|
|
|
* @param string $value |
148
|
|
|
* |
149
|
|
|
* @return $this |
150
|
|
|
*/ |
151
|
|
|
public function withAsync($value) |
152
|
|
|
{ |
153
|
|
|
$this->data['Async'] = $value; |
154
|
|
|
$this->options['form_params']['Async'] = $value; |
155
|
|
|
|
156
|
|
|
return $this; |
157
|
|
|
} |
158
|
|
|
|
159
|
|
|
/** |
160
|
|
|
* @param string $value |
161
|
|
|
* |
162
|
|
|
* @return $this |
163
|
|
|
*/ |
164
|
|
|
public function withVideoUrl($value) |
165
|
|
|
{ |
166
|
|
|
$this->data['VideoUrl'] = $value; |
167
|
|
|
$this->options['form_params']['VideoUrl'] = $value; |
168
|
|
|
|
169
|
|
|
return $this; |
170
|
|
|
} |
171
|
|
|
} |
172
|
|
|
|
173
|
|
|
/** |
174
|
|
|
* @method string getUserId() |
175
|
|
|
* @method string getVideoScene() |
176
|
|
|
* @method string getAsync() |
177
|
|
|
* @method string getVideoURL() |
178
|
|
|
*/ |
179
|
|
|
class AddFaceVideoTemplate extends Rpc |
180
|
|
|
{ |
181
|
|
|
|
182
|
|
|
/** |
183
|
|
|
* @param string $value |
184
|
|
|
* |
185
|
|
|
* @return $this |
186
|
|
|
*/ |
187
|
|
|
public function withUserId($value) |
188
|
|
|
{ |
189
|
|
|
$this->data['UserId'] = $value; |
190
|
|
|
$this->options['form_params']['UserId'] = $value; |
191
|
|
|
|
192
|
|
|
return $this; |
193
|
|
|
} |
194
|
|
|
|
195
|
|
|
/** |
196
|
|
|
* @param string $value |
197
|
|
|
* |
198
|
|
|
* @return $this |
199
|
|
|
*/ |
200
|
|
|
public function withVideoScene($value) |
201
|
|
|
{ |
202
|
|
|
$this->data['VideoScene'] = $value; |
203
|
|
|
$this->options['form_params']['VideoScene'] = $value; |
204
|
|
|
|
205
|
|
|
return $this; |
206
|
|
|
} |
207
|
|
|
|
208
|
|
|
/** |
209
|
|
|
* @param string $value |
210
|
|
|
* |
211
|
|
|
* @return $this |
212
|
|
|
*/ |
213
|
|
|
public function withAsync($value) |
214
|
|
|
{ |
215
|
|
|
$this->data['Async'] = $value; |
216
|
|
|
$this->options['form_params']['Async'] = $value; |
217
|
|
|
|
218
|
|
|
return $this; |
219
|
|
|
} |
220
|
|
|
|
221
|
|
|
/** |
222
|
|
|
* @param string $value |
223
|
|
|
* |
224
|
|
|
* @return $this |
225
|
|
|
*/ |
226
|
|
|
public function withVideoURL($value) |
227
|
|
|
{ |
228
|
|
|
$this->data['VideoURL'] = $value; |
229
|
|
|
$this->options['form_params']['VideoURL'] = $value; |
230
|
|
|
|
231
|
|
|
return $this; |
232
|
|
|
} |
233
|
|
|
} |
234
|
|
|
|
235
|
|
|
/** |
236
|
|
|
* @method string getMode() |
237
|
|
|
* @method string getAsync() |
238
|
|
|
* @method string getVideoUrl() |
239
|
|
|
* @method string getVideoBitrate() |
240
|
|
|
* @method string getVideoCodec() |
241
|
|
|
* @method string getVideoFormat() |
242
|
|
|
*/ |
243
|
|
|
class AdjustVideoColor extends Rpc |
244
|
|
|
{ |
245
|
|
|
|
246
|
|
|
/** |
247
|
|
|
* @param string $value |
248
|
|
|
* |
249
|
|
|
* @return $this |
250
|
|
|
*/ |
251
|
|
|
public function withMode($value) |
252
|
|
|
{ |
253
|
|
|
$this->data['Mode'] = $value; |
254
|
|
|
$this->options['form_params']['Mode'] = $value; |
255
|
|
|
|
256
|
|
|
return $this; |
257
|
|
|
} |
258
|
|
|
|
259
|
|
|
/** |
260
|
|
|
* @param string $value |
261
|
|
|
* |
262
|
|
|
* @return $this |
263
|
|
|
*/ |
264
|
|
|
public function withAsync($value) |
265
|
|
|
{ |
266
|
|
|
$this->data['Async'] = $value; |
267
|
|
|
$this->options['form_params']['Async'] = $value; |
268
|
|
|
|
269
|
|
|
return $this; |
270
|
|
|
} |
271
|
|
|
|
272
|
|
|
/** |
273
|
|
|
* @param string $value |
274
|
|
|
* |
275
|
|
|
* @return $this |
276
|
|
|
*/ |
277
|
|
|
public function withVideoUrl($value) |
278
|
|
|
{ |
279
|
|
|
$this->data['VideoUrl'] = $value; |
280
|
|
|
$this->options['form_params']['VideoUrl'] = $value; |
281
|
|
|
|
282
|
|
|
return $this; |
283
|
|
|
} |
284
|
|
|
|
285
|
|
|
/** |
286
|
|
|
* @param string $value |
287
|
|
|
* |
288
|
|
|
* @return $this |
289
|
|
|
*/ |
290
|
|
|
public function withVideoBitrate($value) |
291
|
|
|
{ |
292
|
|
|
$this->data['VideoBitrate'] = $value; |
293
|
|
|
$this->options['form_params']['VideoBitrate'] = $value; |
294
|
|
|
|
295
|
|
|
return $this; |
296
|
|
|
} |
297
|
|
|
|
298
|
|
|
/** |
299
|
|
|
* @param string $value |
300
|
|
|
* |
301
|
|
|
* @return $this |
302
|
|
|
*/ |
303
|
|
|
public function withVideoCodec($value) |
304
|
|
|
{ |
305
|
|
|
$this->data['VideoCodec'] = $value; |
306
|
|
|
$this->options['form_params']['VideoCodec'] = $value; |
307
|
|
|
|
308
|
|
|
return $this; |
309
|
|
|
} |
310
|
|
|
|
311
|
|
|
/** |
312
|
|
|
* @param string $value |
313
|
|
|
* |
314
|
|
|
* @return $this |
315
|
|
|
*/ |
316
|
|
|
public function withVideoFormat($value) |
317
|
|
|
{ |
318
|
|
|
$this->data['VideoFormat'] = $value; |
319
|
|
|
$this->options['form_params']['VideoFormat'] = $value; |
320
|
|
|
|
321
|
|
|
return $this; |
322
|
|
|
} |
323
|
|
|
} |
324
|
|
|
|
325
|
|
|
/** |
326
|
|
|
* @method string getHeight() |
327
|
|
|
* @method string getB() |
328
|
|
|
* @method string getFillType() |
329
|
|
|
* @method string getG() |
330
|
|
|
* @method string getCropType() |
331
|
|
|
* @method string getAsync() |
332
|
|
|
* @method string getR() |
333
|
|
|
* @method string getVideoUrl() |
334
|
|
|
* @method string getWidth() |
335
|
|
|
* @method string getTightness() |
336
|
|
|
*/ |
337
|
|
|
class ChangeVideoSize extends Rpc |
338
|
|
|
{ |
339
|
|
|
|
340
|
|
|
/** |
341
|
|
|
* @param string $value |
342
|
|
|
* |
343
|
|
|
* @return $this |
344
|
|
|
*/ |
345
|
|
|
public function withHeight($value) |
346
|
|
|
{ |
347
|
|
|
$this->data['Height'] = $value; |
348
|
|
|
$this->options['form_params']['Height'] = $value; |
349
|
|
|
|
350
|
|
|
return $this; |
351
|
|
|
} |
352
|
|
|
|
353
|
|
|
/** |
354
|
|
|
* @param string $value |
355
|
|
|
* |
356
|
|
|
* @return $this |
357
|
|
|
*/ |
358
|
|
|
public function withB($value) |
359
|
|
|
{ |
360
|
|
|
$this->data['B'] = $value; |
361
|
|
|
$this->options['form_params']['B'] = $value; |
362
|
|
|
|
363
|
|
|
return $this; |
364
|
|
|
} |
365
|
|
|
|
366
|
|
|
/** |
367
|
|
|
* @param string $value |
368
|
|
|
* |
369
|
|
|
* @return $this |
370
|
|
|
*/ |
371
|
|
|
public function withFillType($value) |
372
|
|
|
{ |
373
|
|
|
$this->data['FillType'] = $value; |
374
|
|
|
$this->options['form_params']['FillType'] = $value; |
375
|
|
|
|
376
|
|
|
return $this; |
377
|
|
|
} |
378
|
|
|
|
379
|
|
|
/** |
380
|
|
|
* @param string $value |
381
|
|
|
* |
382
|
|
|
* @return $this |
383
|
|
|
*/ |
384
|
|
|
public function withG($value) |
385
|
|
|
{ |
386
|
|
|
$this->data['G'] = $value; |
387
|
|
|
$this->options['form_params']['G'] = $value; |
388
|
|
|
|
389
|
|
|
return $this; |
390
|
|
|
} |
391
|
|
|
|
392
|
|
|
/** |
393
|
|
|
* @param string $value |
394
|
|
|
* |
395
|
|
|
* @return $this |
396
|
|
|
*/ |
397
|
|
|
public function withCropType($value) |
398
|
|
|
{ |
399
|
|
|
$this->data['CropType'] = $value; |
400
|
|
|
$this->options['form_params']['CropType'] = $value; |
401
|
|
|
|
402
|
|
|
return $this; |
403
|
|
|
} |
404
|
|
|
|
405
|
|
|
/** |
406
|
|
|
* @param string $value |
407
|
|
|
* |
408
|
|
|
* @return $this |
409
|
|
|
*/ |
410
|
|
|
public function withAsync($value) |
411
|
|
|
{ |
412
|
|
|
$this->data['Async'] = $value; |
413
|
|
|
$this->options['form_params']['Async'] = $value; |
414
|
|
|
|
415
|
|
|
return $this; |
416
|
|
|
} |
417
|
|
|
|
418
|
|
|
/** |
419
|
|
|
* @param string $value |
420
|
|
|
* |
421
|
|
|
* @return $this |
422
|
|
|
*/ |
423
|
|
|
public function withR($value) |
424
|
|
|
{ |
425
|
|
|
$this->data['R'] = $value; |
426
|
|
|
$this->options['form_params']['R'] = $value; |
427
|
|
|
|
428
|
|
|
return $this; |
429
|
|
|
} |
430
|
|
|
|
431
|
|
|
/** |
432
|
|
|
* @param string $value |
433
|
|
|
* |
434
|
|
|
* @return $this |
435
|
|
|
*/ |
436
|
|
|
public function withVideoUrl($value) |
437
|
|
|
{ |
438
|
|
|
$this->data['VideoUrl'] = $value; |
439
|
|
|
$this->options['form_params']['VideoUrl'] = $value; |
440
|
|
|
|
441
|
|
|
return $this; |
442
|
|
|
} |
443
|
|
|
|
444
|
|
|
/** |
445
|
|
|
* @param string $value |
446
|
|
|
* |
447
|
|
|
* @return $this |
448
|
|
|
*/ |
449
|
|
|
public function withWidth($value) |
450
|
|
|
{ |
451
|
|
|
$this->data['Width'] = $value; |
452
|
|
|
$this->options['form_params']['Width'] = $value; |
453
|
|
|
|
454
|
|
|
return $this; |
455
|
|
|
} |
456
|
|
|
|
457
|
|
|
/** |
458
|
|
|
* @param string $value |
459
|
|
|
* |
460
|
|
|
* @return $this |
461
|
|
|
*/ |
462
|
|
|
public function withTightness($value) |
463
|
|
|
{ |
464
|
|
|
$this->data['Tightness'] = $value; |
465
|
|
|
$this->options['form_params']['Tightness'] = $value; |
466
|
|
|
|
467
|
|
|
return $this; |
468
|
|
|
} |
469
|
|
|
} |
470
|
|
|
|
471
|
|
|
/** |
472
|
|
|
* @method string getHDRFormat() |
473
|
|
|
* @method string getMaxIlluminance() |
474
|
|
|
* @method string getBitrate() |
475
|
|
|
* @method string getAsync() |
476
|
|
|
* @method string getVideoURL() |
477
|
|
|
*/ |
478
|
|
|
class ConvertHdrVideo extends Rpc |
479
|
|
|
{ |
480
|
|
|
|
481
|
|
|
/** |
482
|
|
|
* @param string $value |
483
|
|
|
* |
484
|
|
|
* @return $this |
485
|
|
|
*/ |
486
|
|
|
public function withHDRFormat($value) |
487
|
|
|
{ |
488
|
|
|
$this->data['HDRFormat'] = $value; |
489
|
|
|
$this->options['form_params']['HDRFormat'] = $value; |
490
|
|
|
|
491
|
|
|
return $this; |
492
|
|
|
} |
493
|
|
|
|
494
|
|
|
/** |
495
|
|
|
* @param string $value |
496
|
|
|
* |
497
|
|
|
* @return $this |
498
|
|
|
*/ |
499
|
|
|
public function withMaxIlluminance($value) |
500
|
|
|
{ |
501
|
|
|
$this->data['MaxIlluminance'] = $value; |
502
|
|
|
$this->options['form_params']['MaxIlluminance'] = $value; |
503
|
|
|
|
504
|
|
|
return $this; |
505
|
|
|
} |
506
|
|
|
|
507
|
|
|
/** |
508
|
|
|
* @param string $value |
509
|
|
|
* |
510
|
|
|
* @return $this |
511
|
|
|
*/ |
512
|
|
|
public function withBitrate($value) |
513
|
|
|
{ |
514
|
|
|
$this->data['Bitrate'] = $value; |
515
|
|
|
$this->options['form_params']['Bitrate'] = $value; |
516
|
|
|
|
517
|
|
|
return $this; |
518
|
|
|
} |
519
|
|
|
|
520
|
|
|
/** |
521
|
|
|
* @param string $value |
522
|
|
|
* |
523
|
|
|
* @return $this |
524
|
|
|
*/ |
525
|
|
|
public function withAsync($value) |
526
|
|
|
{ |
527
|
|
|
$this->data['Async'] = $value; |
528
|
|
|
$this->options['form_params']['Async'] = $value; |
529
|
|
|
|
530
|
|
|
return $this; |
531
|
|
|
} |
532
|
|
|
|
533
|
|
|
/** |
534
|
|
|
* @param string $value |
535
|
|
|
* |
536
|
|
|
* @return $this |
537
|
|
|
*/ |
538
|
|
|
public function withVideoURL($value) |
539
|
|
|
{ |
540
|
|
|
$this->data['VideoURL'] = $value; |
541
|
|
|
$this->options['form_params']['VideoURL'] = $value; |
542
|
|
|
|
543
|
|
|
return $this; |
544
|
|
|
} |
545
|
|
|
} |
546
|
|
|
|
547
|
|
|
/** |
548
|
|
|
* @method string getUserId() |
549
|
|
|
* @method string getTemplateId() |
550
|
|
|
*/ |
551
|
|
|
class DeleteFaceVideoTemplate extends Rpc |
552
|
|
|
{ |
553
|
|
|
|
554
|
|
|
/** |
555
|
|
|
* @param string $value |
556
|
|
|
* |
557
|
|
|
* @return $this |
558
|
|
|
*/ |
559
|
|
|
public function withUserId($value) |
560
|
|
|
{ |
561
|
|
|
$this->data['UserId'] = $value; |
562
|
|
|
$this->options['form_params']['UserId'] = $value; |
563
|
|
|
|
564
|
|
|
return $this; |
565
|
|
|
} |
566
|
|
|
|
567
|
|
|
/** |
568
|
|
|
* @param string $value |
569
|
|
|
* |
570
|
|
|
* @return $this |
571
|
|
|
*/ |
572
|
|
|
public function withTemplateId($value) |
573
|
|
|
{ |
574
|
|
|
$this->data['TemplateId'] = $value; |
575
|
|
|
$this->options['form_params']['TemplateId'] = $value; |
576
|
|
|
|
577
|
|
|
return $this; |
578
|
|
|
} |
579
|
|
|
} |
580
|
|
|
|
581
|
|
|
/** |
582
|
|
|
* @method string getAsync() |
583
|
|
|
* @method string getVideoUrl() |
584
|
|
|
*/ |
585
|
|
|
class EnhancePortraitVideo extends Rpc |
586
|
|
|
{ |
587
|
|
|
|
588
|
|
|
/** |
589
|
|
|
* @param string $value |
590
|
|
|
* |
591
|
|
|
* @return $this |
592
|
|
|
*/ |
593
|
|
|
public function withAsync($value) |
594
|
|
|
{ |
595
|
|
|
$this->data['Async'] = $value; |
596
|
|
|
$this->options['form_params']['Async'] = $value; |
597
|
|
|
|
598
|
|
|
return $this; |
599
|
|
|
} |
600
|
|
|
|
601
|
|
|
/** |
602
|
|
|
* @param string $value |
603
|
|
|
* |
604
|
|
|
* @return $this |
605
|
|
|
*/ |
606
|
|
|
public function withVideoUrl($value) |
607
|
|
|
{ |
608
|
|
|
$this->data['VideoUrl'] = $value; |
609
|
|
|
$this->options['form_params']['VideoUrl'] = $value; |
610
|
|
|
|
611
|
|
|
return $this; |
612
|
|
|
} |
613
|
|
|
} |
614
|
|
|
|
615
|
|
|
/** |
616
|
|
|
* @method string getHDRFormat() |
617
|
|
|
* @method string getFrameRate() |
618
|
|
|
* @method string getMaxIlluminance() |
619
|
|
|
* @method string getBitrate() |
620
|
|
|
* @method string getOutPutWidth() |
621
|
|
|
* @method string getOutPutHeight() |
622
|
|
|
* @method string getAsync() |
623
|
|
|
* @method string getVideoURL() |
624
|
|
|
*/ |
625
|
|
|
class EnhanceVideoQuality extends Rpc |
626
|
|
|
{ |
627
|
|
|
|
628
|
|
|
/** |
629
|
|
|
* @param string $value |
630
|
|
|
* |
631
|
|
|
* @return $this |
632
|
|
|
*/ |
633
|
|
|
public function withHDRFormat($value) |
634
|
|
|
{ |
635
|
|
|
$this->data['HDRFormat'] = $value; |
636
|
|
|
$this->options['form_params']['HDRFormat'] = $value; |
637
|
|
|
|
638
|
|
|
return $this; |
639
|
|
|
} |
640
|
|
|
|
641
|
|
|
/** |
642
|
|
|
* @param string $value |
643
|
|
|
* |
644
|
|
|
* @return $this |
645
|
|
|
*/ |
646
|
|
|
public function withFrameRate($value) |
647
|
|
|
{ |
648
|
|
|
$this->data['FrameRate'] = $value; |
649
|
|
|
$this->options['form_params']['FrameRate'] = $value; |
650
|
|
|
|
651
|
|
|
return $this; |
652
|
|
|
} |
653
|
|
|
|
654
|
|
|
/** |
655
|
|
|
* @param string $value |
656
|
|
|
* |
657
|
|
|
* @return $this |
658
|
|
|
*/ |
659
|
|
|
public function withMaxIlluminance($value) |
660
|
|
|
{ |
661
|
|
|
$this->data['MaxIlluminance'] = $value; |
662
|
|
|
$this->options['form_params']['MaxIlluminance'] = $value; |
663
|
|
|
|
664
|
|
|
return $this; |
665
|
|
|
} |
666
|
|
|
|
667
|
|
|
/** |
668
|
|
|
* @param string $value |
669
|
|
|
* |
670
|
|
|
* @return $this |
671
|
|
|
*/ |
672
|
|
|
public function withBitrate($value) |
673
|
|
|
{ |
674
|
|
|
$this->data['Bitrate'] = $value; |
675
|
|
|
$this->options['form_params']['Bitrate'] = $value; |
676
|
|
|
|
677
|
|
|
return $this; |
678
|
|
|
} |
679
|
|
|
|
680
|
|
|
/** |
681
|
|
|
* @param string $value |
682
|
|
|
* |
683
|
|
|
* @return $this |
684
|
|
|
*/ |
685
|
|
|
public function withOutPutWidth($value) |
686
|
|
|
{ |
687
|
|
|
$this->data['OutPutWidth'] = $value; |
688
|
|
|
$this->options['form_params']['OutPutWidth'] = $value; |
689
|
|
|
|
690
|
|
|
return $this; |
691
|
|
|
} |
692
|
|
|
|
693
|
|
|
/** |
694
|
|
|
* @param string $value |
695
|
|
|
* |
696
|
|
|
* @return $this |
697
|
|
|
*/ |
698
|
|
|
public function withOutPutHeight($value) |
699
|
|
|
{ |
700
|
|
|
$this->data['OutPutHeight'] = $value; |
701
|
|
|
$this->options['form_params']['OutPutHeight'] = $value; |
702
|
|
|
|
703
|
|
|
return $this; |
704
|
|
|
} |
705
|
|
|
|
706
|
|
|
/** |
707
|
|
|
* @param string $value |
708
|
|
|
* |
709
|
|
|
* @return $this |
710
|
|
|
*/ |
711
|
|
|
public function withAsync($value) |
712
|
|
|
{ |
713
|
|
|
$this->data['Async'] = $value; |
714
|
|
|
$this->options['form_params']['Async'] = $value; |
715
|
|
|
|
716
|
|
|
return $this; |
717
|
|
|
} |
718
|
|
|
|
719
|
|
|
/** |
720
|
|
|
* @param string $value |
721
|
|
|
* |
722
|
|
|
* @return $this |
723
|
|
|
*/ |
724
|
|
|
public function withVideoURL($value) |
725
|
|
|
{ |
726
|
|
|
$this->data['VideoURL'] = $value; |
727
|
|
|
$this->options['form_params']['VideoURL'] = $value; |
728
|
|
|
|
729
|
|
|
return $this; |
730
|
|
|
} |
731
|
|
|
} |
732
|
|
|
|
733
|
|
|
/** |
734
|
|
|
* @method array getBoxes() |
735
|
|
|
* @method string getAsync() |
736
|
|
|
* @method string getVideoUrl() |
737
|
|
|
*/ |
738
|
|
|
class EraseVideoLogo extends Rpc |
739
|
|
|
{ |
740
|
|
|
|
741
|
|
|
/** |
742
|
|
|
* @param array $boxes |
743
|
|
|
* |
744
|
|
|
* @return $this |
745
|
|
|
*/ |
746
|
|
|
public function withBoxes(array $boxes) |
747
|
|
|
{ |
748
|
|
|
$this->data['Boxes'] = $boxes; |
749
|
|
|
foreach ($boxes as $depth1 => $depth1Value) { |
750
|
|
|
if(isset($depth1Value['W'])){ |
751
|
|
|
$this->options['form_params']['Boxes.' . ($depth1 + 1) . '.W'] = $depth1Value['W']; |
752
|
|
|
} |
753
|
|
|
if(isset($depth1Value['H'])){ |
754
|
|
|
$this->options['form_params']['Boxes.' . ($depth1 + 1) . '.H'] = $depth1Value['H']; |
755
|
|
|
} |
756
|
|
|
if(isset($depth1Value['X'])){ |
757
|
|
|
$this->options['form_params']['Boxes.' . ($depth1 + 1) . '.X'] = $depth1Value['X']; |
758
|
|
|
} |
759
|
|
|
if(isset($depth1Value['Y'])){ |
760
|
|
|
$this->options['form_params']['Boxes.' . ($depth1 + 1) . '.Y'] = $depth1Value['Y']; |
761
|
|
|
} |
762
|
|
|
} |
763
|
|
|
|
764
|
|
|
return $this; |
765
|
|
|
} |
766
|
|
|
|
767
|
|
|
/** |
768
|
|
|
* @param string $value |
769
|
|
|
* |
770
|
|
|
* @return $this |
771
|
|
|
*/ |
772
|
|
|
public function withAsync($value) |
773
|
|
|
{ |
774
|
|
|
$this->data['Async'] = $value; |
775
|
|
|
$this->options['form_params']['Async'] = $value; |
776
|
|
|
|
777
|
|
|
return $this; |
778
|
|
|
} |
779
|
|
|
|
780
|
|
|
/** |
781
|
|
|
* @param string $value |
782
|
|
|
* |
783
|
|
|
* @return $this |
784
|
|
|
*/ |
785
|
|
|
public function withVideoUrl($value) |
786
|
|
|
{ |
787
|
|
|
$this->data['VideoUrl'] = $value; |
788
|
|
|
$this->options['form_params']['VideoUrl'] = $value; |
789
|
|
|
|
790
|
|
|
return $this; |
791
|
|
|
} |
792
|
|
|
} |
793
|
|
|
|
794
|
|
|
/** |
795
|
|
|
* @method string getBH() |
796
|
|
|
* @method string getBW() |
797
|
|
|
* @method string getBX() |
798
|
|
|
* @method string getBY() |
799
|
|
|
* @method string getAsync() |
800
|
|
|
* @method string getVideoUrl() |
801
|
|
|
*/ |
802
|
|
|
class EraseVideoSubtitles extends Rpc |
803
|
|
|
{ |
804
|
|
|
|
805
|
|
|
/** |
806
|
|
|
* @param string $value |
807
|
|
|
* |
808
|
|
|
* @return $this |
809
|
|
|
*/ |
810
|
|
|
public function withBH($value) |
811
|
|
|
{ |
812
|
|
|
$this->data['BH'] = $value; |
813
|
|
|
$this->options['form_params']['BH'] = $value; |
814
|
|
|
|
815
|
|
|
return $this; |
816
|
|
|
} |
817
|
|
|
|
818
|
|
|
/** |
819
|
|
|
* @param string $value |
820
|
|
|
* |
821
|
|
|
* @return $this |
822
|
|
|
*/ |
823
|
|
|
public function withBW($value) |
824
|
|
|
{ |
825
|
|
|
$this->data['BW'] = $value; |
826
|
|
|
$this->options['form_params']['BW'] = $value; |
827
|
|
|
|
828
|
|
|
return $this; |
829
|
|
|
} |
830
|
|
|
|
831
|
|
|
/** |
832
|
|
|
* @param string $value |
833
|
|
|
* |
834
|
|
|
* @return $this |
835
|
|
|
*/ |
836
|
|
|
public function withBX($value) |
837
|
|
|
{ |
838
|
|
|
$this->data['BX'] = $value; |
839
|
|
|
$this->options['form_params']['BX'] = $value; |
840
|
|
|
|
841
|
|
|
return $this; |
842
|
|
|
} |
843
|
|
|
|
844
|
|
|
/** |
845
|
|
|
* @param string $value |
846
|
|
|
* |
847
|
|
|
* @return $this |
848
|
|
|
*/ |
849
|
|
|
public function withBY($value) |
850
|
|
|
{ |
851
|
|
|
$this->data['BY'] = $value; |
852
|
|
|
$this->options['form_params']['BY'] = $value; |
853
|
|
|
|
854
|
|
|
return $this; |
855
|
|
|
} |
856
|
|
|
|
857
|
|
|
/** |
858
|
|
|
* @param string $value |
859
|
|
|
* |
860
|
|
|
* @return $this |
861
|
|
|
*/ |
862
|
|
|
public function withAsync($value) |
863
|
|
|
{ |
864
|
|
|
$this->data['Async'] = $value; |
865
|
|
|
$this->options['form_params']['Async'] = $value; |
866
|
|
|
|
867
|
|
|
return $this; |
868
|
|
|
} |
869
|
|
|
|
870
|
|
|
/** |
871
|
|
|
* @param string $value |
872
|
|
|
* |
873
|
|
|
* @return $this |
874
|
|
|
*/ |
875
|
|
|
public function withVideoUrl($value) |
876
|
|
|
{ |
877
|
|
|
$this->data['VideoUrl'] = $value; |
878
|
|
|
$this->options['form_params']['VideoUrl'] = $value; |
879
|
|
|
|
880
|
|
|
return $this; |
881
|
|
|
} |
882
|
|
|
} |
883
|
|
|
|
884
|
|
|
/** |
885
|
|
|
* @method string getCartoonStyle() |
886
|
|
|
* @method string getAsync() |
887
|
|
|
* @method string getVideoUrl() |
888
|
|
|
*/ |
889
|
|
|
class GenerateHumanAnimeStyleVideo extends Rpc |
890
|
|
|
{ |
891
|
|
|
|
892
|
|
|
/** |
893
|
|
|
* @param string $value |
894
|
|
|
* |
895
|
|
|
* @return $this |
896
|
|
|
*/ |
897
|
|
|
public function withCartoonStyle($value) |
898
|
|
|
{ |
899
|
|
|
$this->data['CartoonStyle'] = $value; |
900
|
|
|
$this->options['form_params']['CartoonStyle'] = $value; |
901
|
|
|
|
902
|
|
|
return $this; |
903
|
|
|
} |
904
|
|
|
|
905
|
|
|
/** |
906
|
|
|
* @param string $value |
907
|
|
|
* |
908
|
|
|
* @return $this |
909
|
|
|
*/ |
910
|
|
|
public function withAsync($value) |
911
|
|
|
{ |
912
|
|
|
$this->data['Async'] = $value; |
913
|
|
|
$this->options['form_params']['Async'] = $value; |
914
|
|
|
|
915
|
|
|
return $this; |
916
|
|
|
} |
917
|
|
|
|
918
|
|
|
/** |
919
|
|
|
* @param string $value |
920
|
|
|
* |
921
|
|
|
* @return $this |
922
|
|
|
*/ |
923
|
|
|
public function withVideoUrl($value) |
924
|
|
|
{ |
925
|
|
|
$this->data['VideoUrl'] = $value; |
926
|
|
|
$this->options['form_params']['VideoUrl'] = $value; |
927
|
|
|
|
928
|
|
|
return $this; |
929
|
|
|
} |
930
|
|
|
} |
931
|
|
|
|
932
|
|
|
/** |
933
|
|
|
* @method string getTransitionStyle() |
934
|
|
|
* @method string getScene() |
935
|
|
|
* @method string getDuration() |
936
|
|
|
* @method string getPuzzleEffect() |
937
|
|
|
* @method string getHeight() |
938
|
|
|
* @method string getDurationAdaption() |
939
|
|
|
* @method array getFileList() |
940
|
|
|
* @method string getMute() |
941
|
|
|
* @method string getAsync() |
942
|
|
|
* @method string getSmartEffect() |
943
|
|
|
* @method string getWidth() |
944
|
|
|
* @method string getStyle() |
945
|
|
|
*/ |
946
|
|
|
class GenerateVideo extends Rpc |
947
|
|
|
{ |
948
|
|
|
|
949
|
|
|
/** |
950
|
|
|
* @param string $value |
951
|
|
|
* |
952
|
|
|
* @return $this |
953
|
|
|
*/ |
954
|
|
|
public function withTransitionStyle($value) |
955
|
|
|
{ |
956
|
|
|
$this->data['TransitionStyle'] = $value; |
957
|
|
|
$this->options['form_params']['TransitionStyle'] = $value; |
958
|
|
|
|
959
|
|
|
return $this; |
960
|
|
|
} |
961
|
|
|
|
962
|
|
|
/** |
963
|
|
|
* @param string $value |
964
|
|
|
* |
965
|
|
|
* @return $this |
966
|
|
|
*/ |
967
|
|
|
public function withScene($value) |
968
|
|
|
{ |
969
|
|
|
$this->data['Scene'] = $value; |
970
|
|
|
$this->options['form_params']['Scene'] = $value; |
971
|
|
|
|
972
|
|
|
return $this; |
973
|
|
|
} |
974
|
|
|
|
975
|
|
|
/** |
976
|
|
|
* @param string $value |
977
|
|
|
* |
978
|
|
|
* @return $this |
979
|
|
|
*/ |
980
|
|
|
public function withDuration($value) |
981
|
|
|
{ |
982
|
|
|
$this->data['Duration'] = $value; |
983
|
|
|
$this->options['form_params']['Duration'] = $value; |
984
|
|
|
|
985
|
|
|
return $this; |
986
|
|
|
} |
987
|
|
|
|
988
|
|
|
/** |
989
|
|
|
* @param string $value |
990
|
|
|
* |
991
|
|
|
* @return $this |
992
|
|
|
*/ |
993
|
|
|
public function withPuzzleEffect($value) |
994
|
|
|
{ |
995
|
|
|
$this->data['PuzzleEffect'] = $value; |
996
|
|
|
$this->options['form_params']['PuzzleEffect'] = $value; |
997
|
|
|
|
998
|
|
|
return $this; |
999
|
|
|
} |
1000
|
|
|
|
1001
|
|
|
/** |
1002
|
|
|
* @param string $value |
1003
|
|
|
* |
1004
|
|
|
* @return $this |
1005
|
|
|
*/ |
1006
|
|
|
public function withHeight($value) |
1007
|
|
|
{ |
1008
|
|
|
$this->data['Height'] = $value; |
1009
|
|
|
$this->options['form_params']['Height'] = $value; |
1010
|
|
|
|
1011
|
|
|
return $this; |
1012
|
|
|
} |
1013
|
|
|
|
1014
|
|
|
/** |
1015
|
|
|
* @param string $value |
1016
|
|
|
* |
1017
|
|
|
* @return $this |
1018
|
|
|
*/ |
1019
|
|
|
public function withDurationAdaption($value) |
1020
|
|
|
{ |
1021
|
|
|
$this->data['DurationAdaption'] = $value; |
1022
|
|
|
$this->options['form_params']['DurationAdaption'] = $value; |
1023
|
|
|
|
1024
|
|
|
return $this; |
1025
|
|
|
} |
1026
|
|
|
|
1027
|
|
|
/** |
1028
|
|
|
* @param array $fileList |
1029
|
|
|
* |
1030
|
|
|
* @return $this |
1031
|
|
|
*/ |
1032
|
|
|
public function withFileList(array $fileList) |
1033
|
|
|
{ |
1034
|
|
|
$this->data['FileList'] = $fileList; |
1035
|
|
|
foreach ($fileList as $depth1 => $depth1Value) { |
1036
|
|
|
if(isset($depth1Value['FileName'])){ |
1037
|
|
|
$this->options['form_params']['FileList.' . ($depth1 + 1) . '.FileName'] = $depth1Value['FileName']; |
1038
|
|
|
} |
1039
|
|
|
if(isset($depth1Value['FileUrl'])){ |
1040
|
|
|
$this->options['form_params']['FileList.' . ($depth1 + 1) . '.FileUrl'] = $depth1Value['FileUrl']; |
1041
|
|
|
} |
1042
|
|
|
if(isset($depth1Value['Type'])){ |
1043
|
|
|
$this->options['form_params']['FileList.' . ($depth1 + 1) . '.Type'] = $depth1Value['Type']; |
1044
|
|
|
} |
1045
|
|
|
} |
1046
|
|
|
|
1047
|
|
|
return $this; |
1048
|
|
|
} |
1049
|
|
|
|
1050
|
|
|
/** |
1051
|
|
|
* @param string $value |
1052
|
|
|
* |
1053
|
|
|
* @return $this |
1054
|
|
|
*/ |
1055
|
|
|
public function withMute($value) |
1056
|
|
|
{ |
1057
|
|
|
$this->data['Mute'] = $value; |
1058
|
|
|
$this->options['form_params']['Mute'] = $value; |
1059
|
|
|
|
1060
|
|
|
return $this; |
1061
|
|
|
} |
1062
|
|
|
|
1063
|
|
|
/** |
1064
|
|
|
* @param string $value |
1065
|
|
|
* |
1066
|
|
|
* @return $this |
1067
|
|
|
*/ |
1068
|
|
|
public function withAsync($value) |
1069
|
|
|
{ |
1070
|
|
|
$this->data['Async'] = $value; |
1071
|
|
|
$this->options['form_params']['Async'] = $value; |
1072
|
|
|
|
1073
|
|
|
return $this; |
1074
|
|
|
} |
1075
|
|
|
|
1076
|
|
|
/** |
1077
|
|
|
* @param string $value |
1078
|
|
|
* |
1079
|
|
|
* @return $this |
1080
|
|
|
*/ |
1081
|
|
|
public function withSmartEffect($value) |
1082
|
|
|
{ |
1083
|
|
|
$this->data['SmartEffect'] = $value; |
1084
|
|
|
$this->options['form_params']['SmartEffect'] = $value; |
1085
|
|
|
|
1086
|
|
|
return $this; |
1087
|
|
|
} |
1088
|
|
|
|
1089
|
|
|
/** |
1090
|
|
|
* @param string $value |
1091
|
|
|
* |
1092
|
|
|
* @return $this |
1093
|
|
|
*/ |
1094
|
|
|
public function withWidth($value) |
1095
|
|
|
{ |
1096
|
|
|
$this->data['Width'] = $value; |
1097
|
|
|
$this->options['form_params']['Width'] = $value; |
1098
|
|
|
|
1099
|
|
|
return $this; |
1100
|
|
|
} |
1101
|
|
|
|
1102
|
|
|
/** |
1103
|
|
|
* @param string $value |
1104
|
|
|
* |
1105
|
|
|
* @return $this |
1106
|
|
|
*/ |
1107
|
|
|
public function withStyle($value) |
1108
|
|
|
{ |
1109
|
|
|
$this->data['Style'] = $value; |
1110
|
|
|
$this->options['form_params']['Style'] = $value; |
1111
|
|
|
|
1112
|
|
|
return $this; |
1113
|
|
|
} |
1114
|
|
|
} |
1115
|
|
|
|
1116
|
|
|
/** |
1117
|
|
|
* @method string getJobId() |
1118
|
|
|
* @method string getAsync() |
1119
|
|
|
*/ |
1120
|
|
|
class GetAsyncJobResult extends Rpc |
1121
|
|
|
{ |
1122
|
|
|
|
1123
|
|
|
/** |
1124
|
|
|
* @param string $value |
1125
|
|
|
* |
1126
|
|
|
* @return $this |
1127
|
|
|
*/ |
1128
|
|
|
public function withJobId($value) |
1129
|
|
|
{ |
1130
|
|
|
$this->data['JobId'] = $value; |
1131
|
|
|
$this->options['form_params']['JobId'] = $value; |
1132
|
|
|
|
1133
|
|
|
return $this; |
1134
|
|
|
} |
1135
|
|
|
|
1136
|
|
|
/** |
1137
|
|
|
* @param string $value |
1138
|
|
|
* |
1139
|
|
|
* @return $this |
1140
|
|
|
*/ |
1141
|
|
|
public function withAsync($value) |
1142
|
|
|
{ |
1143
|
|
|
$this->data['Async'] = $value; |
1144
|
|
|
$this->options['form_params']['Async'] = $value; |
1145
|
|
|
|
1146
|
|
|
return $this; |
1147
|
|
|
} |
1148
|
|
|
} |
1149
|
|
|
|
1150
|
|
|
/** |
1151
|
|
|
* @method string getFrameRate() |
1152
|
|
|
* @method string getBitrate() |
1153
|
|
|
* @method string getAsync() |
1154
|
|
|
* @method string getVideoURL() |
1155
|
|
|
*/ |
1156
|
|
|
class InterpolateVideoFrame extends Rpc |
1157
|
|
|
{ |
1158
|
|
|
|
1159
|
|
|
/** |
1160
|
|
|
* @param string $value |
1161
|
|
|
* |
1162
|
|
|
* @return $this |
1163
|
|
|
*/ |
1164
|
|
|
public function withFrameRate($value) |
1165
|
|
|
{ |
1166
|
|
|
$this->data['FrameRate'] = $value; |
1167
|
|
|
$this->options['form_params']['FrameRate'] = $value; |
1168
|
|
|
|
1169
|
|
|
return $this; |
1170
|
|
|
} |
1171
|
|
|
|
1172
|
|
|
/** |
1173
|
|
|
* @param string $value |
1174
|
|
|
* |
1175
|
|
|
* @return $this |
1176
|
|
|
*/ |
1177
|
|
|
public function withBitrate($value) |
1178
|
|
|
{ |
1179
|
|
|
$this->data['Bitrate'] = $value; |
1180
|
|
|
$this->options['form_params']['Bitrate'] = $value; |
1181
|
|
|
|
1182
|
|
|
return $this; |
1183
|
|
|
} |
1184
|
|
|
|
1185
|
|
|
/** |
1186
|
|
|
* @param string $value |
1187
|
|
|
* |
1188
|
|
|
* @return $this |
1189
|
|
|
*/ |
1190
|
|
|
public function withAsync($value) |
1191
|
|
|
{ |
1192
|
|
|
$this->data['Async'] = $value; |
1193
|
|
|
$this->options['form_params']['Async'] = $value; |
1194
|
|
|
|
1195
|
|
|
return $this; |
1196
|
|
|
} |
1197
|
|
|
|
1198
|
|
|
/** |
1199
|
|
|
* @param string $value |
1200
|
|
|
* |
1201
|
|
|
* @return $this |
1202
|
|
|
*/ |
1203
|
|
|
public function withVideoURL($value) |
1204
|
|
|
{ |
1205
|
|
|
$this->data['VideoURL'] = $value; |
1206
|
|
|
$this->options['form_params']['VideoURL'] = $value; |
1207
|
|
|
|
1208
|
|
|
return $this; |
1209
|
|
|
} |
1210
|
|
|
} |
1211
|
|
|
|
1212
|
|
|
/** |
1213
|
|
|
* @method string getReferenceURL() |
1214
|
|
|
* @method string getEnhance() |
1215
|
|
|
* @method string getPostURL() |
1216
|
|
|
* @method string getAsync() |
1217
|
|
|
* @method string getVideoURL() |
1218
|
|
|
* @method string getAddWatermark() |
1219
|
|
|
*/ |
1220
|
|
|
class MergeVideoFace extends Rpc |
1221
|
|
|
{ |
1222
|
|
|
|
1223
|
|
|
/** |
1224
|
|
|
* @param string $value |
1225
|
|
|
* |
1226
|
|
|
* @return $this |
1227
|
|
|
*/ |
1228
|
|
|
public function withReferenceURL($value) |
1229
|
|
|
{ |
1230
|
|
|
$this->data['ReferenceURL'] = $value; |
1231
|
|
|
$this->options['form_params']['ReferenceURL'] = $value; |
1232
|
|
|
|
1233
|
|
|
return $this; |
1234
|
|
|
} |
1235
|
|
|
|
1236
|
|
|
/** |
1237
|
|
|
* @param string $value |
1238
|
|
|
* |
1239
|
|
|
* @return $this |
1240
|
|
|
*/ |
1241
|
|
|
public function withEnhance($value) |
1242
|
|
|
{ |
1243
|
|
|
$this->data['Enhance'] = $value; |
1244
|
|
|
$this->options['form_params']['Enhance'] = $value; |
1245
|
|
|
|
1246
|
|
|
return $this; |
1247
|
|
|
} |
1248
|
|
|
|
1249
|
|
|
/** |
1250
|
|
|
* @param string $value |
1251
|
|
|
* |
1252
|
|
|
* @return $this |
1253
|
|
|
*/ |
1254
|
|
|
public function withPostURL($value) |
1255
|
|
|
{ |
1256
|
|
|
$this->data['PostURL'] = $value; |
1257
|
|
|
$this->options['form_params']['PostURL'] = $value; |
1258
|
|
|
|
1259
|
|
|
return $this; |
1260
|
|
|
} |
1261
|
|
|
|
1262
|
|
|
/** |
1263
|
|
|
* @param string $value |
1264
|
|
|
* |
1265
|
|
|
* @return $this |
1266
|
|
|
*/ |
1267
|
|
|
public function withAsync($value) |
1268
|
|
|
{ |
1269
|
|
|
$this->data['Async'] = $value; |
1270
|
|
|
$this->options['form_params']['Async'] = $value; |
1271
|
|
|
|
1272
|
|
|
return $this; |
1273
|
|
|
} |
1274
|
|
|
|
1275
|
|
|
/** |
1276
|
|
|
* @param string $value |
1277
|
|
|
* |
1278
|
|
|
* @return $this |
1279
|
|
|
*/ |
1280
|
|
|
public function withVideoURL($value) |
1281
|
|
|
{ |
1282
|
|
|
$this->data['VideoURL'] = $value; |
1283
|
|
|
$this->options['form_params']['VideoURL'] = $value; |
1284
|
|
|
|
1285
|
|
|
return $this; |
1286
|
|
|
} |
1287
|
|
|
|
1288
|
|
|
/** |
1289
|
|
|
* @param string $value |
1290
|
|
|
* |
1291
|
|
|
* @return $this |
1292
|
|
|
*/ |
1293
|
|
|
public function withAddWatermark($value) |
1294
|
|
|
{ |
1295
|
|
|
$this->data['AddWatermark'] = $value; |
1296
|
|
|
$this->options['form_params']['AddWatermark'] = $value; |
1297
|
|
|
|
1298
|
|
|
return $this; |
1299
|
|
|
} |
1300
|
|
|
} |
1301
|
|
|
|
1302
|
|
|
/** |
1303
|
|
|
* @method string getFaceImageURL() |
1304
|
|
|
* @method array getMergeInfos() |
1305
|
|
|
* @method string getUserId() |
1306
|
|
|
* @method string getEnhance() |
1307
|
|
|
* @method string getTemplateId() |
1308
|
|
|
* @method string getAsync() |
1309
|
|
|
* @method string getAddWatermark() |
1310
|
|
|
*/ |
1311
|
|
|
class MergeVideoModelFace extends Rpc |
1312
|
|
|
{ |
1313
|
|
|
|
1314
|
|
|
/** |
1315
|
|
|
* @param string $value |
1316
|
|
|
* |
1317
|
|
|
* @return $this |
1318
|
|
|
*/ |
1319
|
|
|
public function withFaceImageURL($value) |
1320
|
|
|
{ |
1321
|
|
|
$this->data['FaceImageURL'] = $value; |
1322
|
|
|
$this->options['form_params']['FaceImageURL'] = $value; |
1323
|
|
|
|
1324
|
|
|
return $this; |
1325
|
|
|
} |
1326
|
|
|
|
1327
|
|
|
/** |
1328
|
|
|
* @param array $mergeInfos |
1329
|
|
|
* |
1330
|
|
|
* @return $this |
1331
|
|
|
*/ |
1332
|
|
|
public function withMergeInfos(array $mergeInfos) |
1333
|
|
|
{ |
1334
|
|
|
$this->data['MergeInfos'] = $mergeInfos; |
1335
|
|
|
foreach ($mergeInfos as $depth1 => $depth1Value) { |
1336
|
|
|
if(isset($depth1Value['TemplateFaceURL'])){ |
1337
|
|
|
$this->options['form_params']['MergeInfos.' . ($depth1 + 1) . '.TemplateFaceURL'] = $depth1Value['TemplateFaceURL']; |
1338
|
|
|
} |
1339
|
|
|
if(isset($depth1Value['ImageURL'])){ |
1340
|
|
|
$this->options['form_params']['MergeInfos.' . ($depth1 + 1) . '.ImageURL'] = $depth1Value['ImageURL']; |
1341
|
|
|
} |
1342
|
|
|
if(isset($depth1Value['TemplateFaceID'])){ |
1343
|
|
|
$this->options['form_params']['MergeInfos.' . ($depth1 + 1) . '.TemplateFaceID'] = $depth1Value['TemplateFaceID']; |
1344
|
|
|
} |
1345
|
|
|
} |
1346
|
|
|
|
1347
|
|
|
return $this; |
1348
|
|
|
} |
1349
|
|
|
|
1350
|
|
|
/** |
1351
|
|
|
* @param string $value |
1352
|
|
|
* |
1353
|
|
|
* @return $this |
1354
|
|
|
*/ |
1355
|
|
|
public function withUserId($value) |
1356
|
|
|
{ |
1357
|
|
|
$this->data['UserId'] = $value; |
1358
|
|
|
$this->options['form_params']['UserId'] = $value; |
1359
|
|
|
|
1360
|
|
|
return $this; |
1361
|
|
|
} |
1362
|
|
|
|
1363
|
|
|
/** |
1364
|
|
|
* @param string $value |
1365
|
|
|
* |
1366
|
|
|
* @return $this |
1367
|
|
|
*/ |
1368
|
|
|
public function withEnhance($value) |
1369
|
|
|
{ |
1370
|
|
|
$this->data['Enhance'] = $value; |
1371
|
|
|
$this->options['form_params']['Enhance'] = $value; |
1372
|
|
|
|
1373
|
|
|
return $this; |
1374
|
|
|
} |
1375
|
|
|
|
1376
|
|
|
/** |
1377
|
|
|
* @param string $value |
1378
|
|
|
* |
1379
|
|
|
* @return $this |
1380
|
|
|
*/ |
1381
|
|
|
public function withTemplateId($value) |
1382
|
|
|
{ |
1383
|
|
|
$this->data['TemplateId'] = $value; |
1384
|
|
|
$this->options['form_params']['TemplateId'] = $value; |
1385
|
|
|
|
1386
|
|
|
return $this; |
1387
|
|
|
} |
1388
|
|
|
|
1389
|
|
|
/** |
1390
|
|
|
* @param string $value |
1391
|
|
|
* |
1392
|
|
|
* @return $this |
1393
|
|
|
*/ |
1394
|
|
|
public function withAsync($value) |
1395
|
|
|
{ |
1396
|
|
|
$this->data['Async'] = $value; |
1397
|
|
|
$this->options['form_params']['Async'] = $value; |
1398
|
|
|
|
1399
|
|
|
return $this; |
1400
|
|
|
} |
1401
|
|
|
|
1402
|
|
|
/** |
1403
|
|
|
* @param string $value |
1404
|
|
|
* |
1405
|
|
|
* @return $this |
1406
|
|
|
*/ |
1407
|
|
|
public function withAddWatermark($value) |
1408
|
|
|
{ |
1409
|
|
|
$this->data['AddWatermark'] = $value; |
1410
|
|
|
$this->options['form_params']['AddWatermark'] = $value; |
1411
|
|
|
|
1412
|
|
|
return $this; |
1413
|
|
|
} |
1414
|
|
|
} |
1415
|
|
|
|
1416
|
|
|
/** |
1417
|
|
|
* @method string getUserId() |
1418
|
|
|
* @method $this withUserId($value) |
1419
|
|
|
* @method string getTemplateId() |
1420
|
|
|
* @method $this withTemplateId($value) |
1421
|
|
|
*/ |
1422
|
|
|
class QueryFaceVideoTemplate extends Rpc |
1423
|
|
|
{ |
1424
|
|
|
} |
1425
|
|
|
|
1426
|
|
|
/** |
1427
|
|
|
* @method string getAsync() |
1428
|
|
|
* @method string getVideoUrl() |
1429
|
|
|
*/ |
1430
|
|
|
class ReduceVideoNoise extends Rpc |
1431
|
|
|
{ |
1432
|
|
|
|
1433
|
|
|
/** |
1434
|
|
|
* @param string $value |
1435
|
|
|
* |
1436
|
|
|
* @return $this |
1437
|
|
|
*/ |
1438
|
|
|
public function withAsync($value) |
1439
|
|
|
{ |
1440
|
|
|
$this->data['Async'] = $value; |
1441
|
|
|
$this->options['form_params']['Async'] = $value; |
1442
|
|
|
|
1443
|
|
|
return $this; |
1444
|
|
|
} |
1445
|
|
|
|
1446
|
|
|
/** |
1447
|
|
|
* @param string $value |
1448
|
|
|
* |
1449
|
|
|
* @return $this |
1450
|
|
|
*/ |
1451
|
|
|
public function withVideoUrl($value) |
1452
|
|
|
{ |
1453
|
|
|
$this->data['VideoUrl'] = $value; |
1454
|
|
|
$this->options['form_params']['VideoUrl'] = $value; |
1455
|
|
|
|
1456
|
|
|
return $this; |
1457
|
|
|
} |
1458
|
|
|
} |
1459
|
|
|
|
1460
|
|
|
/** |
1461
|
|
|
* @method string getBitRate() |
1462
|
|
|
* @method string getAsync() |
1463
|
|
|
* @method string getVideoUrl() |
1464
|
|
|
*/ |
1465
|
|
|
class SuperResolveVideo extends Rpc |
1466
|
|
|
{ |
1467
|
|
|
|
1468
|
|
|
/** |
1469
|
|
|
* @param string $value |
1470
|
|
|
* |
1471
|
|
|
* @return $this |
1472
|
|
|
*/ |
1473
|
|
|
public function withBitRate($value) |
1474
|
|
|
{ |
1475
|
|
|
$this->data['BitRate'] = $value; |
1476
|
|
|
$this->options['form_params']['BitRate'] = $value; |
1477
|
|
|
|
1478
|
|
|
return $this; |
1479
|
|
|
} |
1480
|
|
|
|
1481
|
|
|
/** |
1482
|
|
|
* @param string $value |
1483
|
|
|
* |
1484
|
|
|
* @return $this |
1485
|
|
|
*/ |
1486
|
|
|
public function withAsync($value) |
1487
|
|
|
{ |
1488
|
|
|
$this->data['Async'] = $value; |
1489
|
|
|
$this->options['form_params']['Async'] = $value; |
1490
|
|
|
|
1491
|
|
|
return $this; |
1492
|
|
|
} |
1493
|
|
|
|
1494
|
|
|
/** |
1495
|
|
|
* @param string $value |
1496
|
|
|
* |
1497
|
|
|
* @return $this |
1498
|
|
|
*/ |
1499
|
|
|
public function withVideoUrl($value) |
1500
|
|
|
{ |
1501
|
|
|
$this->data['VideoUrl'] = $value; |
1502
|
|
|
$this->options['form_params']['VideoUrl'] = $value; |
1503
|
|
|
|
1504
|
|
|
return $this; |
1505
|
|
|
} |
1506
|
|
|
} |
1507
|
|
|
|
1508
|
|
|
/** |
1509
|
|
|
* @method string getBitrate() |
1510
|
|
|
* @method string getRecolorModel() |
1511
|
|
|
* @method string getAsync() |
1512
|
|
|
* @method string getVideoURL() |
1513
|
|
|
*/ |
1514
|
|
|
class ToneSdrVideo extends Rpc |
1515
|
|
|
{ |
1516
|
|
|
|
1517
|
|
|
/** |
1518
|
|
|
* @param string $value |
1519
|
|
|
* |
1520
|
|
|
* @return $this |
1521
|
|
|
*/ |
1522
|
|
|
public function withBitrate($value) |
1523
|
|
|
{ |
1524
|
|
|
$this->data['Bitrate'] = $value; |
1525
|
|
|
$this->options['form_params']['Bitrate'] = $value; |
1526
|
|
|
|
1527
|
|
|
return $this; |
1528
|
|
|
} |
1529
|
|
|
|
1530
|
|
|
/** |
1531
|
|
|
* @param string $value |
1532
|
|
|
* |
1533
|
|
|
* @return $this |
1534
|
|
|
*/ |
1535
|
|
|
public function withRecolorModel($value) |
1536
|
|
|
{ |
1537
|
|
|
$this->data['RecolorModel'] = $value; |
1538
|
|
|
$this->options['form_params']['RecolorModel'] = $value; |
1539
|
|
|
|
1540
|
|
|
return $this; |
1541
|
|
|
} |
1542
|
|
|
|
1543
|
|
|
/** |
1544
|
|
|
* @param string $value |
1545
|
|
|
* |
1546
|
|
|
* @return $this |
1547
|
|
|
*/ |
1548
|
|
|
public function withAsync($value) |
1549
|
|
|
{ |
1550
|
|
|
$this->data['Async'] = $value; |
1551
|
|
|
$this->options['form_params']['Async'] = $value; |
1552
|
|
|
|
1553
|
|
|
return $this; |
1554
|
|
|
} |
1555
|
|
|
|
1556
|
|
|
/** |
1557
|
|
|
* @param string $value |
1558
|
|
|
* |
1559
|
|
|
* @return $this |
1560
|
|
|
*/ |
1561
|
|
|
public function withVideoURL($value) |
1562
|
|
|
{ |
1563
|
|
|
$this->data['VideoURL'] = $value; |
1564
|
|
|
$this->options['form_params']['VideoURL'] = $value; |
1565
|
|
|
|
1566
|
|
|
return $this; |
1567
|
|
|
} |
1568
|
|
|
} |
1569
|
|
|
|