|
| 1 | +// This file has been automatically generated. Don't edit it. |
| 2 | + |
| 3 | +package inputs |
| 4 | + |
| 5 | +// Represents the request body for the GetInputDeinterlaceMode request. |
| 6 | +type GetInputDeinterlaceModeParams struct { |
| 7 | + // Name of the input |
| 8 | + InputName *string `json:"inputName,omitempty"` |
| 9 | + |
| 10 | + // UUID of the input |
| 11 | + InputUuid *string `json:"inputUuid,omitempty"` |
| 12 | +} |
| 13 | + |
| 14 | +func NewGetInputDeinterlaceModeParams() *GetInputDeinterlaceModeParams { |
| 15 | + return &GetInputDeinterlaceModeParams{} |
| 16 | +} |
| 17 | +func (o *GetInputDeinterlaceModeParams) WithInputName(x string) *GetInputDeinterlaceModeParams { |
| 18 | + o.InputName = &x |
| 19 | + return o |
| 20 | +} |
| 21 | +func (o *GetInputDeinterlaceModeParams) WithInputUuid(x string) *GetInputDeinterlaceModeParams { |
| 22 | + o.InputUuid = &x |
| 23 | + return o |
| 24 | +} |
| 25 | + |
| 26 | +// Returns the associated request. |
| 27 | +func (o *GetInputDeinterlaceModeParams) GetRequestName() string { |
| 28 | + return "GetInputDeinterlaceMode" |
| 29 | +} |
| 30 | + |
| 31 | +// Represents the response body for the GetInputDeinterlaceMode request. |
| 32 | +type GetInputDeinterlaceModeResponse struct { |
| 33 | + _response |
| 34 | + |
| 35 | + // Deinterlace mode of the input |
| 36 | + InputDeinterlaceMode string `json:"inputDeinterlaceMode,omitempty"` |
| 37 | +} |
| 38 | + |
| 39 | +/* |
| 40 | +Gets the deinterlace mode of an input. |
| 41 | +
|
| 42 | +Deinterlace Modes: |
| 43 | +
|
| 44 | +- `OBS_DEINTERLACE_MODE_DISABLE` |
| 45 | +- `OBS_DEINTERLACE_MODE_DISCARD` |
| 46 | +- `OBS_DEINTERLACE_MODE_RETRO` |
| 47 | +- `OBS_DEINTERLACE_MODE_BLEND` |
| 48 | +- `OBS_DEINTERLACE_MODE_BLEND_2X` |
| 49 | +- `OBS_DEINTERLACE_MODE_LINEAR` |
| 50 | +- `OBS_DEINTERLACE_MODE_LINEAR_2X` |
| 51 | +- `OBS_DEINTERLACE_MODE_YADIF` |
| 52 | +- `OBS_DEINTERLACE_MODE_YADIF_2X` |
| 53 | +
|
| 54 | +Note: Deinterlacing functionality is restricted to async inputs only. |
| 55 | +*/ |
| 56 | +func (c *Client) GetInputDeinterlaceMode( |
| 57 | + paramss ...*GetInputDeinterlaceModeParams, |
| 58 | +) (*GetInputDeinterlaceModeResponse, error) { |
| 59 | + if len(paramss) == 0 { |
| 60 | + paramss = []*GetInputDeinterlaceModeParams{{}} |
| 61 | + } |
| 62 | + params := paramss[0] |
| 63 | + data := &GetInputDeinterlaceModeResponse{} |
| 64 | + return data, c.client.SendRequest(params, data) |
| 65 | +} |
0 commit comments