public class CommonMixLayoutParams extends AbstractModel
Constructor and Description |
---|
CommonMixLayoutParams() |
Modifier and Type | Method and Description |
---|---|
String |
getColor()
Get When `InputType` is 3 (canvas), this value indicates the canvas color.
|
Float |
getImageHeight()
Get Output height of input video image.
|
Long |
getImageLayer()
Get Input layer.
|
Float |
getImageWidth()
Get Output width of input video image.
|
Long |
getInputType()
Get Input type.
|
Float |
getLocationX()
Get X-axis offset of input in output video image.
|
Float |
getLocationY()
Get Y-axis offset of input in output video image.
|
Long |
getWatermarkId()
Get When `InputType` is 2 (image), this value is the watermark ID.
|
void |
setColor(String Color)
Set When `InputType` is 3 (canvas), this value indicates the canvas color.
|
void |
setImageHeight(Float ImageHeight)
Set Output height of input video image.
|
void |
setImageLayer(Long ImageLayer)
Set Input layer.
|
void |
setImageWidth(Float ImageWidth)
Set Output width of input video image.
|
void |
setInputType(Long InputType)
Set Input type.
|
void |
setLocationX(Float LocationX)
Set X-axis offset of input in output video image.
|
void |
setLocationY(Float LocationY)
Set Y-axis offset of input in output video image.
|
void |
setWatermarkId(Long WatermarkId)
Set When `InputType` is 2 (image), this value is the watermark ID.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public Long getImageLayer()
public void setImageLayer(Long ImageLayer)
ImageLayer
- Input layer. Value range: [1,16].
1) For `image_layer` of background stream (i.e., main host video image or canvas), enter 1.
2) For audio stream mix, this parameter is also required.public Long getInputType()
public void setInputType(Long InputType)
InputType
- Input type. Value range: [0,5].
If this parameter is left empty, 0 will be used by default.
0: the input stream is audio/video.
2: the input stream is image.
3: the input stream is canvas.
4: the input stream is audio.
5: the input stream is pure video.public Float getImageWidth()
public void setImageWidth(Float ImageWidth)
ImageWidth
- Output width of input video image. Value range:
Pixel: [0,2000]
Percentage: [0.01,0.99]
If this parameter is left empty, the input stream width will be used by default.
If percentage is used, the expected output is (percentage * background width).public Float getImageHeight()
public void setImageHeight(Float ImageHeight)
ImageHeight
- Output height of input video image. Value range:
Pixel: [0,2000]
Percentage: [0.01,0.99]
If this parameter is left empty, the input stream height will be used by default.
If percentage is used, the expected output is (percentage * background height).public Float getLocationX()
public void setLocationX(Float LocationX)
LocationX
- X-axis offset of input in output video image. Value range:
Pixel: [0,2000]
Percentage: [0.01,0.99]
If this parameter is left empty, 0 will be used by default.
Horizontal offset from the top-left corner of main host background video image.
If percentage is used, the expected output is (percentage * background width).public Float getLocationY()
public void setLocationY(Float LocationY)
LocationY
- Y-axis offset of input in output video image. Value range:
Pixel: [0,2000]
Percentage: [0.01,0.99]
If this parameter is left empty, 0 will be used by default.
Vertical offset from the top-left corner of main host background video image.
If percentage is used, the expected output is (percentage * background width)public String getColor()
public void setColor(String Color)
Color
- When `InputType` is 3 (canvas), this value indicates the canvas color.
Commonly used colors include:
Red: 0xcc0033.
Yellow: 0xcc9900.
Green: 0xcccc33.
Blue: 0x99CCFF.
Black: 0x000000.
White: 0xFFFFFF.
Gray: 0x999999public Long getWatermarkId()
public void setWatermarkId(Long WatermarkId)
WatermarkId
- When `InputType` is 2 (image), this value is the watermark ID.Copyright © 2020. All rights reserved.