Skip to content

Commit ef684b8

Browse files
author
Jakub Kulhan
committed
autoupdated protocol.json & generated files
1 parent e9808a1 commit ef684b8

File tree

8 files changed

+489
-1
lines changed

8 files changed

+489
-1
lines changed

gen-src/ChromeDevtoolsProtocol/Model/SystemInfo/GPUInfo.php

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,27 @@ final class GPUInfo implements \JsonSerializable
3939
*/
4040
public $driverBugWorkarounds;
4141

42+
/**
43+
* Supported accelerated video decoding capabilities.
44+
*
45+
* @var VideoDecodeAcceleratorCapability[]
46+
*/
47+
public $videoDecoding;
48+
49+
/**
50+
* Supported accelerated video encoding capabilities.
51+
*
52+
* @var VideoEncodeAcceleratorCapability[]
53+
*/
54+
public $videoEncoding;
55+
56+
/**
57+
* Supported accelerated image decoding capabilities.
58+
*
59+
* @var ImageDecodeAcceleratorCapability[]
60+
*/
61+
public $imageDecoding;
62+
4263

4364
public static function fromJson($data)
4465
{
@@ -61,6 +82,24 @@ public static function fromJson($data)
6182
$instance->driverBugWorkarounds[] = (string)$item;
6283
}
6384
}
85+
if (isset($data->videoDecoding)) {
86+
$instance->videoDecoding = [];
87+
foreach ($data->videoDecoding as $item) {
88+
$instance->videoDecoding[] = VideoDecodeAcceleratorCapability::fromJson($item);
89+
}
90+
}
91+
if (isset($data->videoEncoding)) {
92+
$instance->videoEncoding = [];
93+
foreach ($data->videoEncoding as $item) {
94+
$instance->videoEncoding[] = VideoEncodeAcceleratorCapability::fromJson($item);
95+
}
96+
}
97+
if (isset($data->imageDecoding)) {
98+
$instance->imageDecoding = [];
99+
foreach ($data->imageDecoding as $item) {
100+
$instance->imageDecoding[] = ImageDecodeAcceleratorCapability::fromJson($item);
101+
}
102+
}
64103
return $instance;
65104
}
66105

