[e3d4e0a] | 1 | <?php
|
---|
| 2 | /*
|
---|
| 3 | * Copyright 2014 Google Inc.
|
---|
| 4 | *
|
---|
| 5 | * Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
---|
| 6 | * use this file except in compliance with the License. You may obtain a copy of
|
---|
| 7 | * the License at
|
---|
| 8 | *
|
---|
| 9 | * http://www.apache.org/licenses/LICENSE-2.0
|
---|
| 10 | *
|
---|
| 11 | * Unless required by applicable law or agreed to in writing, software
|
---|
| 12 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
---|
| 13 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
---|
| 14 | * License for the specific language governing permissions and limitations under
|
---|
| 15 | * the License.
|
---|
| 16 | */
|
---|
| 17 |
|
---|
| 18 | namespace Google\Service\Transcoder;
|
---|
| 19 |
|
---|
| 20 | class H265CodecSettings extends \Google\Model
|
---|
| 21 | {
|
---|
| 22 | /**
|
---|
| 23 | * @var bool
|
---|
| 24 | */
|
---|
| 25 | public $allowOpenGop;
|
---|
| 26 | public $aqStrength;
|
---|
| 27 | /**
|
---|
| 28 | * @var int
|
---|
| 29 | */
|
---|
| 30 | public $bFrameCount;
|
---|
| 31 | /**
|
---|
| 32 | * @var bool
|
---|
| 33 | */
|
---|
| 34 | public $bPyramid;
|
---|
| 35 | /**
|
---|
| 36 | * @var int
|
---|
| 37 | */
|
---|
| 38 | public $bitrateBps;
|
---|
| 39 | /**
|
---|
| 40 | * @var int
|
---|
| 41 | */
|
---|
| 42 | public $crfLevel;
|
---|
| 43 | /**
|
---|
| 44 | * @var bool
|
---|
| 45 | */
|
---|
| 46 | public $enableTwoPass;
|
---|
| 47 | public $frameRate;
|
---|
| 48 | /**
|
---|
| 49 | * @var string
|
---|
| 50 | */
|
---|
| 51 | public $frameRateConversionStrategy;
|
---|
| 52 | /**
|
---|
| 53 | * @var string
|
---|
| 54 | */
|
---|
| 55 | public $gopDuration;
|
---|
| 56 | /**
|
---|
| 57 | * @var int
|
---|
| 58 | */
|
---|
| 59 | public $gopFrameCount;
|
---|
| 60 | protected $hdr10Type = H265ColorFormatHDR10::class;
|
---|
| 61 | protected $hdr10DataType = '';
|
---|
| 62 | /**
|
---|
| 63 | * @var int
|
---|
| 64 | */
|
---|
| 65 | public $heightPixels;
|
---|
| 66 | protected $hlgType = H265ColorFormatHLG::class;
|
---|
| 67 | protected $hlgDataType = '';
|
---|
| 68 | /**
|
---|
| 69 | * @var string
|
---|
| 70 | */
|
---|
| 71 | public $pixelFormat;
|
---|
| 72 | /**
|
---|
| 73 | * @var string
|
---|
| 74 | */
|
---|
| 75 | public $preset;
|
---|
| 76 | /**
|
---|
| 77 | * @var string
|
---|
| 78 | */
|
---|
| 79 | public $profile;
|
---|
| 80 | /**
|
---|
| 81 | * @var string
|
---|
| 82 | */
|
---|
| 83 | public $rateControlMode;
|
---|
| 84 | protected $sdrType = H265ColorFormatSDR::class;
|
---|
| 85 | protected $sdrDataType = '';
|
---|
| 86 | /**
|
---|
| 87 | * @var string
|
---|
| 88 | */
|
---|
| 89 | public $tune;
|
---|
| 90 | /**
|
---|
| 91 | * @var int
|
---|
| 92 | */
|
---|
| 93 | public $vbvFullnessBits;
|
---|
| 94 | /**
|
---|
| 95 | * @var int
|
---|
| 96 | */
|
---|
| 97 | public $vbvSizeBits;
|
---|
| 98 | /**
|
---|
| 99 | * @var int
|
---|
| 100 | */
|
---|
| 101 | public $widthPixels;
|
---|
| 102 |
|
---|
| 103 | /**
|
---|
| 104 | * @param bool
|
---|
| 105 | */
|
---|
| 106 | public function setAllowOpenGop($allowOpenGop)
|
---|
| 107 | {
|
---|
| 108 | $this->allowOpenGop = $allowOpenGop;
|
---|
| 109 | }
|
---|
| 110 | /**
|
---|
| 111 | * @return bool
|
---|
| 112 | */
|
---|
| 113 | public function getAllowOpenGop()
|
---|
| 114 | {
|
---|
| 115 | return $this->allowOpenGop;
|
---|
| 116 | }
|
---|
| 117 | public function setAqStrength($aqStrength)
|
---|
| 118 | {
|
---|
| 119 | $this->aqStrength = $aqStrength;
|
---|
| 120 | }
|
---|
| 121 | public function getAqStrength()
|
---|
| 122 | {
|
---|
| 123 | return $this->aqStrength;
|
---|
| 124 | }
|
---|
| 125 | /**
|
---|
| 126 | * @param int
|
---|
| 127 | */
|
---|
| 128 | public function setBFrameCount($bFrameCount)
|
---|
| 129 | {
|
---|
| 130 | $this->bFrameCount = $bFrameCount;
|
---|
| 131 | }
|
---|
| 132 | /**
|
---|
| 133 | * @return int
|
---|
| 134 | */
|
---|
| 135 | public function getBFrameCount()
|
---|
| 136 | {
|
---|
| 137 | return $this->bFrameCount;
|
---|
| 138 | }
|
---|
| 139 | /**
|
---|
| 140 | * @param bool
|
---|
| 141 | */
|
---|
| 142 | public function setBPyramid($bPyramid)
|
---|
| 143 | {
|
---|
| 144 | $this->bPyramid = $bPyramid;
|
---|
| 145 | }
|
---|
| 146 | /**
|
---|
| 147 | * @return bool
|
---|
| 148 | */
|
---|
| 149 | public function getBPyramid()
|
---|
| 150 | {
|
---|
| 151 | return $this->bPyramid;
|
---|
| 152 | }
|
---|
| 153 | /**
|
---|
| 154 | * @param int
|
---|
| 155 | */
|
---|
| 156 | public function setBitrateBps($bitrateBps)
|
---|
| 157 | {
|
---|
| 158 | $this->bitrateBps = $bitrateBps;
|
---|
| 159 | }
|
---|
| 160 | /**
|
---|
| 161 | * @return int
|
---|
| 162 | */
|
---|
| 163 | public function getBitrateBps()
|
---|
| 164 | {
|
---|
| 165 | return $this->bitrateBps;
|
---|
| 166 | }
|
---|
| 167 | /**
|
---|
| 168 | * @param int
|
---|
| 169 | */
|
---|
| 170 | public function setCrfLevel($crfLevel)
|
---|
| 171 | {
|
---|
| 172 | $this->crfLevel = $crfLevel;
|
---|
| 173 | }
|
---|
| 174 | /**
|
---|
| 175 | * @return int
|
---|
| 176 | */
|
---|
| 177 | public function getCrfLevel()
|
---|
| 178 | {
|
---|
| 179 | return $this->crfLevel;
|
---|
| 180 | }
|
---|
| 181 | /**
|
---|
| 182 | * @param bool
|
---|
| 183 | */
|
---|
| 184 | public function setEnableTwoPass($enableTwoPass)
|
---|
| 185 | {
|
---|
| 186 | $this->enableTwoPass = $enableTwoPass;
|
---|
| 187 | }
|
---|
| 188 | /**
|
---|
| 189 | * @return bool
|
---|
| 190 | */
|
---|
| 191 | public function getEnableTwoPass()
|
---|
| 192 | {
|
---|
| 193 | return $this->enableTwoPass;
|
---|
| 194 | }
|
---|
| 195 | public function setFrameRate($frameRate)
|
---|
| 196 | {
|
---|
| 197 | $this->frameRate = $frameRate;
|
---|
| 198 | }
|
---|
| 199 | public function getFrameRate()
|
---|
| 200 | {
|
---|
| 201 | return $this->frameRate;
|
---|
| 202 | }
|
---|
| 203 | /**
|
---|
| 204 | * @param string
|
---|
| 205 | */
|
---|
| 206 | public function setFrameRateConversionStrategy($frameRateConversionStrategy)
|
---|
| 207 | {
|
---|
| 208 | $this->frameRateConversionStrategy = $frameRateConversionStrategy;
|
---|
| 209 | }
|
---|
| 210 | /**
|
---|
| 211 | * @return string
|
---|
| 212 | */
|
---|
| 213 | public function getFrameRateConversionStrategy()
|
---|
| 214 | {
|
---|
| 215 | return $this->frameRateConversionStrategy;
|
---|
| 216 | }
|
---|
| 217 | /**
|
---|
| 218 | * @param string
|
---|
| 219 | */
|
---|
| 220 | public function setGopDuration($gopDuration)
|
---|
| 221 | {
|
---|
| 222 | $this->gopDuration = $gopDuration;
|
---|
| 223 | }
|
---|
| 224 | /**
|
---|
| 225 | * @return string
|
---|
| 226 | */
|
---|
| 227 | public function getGopDuration()
|
---|
| 228 | {
|
---|
| 229 | return $this->gopDuration;
|
---|
| 230 | }
|
---|
| 231 | /**
|
---|
| 232 | * @param int
|
---|
| 233 | */
|
---|
| 234 | public function setGopFrameCount($gopFrameCount)
|
---|
| 235 | {
|
---|
| 236 | $this->gopFrameCount = $gopFrameCount;
|
---|
| 237 | }
|
---|
| 238 | /**
|
---|
| 239 | * @return int
|
---|
| 240 | */
|
---|
| 241 | public function getGopFrameCount()
|
---|
| 242 | {
|
---|
| 243 | return $this->gopFrameCount;
|
---|
| 244 | }
|
---|
| 245 | /**
|
---|
| 246 | * @param H265ColorFormatHDR10
|
---|
| 247 | */
|
---|
| 248 | public function setHdr10(H265ColorFormatHDR10 $hdr10)
|
---|
| 249 | {
|
---|
| 250 | $this->hdr10 = $hdr10;
|
---|
| 251 | }
|
---|
| 252 | /**
|
---|
| 253 | * @return H265ColorFormatHDR10
|
---|
| 254 | */
|
---|
| 255 | public function getHdr10()
|
---|
| 256 | {
|
---|
| 257 | return $this->hdr10;
|
---|
| 258 | }
|
---|
| 259 | /**
|
---|
| 260 | * @param int
|
---|
| 261 | */
|
---|
| 262 | public function setHeightPixels($heightPixels)
|
---|
| 263 | {
|
---|
| 264 | $this->heightPixels = $heightPixels;
|
---|
| 265 | }
|
---|
| 266 | /**
|
---|
| 267 | * @return int
|
---|
| 268 | */
|
---|
| 269 | public function getHeightPixels()
|
---|
| 270 | {
|
---|
| 271 | return $this->heightPixels;
|
---|
| 272 | }
|
---|
| 273 | /**
|
---|
| 274 | * @param H265ColorFormatHLG
|
---|
| 275 | */
|
---|
| 276 | public function setHlg(H265ColorFormatHLG $hlg)
|
---|
| 277 | {
|
---|
| 278 | $this->hlg = $hlg;
|
---|
| 279 | }
|
---|
| 280 | /**
|
---|
| 281 | * @return H265ColorFormatHLG
|
---|
| 282 | */
|
---|
| 283 | public function getHlg()
|
---|
| 284 | {
|
---|
| 285 | return $this->hlg;
|
---|
| 286 | }
|
---|
| 287 | /**
|
---|
| 288 | * @param string
|
---|
| 289 | */
|
---|
| 290 | public function setPixelFormat($pixelFormat)
|
---|
| 291 | {
|
---|
| 292 | $this->pixelFormat = $pixelFormat;
|
---|
| 293 | }
|
---|
| 294 | /**
|
---|
| 295 | * @return string
|
---|
| 296 | */
|
---|
| 297 | public function getPixelFormat()
|
---|
| 298 | {
|
---|
| 299 | return $this->pixelFormat;
|
---|
| 300 | }
|
---|
| 301 | /**
|
---|
| 302 | * @param string
|
---|
| 303 | */
|
---|
| 304 | public function setPreset($preset)
|
---|
| 305 | {
|
---|
| 306 | $this->preset = $preset;
|
---|
| 307 | }
|
---|
| 308 | /**
|
---|
| 309 | * @return string
|
---|
| 310 | */
|
---|
| 311 | public function getPreset()
|
---|
| 312 | {
|
---|
| 313 | return $this->preset;
|
---|
| 314 | }
|
---|
| 315 | /**
|
---|
| 316 | * @param string
|
---|
| 317 | */
|
---|
| 318 | public function setProfile($profile)
|
---|
| 319 | {
|
---|
| 320 | $this->profile = $profile;
|
---|
| 321 | }
|
---|
| 322 | /**
|
---|
| 323 | * @return string
|
---|
| 324 | */
|
---|
| 325 | public function getProfile()
|
---|
| 326 | {
|
---|
| 327 | return $this->profile;
|
---|
| 328 | }
|
---|
| 329 | /**
|
---|
| 330 | * @param string
|
---|
| 331 | */
|
---|
| 332 | public function setRateControlMode($rateControlMode)
|
---|
| 333 | {
|
---|
| 334 | $this->rateControlMode = $rateControlMode;
|
---|
| 335 | }
|
---|
| 336 | /**
|
---|
| 337 | * @return string
|
---|
| 338 | */
|
---|
| 339 | public function getRateControlMode()
|
---|
| 340 | {
|
---|
| 341 | return $this->rateControlMode;
|
---|
| 342 | }
|
---|
| 343 | /**
|
---|
| 344 | * @param H265ColorFormatSDR
|
---|
| 345 | */
|
---|
| 346 | public function setSdr(H265ColorFormatSDR $sdr)
|
---|
| 347 | {
|
---|
| 348 | $this->sdr = $sdr;
|
---|
| 349 | }
|
---|
| 350 | /**
|
---|
| 351 | * @return H265ColorFormatSDR
|
---|
| 352 | */
|
---|
| 353 | public function getSdr()
|
---|
| 354 | {
|
---|
| 355 | return $this->sdr;
|
---|
| 356 | }
|
---|
| 357 | /**
|
---|
| 358 | * @param string
|
---|
| 359 | */
|
---|
| 360 | public function setTune($tune)
|
---|
| 361 | {
|
---|
| 362 | $this->tune = $tune;
|
---|
| 363 | }
|
---|
| 364 | /**
|
---|
| 365 | * @return string
|
---|
| 366 | */
|
---|
| 367 | public function getTune()
|
---|
| 368 | {
|
---|
| 369 | return $this->tune;
|
---|
| 370 | }
|
---|
| 371 | /**
|
---|
| 372 | * @param int
|
---|
| 373 | */
|
---|
| 374 | public function setVbvFullnessBits($vbvFullnessBits)
|
---|
| 375 | {
|
---|
| 376 | $this->vbvFullnessBits = $vbvFullnessBits;
|
---|
| 377 | }
|
---|
| 378 | /**
|
---|
| 379 | * @return int
|
---|
| 380 | */
|
---|
| 381 | public function getVbvFullnessBits()
|
---|
| 382 | {
|
---|
| 383 | return $this->vbvFullnessBits;
|
---|
| 384 | }
|
---|
| 385 | /**
|
---|
| 386 | * @param int
|
---|
| 387 | */
|
---|
| 388 | public function setVbvSizeBits($vbvSizeBits)
|
---|
| 389 | {
|
---|
| 390 | $this->vbvSizeBits = $vbvSizeBits;
|
---|
| 391 | }
|
---|
| 392 | /**
|
---|
| 393 | * @return int
|
---|
| 394 | */
|
---|
| 395 | public function getVbvSizeBits()
|
---|
| 396 | {
|
---|
| 397 | return $this->vbvSizeBits;
|
---|
| 398 | }
|
---|
| 399 | /**
|
---|
| 400 | * @param int
|
---|
| 401 | */
|
---|
| 402 | public function setWidthPixels($widthPixels)
|
---|
| 403 | {
|
---|
| 404 | $this->widthPixels = $widthPixels;
|
---|
| 405 | }
|
---|
| 406 | /**
|
---|
| 407 | * @return int
|
---|
| 408 | */
|
---|
| 409 | public function getWidthPixels()
|
---|
| 410 | {
|
---|
| 411 | return $this->widthPixels;
|
---|
| 412 | }
|
---|
| 413 | }
|
---|
| 414 |
|
---|
| 415 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
| 416 | class_alias(H265CodecSettings::class, 'Google_Service_Transcoder_H265CodecSettings');
|
---|