Class: Azure::MediaServices::Mgmt::V2018_07_01::Models::JpgImage

Inherits:
Image
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2018-07-01/generated/azure_mgmt_media_services/models/jpg_image.rb

Overview

Describes the properties for producing a series of JPEG images from the input video.

Instance Attribute Summary collapse

Attributes inherited from Image

#range, #start, #step

Attributes inherited from Video

#key_frame_interval, #stretch_mode

Attributes inherited from Codec

#label

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeJpgImage

Returns a new instance of JpgImage.



17
18
19
# File 'lib/2018-07-01/generated/azure_mgmt_media_services/models/jpg_image.rb', line 17

def initialize
  @odatatype = "#Microsoft.Media.JpgImage"
end

Instance Attribute Details

#layersArray<JpgLayer>

be produced by the encoder.

Returns:

  • (Array<JpgLayer>)

    A collection of output JPEG image layers to



25
26
27
# File 'lib/2018-07-01/generated/azure_mgmt_media_services/models/jpg_image.rb', line 25

def layers
  @layers
end

#odatatypeObject

Returns the value of attribute odatatype.



21
22
23
# File 'lib/2018-07-01/generated/azure_mgmt_media_services/models/jpg_image.rb', line 21

def odatatype
  @odatatype
end

Class Method Details

.mapperObject

Mapper for JpgImage class as Ruby Hash. This will be used for serialization/deserialization.



32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
# File 'lib/2018-07-01/generated/azure_mgmt_media_services/models/jpg_image.rb', line 32

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: '#Microsoft.Media.JpgImage',
    type: {
      name: 'Composite',
      class_name: 'JpgImage',
      model_properties: {
        label: {
          client_side_validation: true,
          required: false,
          serialized_name: 'label',
          type: {
            name: 'String'
          }
        },
        odatatype: {
          client_side_validation: true,
          required: true,
          serialized_name: '@odata\\.type',
          type: {
            name: 'String'
          }
        },
        key_frame_interval: {
          client_side_validation: true,
          required: false,
          serialized_name: 'keyFrameInterval',
          type: {
            name: 'TimeSpan'
          }
        },
        stretch_mode: {
          client_side_validation: true,
          required: false,
          serialized_name: 'stretchMode',
          type: {
            name: 'String'
          }
        },
        start: {
          client_side_validation: true,
          required: true,
          serialized_name: 'start',
          type: {
            name: 'String'
          }
        },
        step: {
          client_side_validation: true,
          required: false,
          serialized_name: 'step',
          type: {
            name: 'String'
          }
        },
        range: {
          client_side_validation: true,
          required: false,
          serialized_name: 'range',
          type: {
            name: 'String'
          }
        },
        layers: {
          client_side_validation: true,
          required: false,
          serialized_name: 'layers',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'JpgLayerElementType',
                type: {
                  name: 'Composite',
                  class_name: 'JpgLayer'
                }
            }
          }
        }
      }
    }
  }
end