@@ -86,6 +125,24 @@ public function jsonSerialize()
86125
$data->driverBugWorkarounds[] = $item;
87126
}
88127
}
128+
if ($this->videoDecoding !== null) {
129+
$data->videoDecoding = [];
130+
foreach ($this->videoDecoding as $item) {
131+
$data->videoDecoding[] = $item->jsonSerialize();
132+
}
133+
}
134+
if ($this->videoEncoding !== null) {
135+
$data->videoEncoding = [];
136+
foreach ($this->videoEncoding as $item) {
137+
$data->videoEncoding[] = $item->jsonSerialize();
138+
}
139+
}
140+
if ($this->imageDecoding !== null) {
141+
$data->imageDecoding = [];
142+
foreach ($this->imageDecoding as $item) {
143+
$data->imageDecoding[] = $item->jsonSerialize();
144+
}
145+
}
89146
return $data;
90147
}
91148
}
Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
<?php
2+
3+
namespace ChromeDevtoolsProtocol\Model\SystemInfo;
4+
5+
/**
6+
* Describes a supported image decoding profile with its associated minimum and maximum resolutions and subsampling.
7+
*
8+
* @generated This file has been auto-generated, do not edit.
9+
*
10+
* @author Jakub Kulhan <[email protected]>
11+
*/
12+
final class ImageDecodeAcceleratorCapability implements \JsonSerializable
13+
{
14+
/**
15+
* Image coded, e.g. Jpeg.
16+
*
17+
* @var string
18+
*/
19+
public $imageType;
20+
21+
/**
22+
* Maximum supported dimensions of the image in pixels.
23+
*
24+
* @var Size
25+
*/
26+
public $maxDimensions;
27+
28+
/**
29+
* Minimum supported dimensions of the image in pixels.
30+
*
31+
* @var Size
32+
*/
33+
public $minDimensions;
34+
35+
/**
36+
* Optional array of supported subsampling formats, e.g. 4:2:0, if known.
37+
*
38+
* @var string[]
39+
*/
40+
public $subsamplings;
41+
42+
43+
public static function fromJson($data)
44+
{
45+
$instance = new static();
46+
if (isset($data->imageType)) {
47+
$instance->imageType = (string)$data->imageType;
48+
}
49+
if (isset($data->maxDimensions)) {
50+
$instance->maxDimensions = Size::fromJson($data->maxDimensions);
51+
}
52+
if (isset($data->minDimensions)) {
53+
$instance->minDimensions = Size::fromJson($data->minDimensions);
54+
}
55+
if (isset($data->subsamplings)) {
56+
$instance->subsamplings = [];
57+
if (isset($data->subsamplings)) {
58+
$instance->subsamplings = [];
59+
foreach ($data->subsamplings as $item) {
60+
$instance->subsamplings[] = (string)$item;
61+
}
62+
}
63+
}
64+
return $instance;
65+
}
66+
67+
68+
public function jsonSerialize()
69+
{
70+
$data = new \stdClass();
71+
if ($this->imageType !== null) {
72+
$data->imageType = $this->imageType;
73+
}
74+
if ($this->maxDimensions !== null) {
75+
$data->maxDimensions = $this->maxDimensions->jsonSerialize();
76+
}
77+
if ($this->minDimensions !== null) {
78+
$data->minDimensions = $this->minDimensions->jsonSerialize();
79+
}
80+
if ($this->subsamplings !== null) {
81+
$data->subsamplings = [];
82+
if ($this->subsamplings !== null) {
83+
$data->subsamplings = [];
84+
foreach ($this->subsamplings as $item) {
85+
$data->subsamplings[] = $item;
86+
}
87+
}
88+
}
89+
return $data;
90+
}
91+
}
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
<?php
2+
3+
namespace ChromeDevtoolsProtocol\Model\SystemInfo;
4+
5+
/**
6+
* Describes the width and height dimensions of an entity.
7+
*
8+
* @generated This file has been auto-generated, do not edit.
9+
*
10+
* @author Jakub Kulhan <[email protected]>
11+
*/
12+
final class Size implements \JsonSerializable
13+
{
14+
/**
15+
* Width in pixels.
16+
*
17+
* @var int
18+
*/
19+
public $width;
20+
21+
/**
22+
* Height in pixels.
23+
*
24+
* @var int
25+
*/
26+
public $height;
27+
28+
29+
public static function fromJson($data)
30+
{
31+
$instance = new static();
32+
if (isset($data->width)) {
33+
$instance->width = (int)$data->width;
34+
}
35+
if (isset($data->height)) {
36+
$instance->height = (int)$data->height;
37+
}
38+
return $instance;
39+
}
40+
41+
42+
public function jsonSerialize()
43+
{
44+
$data = new \stdClass();
45+
if ($this->width !== null) {
46+
$data->width = $this->width;
47+
}
48+
if ($this->height !== null) {
49+
$data->height = $this->height;
50+
}
51+
return $data;
52+
}
53+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?php
2+
3+
namespace ChromeDevtoolsProtocol\Model\SystemInfo;
4+
5+
/**
6+
* YUV subsampling type of the pixels of a given image.
7+
*
8+
* @generated This file has been auto-generated, do not edit.
9+
*
10+
* @author Jakub Kulhan <[email protected]>
11+
*/
12+
final class SubsamplingFormatEnum
13+
{
14+
const YUV420 = 'yuv420';
15+
const YUV422 = 'yuv422';
16+
const YUV444 = 'yuv444';
17+
}
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
<?php
2+
3+
namespace ChromeDevtoolsProtocol\Model\SystemInfo;
4+
5+
/**
6+
* Describes a supported video decoding profile with its associated minimum and maximum resolutions.
7+
*
8+
* @generated This file has been auto-generated, do not edit.
9+
*
10+
* @author Jakub Kulhan <[email protected]>
11+
*/
12+
final class VideoDecodeAcceleratorCapability implements \JsonSerializable
13+
{
14+
/**
15+
* Video codec profile that is supported, e.g. VP9 Profile 2.
16+
*
17+
* @var string
18+
*/
19+
public $profile;
20+
21+
/**
22+
* Maximum video dimensions in pixels supported for this |profile|.
23+
*
24+
* @var Size
25+
*/
26+
public $maxResolution;
27+
28+
/**
29+
* Minimum video dimensions in pixels supported for this |profile|.
30+
*
31+
* @var Size
32+
*/
33+
public $minResolution;
34+
35+
36+
public static function fromJson($data)
37+
{
38+
$instance = new static();
39+
if (isset($data->profile)) {
40+
$instance->profile = (string)$data->profile;
41+
}
42+
if (isset($data->maxResolution)) {
43+
$instance->maxResolution = Size::fromJson($data->maxResolution);
44+
}
45+
if (isset($data->minResolution)) {
46+
$instance->minResolution = Size::fromJson($data->minResolution);
47+
}
48+
return $instance;
49+
}
50+
51+
52+
public function jsonSerialize()
53+
{
54+
$data = new \stdClass();
55+
if ($this->profile !== null) {
56+
$data->profile = $this->profile;
57+
}
58+
if ($this->maxResolution !== null) {
59+
$data->maxResolution = $this->maxResolution->jsonSerialize();
60+
}
61+
if ($this->minResolution !== null) {
62+
$data->minResolution = $this->minResolution->jsonSerialize();
63+
}
64+
return $data;
65+
}
66+
}
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
<?php
2+
3+
namespace ChromeDevtoolsProtocol\Model\SystemInfo;
4+
5+
/**
6+
* Describes a supported video encoding profile with its associated maximum resolution and maximum framerate.
7+
*
8+
* @generated This file has been auto-generated, do not edit.
9+
*
10+
* @author Jakub Kulhan <[email protected]>
11+
*/
12+
final class VideoEncodeAcceleratorCapability implements \JsonSerializable
13+
{
14+
/**
15+
* Video codec profile that is supported, e.g H264 Main.
16+
*
17+
* @var string
18+
*/
19+
public $profile;
20+
21+
/**
22+
* Maximum video dimensions in pixels supported for this |profile|.
23+
*
24+
* @var Size
25+
*/
26+
public $maxResolution;
27+
28+
/**
29+
* Maximum encoding framerate in frames per second supported for this |profile|, as fraction's numerator and denominator, e.g. 24/1 fps, 24000/1001 fps, etc.
30+
*
31+
* @var int
32+
*/
33+
public $maxFramerateNumerator;
34+
35+
/** @var int */
36+
public $maxFramerateDenominator;
37+
38+
39+
public static function fromJson($data)
40+
{
41+
$instance = new static();
42+
if (isset($data->profile)) {
43+
$instance->profile = (string)$data->profile;
44+
}
45+
if (isset($data->maxResolution)) {
46+
$instance->maxResolution = Size::fromJson($data->maxResolution);
47+
}
48+
if (isset($data->maxFramerateNumerator)) {
49+
$instance->maxFramerateNumerator = (int)$data->maxFramerateNumerator;
50+
}
51+
if (isset($data->maxFramerateDenominator)) {
52+
$instance->maxFramerateDenominator = (int)$data->maxFramerateDenominator;
53+
}
54+
return $instance;
55+
}
56+
57+
58+
public function jsonSerialize()
59+
{
60+
$data = new \stdClass();
61+
if ($this->profile !== null) {
62+
$data->profile = $this->profile;
63+
}
64+
if ($this->maxResolution !== null) {
65+
$data->maxResolution = $this->maxResolution->jsonSerialize();
66+
}
67+
if ($this->maxFramerateNumerator !== null) {
68+
$data->maxFramerateNumerator = $this->maxFramerateNumerator;
69+
}
70+
if ($this->maxFramerateDenominator !== null) {
71+
$data->maxFramerateDenominator = $this->maxFramerateDenominator;
72+
}
73+
return $data;
74+
}
75+
}

0 commit comments

Comments
 (0)