videoenhan

package
v1.61.1038 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 20, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EndpointMap map[string]string

EndpointMap Endpoint Data

View Source
var EndpointType = "regional"

EndpointType regional or central

Functions

func GetEndpointMap

func GetEndpointMap() map[string]string

GetEndpointMap Get Endpoint Data Map

func GetEndpointType

func GetEndpointType() string

GetEndpointType Get Endpoint Type Value

func SetClientProperty

func SetClientProperty(client *Client, propertyName string, propertyValue interface{})

SetClientProperty Set Property by Reflect

func SetEndpointDataToClient

func SetEndpointDataToClient(client *Client)

SetEndpointDataToClient Set EndpointMap and ENdpointType

Types

type AbstractEcommerceVideoRequest

type AbstractEcommerceVideoRequest struct {
	*requests.RpcRequest
	Duration requests.Float   `position:"Body" name:"Duration"`
	Async    requests.Boolean `position:"Body" name:"Async"`
	VideoUrl string           `position:"Body" name:"VideoUrl"`
	Width    requests.Integer `position:"Body" name:"Width"`
	Height   requests.Integer `position:"Body" name:"Height"`
}

AbstractEcommerceVideoRequest is the request struct for api AbstractEcommerceVideo

func CreateAbstractEcommerceVideoRequest

func CreateAbstractEcommerceVideoRequest() (request *AbstractEcommerceVideoRequest)

CreateAbstractEcommerceVideoRequest creates a request to invoke AbstractEcommerceVideo API

type AbstractEcommerceVideoResponse

type AbstractEcommerceVideoResponse struct {
	*responses.BaseResponse
	RequestId string `json:"RequestId" xml:"RequestId"`
	Data      Data   `json:"Data" xml:"Data"`
}

AbstractEcommerceVideoResponse is the response struct for api AbstractEcommerceVideo

func CreateAbstractEcommerceVideoResponse

func CreateAbstractEcommerceVideoResponse() (response *AbstractEcommerceVideoResponse)

CreateAbstractEcommerceVideoResponse creates a response to parse from AbstractEcommerceVideo response

type AbstractFilmVideoRequest

type AbstractFilmVideoRequest struct {
	*requests.RpcRequest
	Length   requests.Integer `position:"Body" name:"Length"`
	Async    requests.Boolean `position:"Body" name:"Async"`
	VideoUrl string           `position:"Body" name:"VideoUrl"`
}

AbstractFilmVideoRequest is the request struct for api AbstractFilmVideo

func CreateAbstractFilmVideoRequest

func CreateAbstractFilmVideoRequest() (request *AbstractFilmVideoRequest)

CreateAbstractFilmVideoRequest creates a request to invoke AbstractFilmVideo API

type AbstractFilmVideoResponse

type AbstractFilmVideoResponse struct {
	*responses.BaseResponse
	RequestId string `json:"RequestId" xml:"RequestId"`
	Data      Data   `json:"Data" xml:"Data"`
}

AbstractFilmVideoResponse is the response struct for api AbstractFilmVideo

func CreateAbstractFilmVideoResponse

func CreateAbstractFilmVideoResponse() (response *AbstractFilmVideoResponse)

CreateAbstractFilmVideoResponse creates a response to parse from AbstractFilmVideo response

type AddFaceVideoTemplateRequest added in v1.61.1027

type AddFaceVideoTemplateRequest struct {
	*requests.RpcRequest
	UserId   string           `position:"Body" name:"UserId"`
	Async    requests.Boolean `position:"Body" name:"Async"`
	VideoURL string           `position:"Body" name:"VideoURL"`
}

AddFaceVideoTemplateRequest is the request struct for api AddFaceVideoTemplate

func CreateAddFaceVideoTemplateRequest added in v1.61.1027

func CreateAddFaceVideoTemplateRequest() (request *AddFaceVideoTemplateRequest)

CreateAddFaceVideoTemplateRequest creates a request to invoke AddFaceVideoTemplate API

type AddFaceVideoTemplateResponse added in v1.61.1027

type AddFaceVideoTemplateResponse struct {
	*responses.BaseResponse
	Message   string `json:"Message" xml:"Message"`
	RequestId string `json:"RequestId" xml:"RequestId"`
	Code      string `json:"Code" xml:"Code"`
	Date      Date   `json:"Date" xml:"Date"`
}

AddFaceVideoTemplateResponse is the response struct for api AddFaceVideoTemplate

func CreateAddFaceVideoTemplateResponse added in v1.61.1027

func CreateAddFaceVideoTemplateResponse() (response *AddFaceVideoTemplateResponse)

CreateAddFaceVideoTemplateResponse creates a response to parse from AddFaceVideoTemplate response

type AdjustVideoColorRequest

type AdjustVideoColorRequest struct {
	*requests.RpcRequest
	Mode         string           `position:"Body" name:"Mode"`
	Async        requests.Boolean `position:"Body" name:"Async"`
	VideoUrl     string           `position:"Body" name:"VideoUrl"`
	VideoBitrate requests.Integer `position:"Body" name:"VideoBitrate"`
	VideoCodec   string           `position:"Body" name:"VideoCodec"`
	VideoFormat  string           `position:"Body" name:"VideoFormat"`
}

AdjustVideoColorRequest is the request struct for api AdjustVideoColor

func CreateAdjustVideoColorRequest

func CreateAdjustVideoColorRequest() (request *AdjustVideoColorRequest)

CreateAdjustVideoColorRequest creates a request to invoke AdjustVideoColor API

type AdjustVideoColorResponse

type AdjustVideoColorResponse struct {
	*responses.BaseResponse
	RequestId string `json:"RequestId" xml:"RequestId"`
	Data      Data   `json:"Data" xml:"Data"`
}

AdjustVideoColorResponse is the response struct for api AdjustVideoColor

func CreateAdjustVideoColorResponse

func CreateAdjustVideoColorResponse() (response *AdjustVideoColorResponse)

CreateAdjustVideoColorResponse creates a response to parse from AdjustVideoColor response

type ChangeVideoSizeRequest

type ChangeVideoSizeRequest struct {
	*requests.RpcRequest
	Height    requests.Integer `position:"Body" name:"Height"`
	B         requests.Integer `position:"Body" name:"B"`
	FillType  string           `position:"Body" name:"FillType"`
	G         requests.Integer `position:"Body" name:"G"`
	CropType  string           `position:"Body" name:"CropType"`
	Async     requests.Boolean `position:"Body" name:"Async"`
	R         requests.Integer `position:"Body" name:"R"`
	VideoUrl  string           `position:"Body" name:"VideoUrl"`
	Width     requests.Integer `position:"Body" name:"Width"`
	Tightness requests.Float   `position:"Body" name:"Tightness"`
}

ChangeVideoSizeRequest is the request struct for api ChangeVideoSize

func CreateChangeVideoSizeRequest

func CreateChangeVideoSizeRequest() (request *ChangeVideoSizeRequest)

CreateChangeVideoSizeRequest creates a request to invoke ChangeVideoSize API

type ChangeVideoSizeResponse

type ChangeVideoSizeResponse struct {
	*responses.BaseResponse
	RequestId string `json:"RequestId" xml:"RequestId"`
	Data      Data   `json:"Data" xml:"Data"`
}

ChangeVideoSizeResponse is the response struct for api ChangeVideoSize

func CreateChangeVideoSizeResponse

func CreateChangeVideoSizeResponse() (response *ChangeVideoSizeResponse)

CreateChangeVideoSizeResponse creates a response to parse from ChangeVideoSize response

type Client

type Client struct {
	sdk.Client
}

Client is the sdk client struct, each func corresponds to an OpenAPI

func NewClient

func NewClient() (client *Client, err error)

NewClient creates a sdk client with environment variables

func NewClientWithAccessKey

func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error)

NewClientWithAccessKey is a shortcut to create sdk client with accesskey usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md

func NewClientWithEcsRamRole

func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client, err error)

NewClientWithEcsRamRole is a shortcut to create sdk client with ecs ram role usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md

func NewClientWithOptions

func NewClientWithOptions(regionId string, config *sdk.Config, credential auth.Credential) (client *Client, err error)

NewClientWithOptions creates a sdk client with regionId/sdkConfig/credential this is the common api to create a sdk client

func NewClientWithProvider

func NewClientWithProvider(regionId string, providers ...provider.Provider) (client *Client, err error)

NewClientWithProvider creates a sdk client with providers usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md

func NewClientWithRamRoleArn

func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error)

NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md

func NewClientWithRamRoleArnAndPolicy

func NewClientWithRamRoleArnAndPolicy(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName, policy string) (client *Client, err error)

NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn and policy usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md

func NewClientWithRsaKeyPair

func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error)

NewClientWithRsaKeyPair is a shortcut to create sdk client with rsa key pair usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md

func NewClientWithStsToken

func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error)

NewClientWithStsToken is a shortcut to create sdk client with sts token usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md

func (*Client) AbstractEcommerceVideo

func (client *Client) AbstractEcommerceVideo(request *AbstractEcommerceVideoRequest) (response *AbstractEcommerceVideoResponse, err error)

AbstractEcommerceVideo invokes the videoenhan.AbstractEcommerceVideo API synchronously

func (*Client) AbstractEcommerceVideoWithCallback

func (client *Client) AbstractEcommerceVideoWithCallback(request *AbstractEcommerceVideoRequest, callback func(response *AbstractEcommerceVideoResponse, err error)) <-chan int

AbstractEcommerceVideoWithCallback invokes the videoenhan.AbstractEcommerceVideo API asynchronously

func (*Client) AbstractEcommerceVideoWithChan

func (client *Client) AbstractEcommerceVideoWithChan(request *AbstractEcommerceVideoRequest) (<-chan *AbstractEcommerceVideoResponse, <-chan error)

AbstractEcommerceVideoWithChan invokes the videoenhan.AbstractEcommerceVideo API asynchronously

func (*Client) AbstractFilmVideo

func (client *Client) AbstractFilmVideo(request *AbstractFilmVideoRequest) (response *AbstractFilmVideoResponse, err error)

AbstractFilmVideo invokes the videoenhan.AbstractFilmVideo API synchronously

func (*Client) AbstractFilmVideoWithCallback

func (client *Client) AbstractFilmVideoWithCallback(request *AbstractFilmVideoRequest, callback func(response *AbstractFilmVideoResponse, err error)) <-chan int

AbstractFilmVideoWithCallback invokes the videoenhan.AbstractFilmVideo API asynchronously

func (*Client) AbstractFilmVideoWithChan

func (client *Client) AbstractFilmVideoWithChan(request *AbstractFilmVideoRequest) (<-chan *AbstractFilmVideoResponse, <-chan error)

AbstractFilmVideoWithChan invokes the videoenhan.AbstractFilmVideo API asynchronously

func (*Client) AddFaceVideoTemplate added in v1.61.1027

func (client *Client) AddFaceVideoTemplate(request *AddFaceVideoTemplateRequest) (response *AddFaceVideoTemplateResponse, err error)

AddFaceVideoTemplate invokes the videoenhan.AddFaceVideoTemplate API synchronously

func (*Client) AddFaceVideoTemplateWithCallback added in v1.61.1027

func (client *Client) AddFaceVideoTemplateWithCallback(request *AddFaceVideoTemplateRequest, callback func(response *AddFaceVideoTemplateResponse, err error)) <-chan int

AddFaceVideoTemplateWithCallback invokes the videoenhan.AddFaceVideoTemplate API asynchronously

func (*Client) AddFaceVideoTemplateWithChan added in v1.61.1027

func (client *Client) AddFaceVideoTemplateWithChan(request *AddFaceVideoTemplateRequest) (<-chan *AddFaceVideoTemplateResponse, <-chan error)

AddFaceVideoTemplateWithChan invokes the videoenhan.AddFaceVideoTemplate API asynchronously

func (*Client) AdjustVideoColor

func (client *Client) AdjustVideoColor(request *AdjustVideoColorRequest) (response *AdjustVideoColorResponse, err error)

AdjustVideoColor invokes the videoenhan.AdjustVideoColor API synchronously

func (*Client) AdjustVideoColorWithCallback

func (client *Client) AdjustVideoColorWithCallback(request *AdjustVideoColorRequest, callback func(response *AdjustVideoColorResponse, err error)) <-chan int

AdjustVideoColorWithCallback invokes the videoenhan.AdjustVideoColor API asynchronously

func (*Client) AdjustVideoColorWithChan

func (client *Client) AdjustVideoColorWithChan(request *AdjustVideoColorRequest) (<-chan *AdjustVideoColorResponse, <-chan error)

AdjustVideoColorWithChan invokes the videoenhan.AdjustVideoColor API asynchronously

func (*Client) ChangeVideoSize

func (client *Client) ChangeVideoSize(request *ChangeVideoSizeRequest) (response *ChangeVideoSizeResponse, err error)

ChangeVideoSize invokes the videoenhan.ChangeVideoSize API synchronously

func (*Client) ChangeVideoSizeWithCallback

func (client *Client) ChangeVideoSizeWithCallback(request *ChangeVideoSizeRequest, callback func(response *ChangeVideoSizeResponse, err error)) <-chan int

ChangeVideoSizeWithCallback invokes the videoenhan.ChangeVideoSize API asynchronously

func (*Client) ChangeVideoSizeWithChan

func (client *Client) ChangeVideoSizeWithChan(request *ChangeVideoSizeRequest) (<-chan *ChangeVideoSizeResponse, <-chan error)

ChangeVideoSizeWithChan invokes the videoenhan.ChangeVideoSize API asynchronously

func (*Client) ConvertHdrVideo added in v1.61.790

func (client *Client) ConvertHdrVideo(request *ConvertHdrVideoRequest) (response *ConvertHdrVideoResponse, err error)

ConvertHdrVideo invokes the videoenhan.ConvertHdrVideo API synchronously

func (*Client) ConvertHdrVideoWithCallback added in v1.61.790

func (client *Client) ConvertHdrVideoWithCallback(request *ConvertHdrVideoRequest, callback func(response *ConvertHdrVideoResponse, err error)) <-chan int

ConvertHdrVideoWithCallback invokes the videoenhan.ConvertHdrVideo API asynchronously

func (*Client) ConvertHdrVideoWithChan added in v1.61.790

func (client *Client) ConvertHdrVideoWithChan(request *ConvertHdrVideoRequest) (<-chan *ConvertHdrVideoResponse, <-chan error)

ConvertHdrVideoWithChan invokes the videoenhan.ConvertHdrVideo API asynchronously

func (*Client) DeleteFaceVideoTemplate added in v1.61.1027

func (client *Client) DeleteFaceVideoTemplate(request *DeleteFaceVideoTemplateRequest) (response *DeleteFaceVideoTemplateResponse, err error)

DeleteFaceVideoTemplate invokes the videoenhan.DeleteFaceVideoTemplate API synchronously

func (*Client) DeleteFaceVideoTemplateWithCallback added in v1.61.1027

func (client *Client) DeleteFaceVideoTemplateWithCallback(request *DeleteFaceVideoTemplateRequest, callback func(response *DeleteFaceVideoTemplateResponse, err error)) <-chan int

DeleteFaceVideoTemplateWithCallback invokes the videoenhan.DeleteFaceVideoTemplate API asynchronously

func (*Client) DeleteFaceVideoTemplateWithChan added in v1.61.1027

func (client *Client) DeleteFaceVideoTemplateWithChan(request *DeleteFaceVideoTemplateRequest) (<-chan *DeleteFaceVideoTemplateResponse, <-chan error)

DeleteFaceVideoTemplateWithChan invokes the videoenhan.DeleteFaceVideoTemplate API asynchronously

func (*Client) EnhanceVideoQuality added in v1.61.727

func (client *Client) EnhanceVideoQuality(request *EnhanceVideoQualityRequest) (response *EnhanceVideoQualityResponse, err error)

EnhanceVideoQuality invokes the videoenhan.EnhanceVideoQuality API synchronously

func (*Client) EnhanceVideoQualityWithCallback added in v1.61.727

func (client *Client) EnhanceVideoQualityWithCallback(request *EnhanceVideoQualityRequest, callback func(response *EnhanceVideoQualityResponse, err error)) <-chan int

EnhanceVideoQualityWithCallback invokes the videoenhan.EnhanceVideoQuality API asynchronously

func (*Client) EnhanceVideoQualityWithChan added in v1.61.727

func (client *Client) EnhanceVideoQualityWithChan(request *EnhanceVideoQualityRequest) (<-chan *EnhanceVideoQualityResponse, <-chan error)

EnhanceVideoQualityWithChan invokes the videoenhan.EnhanceVideoQuality API asynchronously

func (client *Client) EraseVideoLogo(request *EraseVideoLogoRequest) (response *EraseVideoLogoResponse, err error)

EraseVideoLogo invokes the videoenhan.EraseVideoLogo API synchronously

func (*Client) EraseVideoLogoWithCallback

func (client *Client) EraseVideoLogoWithCallback(request *EraseVideoLogoRequest, callback func(response *EraseVideoLogoResponse, err error)) <-chan int

EraseVideoLogoWithCallback invokes the videoenhan.EraseVideoLogo API asynchronously

func (*Client) EraseVideoLogoWithChan

func (client *Client) EraseVideoLogoWithChan(request *EraseVideoLogoRequest) (<-chan *EraseVideoLogoResponse, <-chan error)

EraseVideoLogoWithChan invokes the videoenhan.EraseVideoLogo API asynchronously

func (*Client) EraseVideoSubtitles

func (client *Client) EraseVideoSubtitles(request *EraseVideoSubtitlesRequest) (response *EraseVideoSubtitlesResponse, err error)

EraseVideoSubtitles invokes the videoenhan.EraseVideoSubtitles API synchronously

func (*Client) EraseVideoSubtitlesWithCallback

func (client *Client) EraseVideoSubtitlesWithCallback(request *EraseVideoSubtitlesRequest, callback func(response *EraseVideoSubtitlesResponse, err error)) <-chan int

EraseVideoSubtitlesWithCallback invokes the videoenhan.EraseVideoSubtitles API asynchronously

func (*Client) EraseVideoSubtitlesWithChan

func (client *Client) EraseVideoSubtitlesWithChan(request *EraseVideoSubtitlesRequest) (<-chan *EraseVideoSubtitlesResponse, <-chan error)

EraseVideoSubtitlesWithChan invokes the videoenhan.EraseVideoSubtitles API asynchronously

func (*Client) GenerateVideo

func (client *Client) GenerateVideo(request *GenerateVideoRequest) (response *GenerateVideoResponse, err error)

GenerateVideo invokes the videoenhan.GenerateVideo API synchronously

func (*Client) GenerateVideoWithCallback

func (client *Client) GenerateVideoWithCallback(request *GenerateVideoRequest, callback func(response *GenerateVideoResponse, err error)) <-chan int

GenerateVideoWithCallback invokes the videoenhan.GenerateVideo API asynchronously

func (*Client) GenerateVideoWithChan

func (client *Client) GenerateVideoWithChan(request *GenerateVideoRequest) (<-chan *GenerateVideoResponse, <-chan error)

GenerateVideoWithChan invokes the videoenhan.GenerateVideo API asynchronously

func (*Client) GetAsyncJobResult

func (client *Client) GetAsyncJobResult(request *GetAsyncJobResultRequest) (response *GetAsyncJobResultResponse, err error)

GetAsyncJobResult invokes the videoenhan.GetAsyncJobResult API synchronously

func (*Client) GetAsyncJobResultWithCallback

func (client *Client) GetAsyncJobResultWithCallback(request *GetAsyncJobResultRequest, callback func(response *GetAsyncJobResultResponse, err error)) <-chan int

GetAsyncJobResultWithCallback invokes the videoenhan.GetAsyncJobResult API asynchronously

func (*Client) GetAsyncJobResultWithChan

func (client *Client) GetAsyncJobResultWithChan(request *GetAsyncJobResultRequest) (<-chan *GetAsyncJobResultResponse, <-chan error)

GetAsyncJobResultWithChan invokes the videoenhan.GetAsyncJobResult API asynchronously

func (*Client) InterpolateVideoFrame added in v1.61.790

func (client *Client) InterpolateVideoFrame(request *InterpolateVideoFrameRequest) (response *InterpolateVideoFrameResponse, err error)

InterpolateVideoFrame invokes the videoenhan.InterpolateVideoFrame API synchronously

func (*Client) InterpolateVideoFrameWithCallback added in v1.61.790

func (client *Client) InterpolateVideoFrameWithCallback(request *InterpolateVideoFrameRequest, callback func(response *InterpolateVideoFrameResponse, err error)) <-chan int

InterpolateVideoFrameWithCallback invokes the videoenhan.InterpolateVideoFrame API asynchronously

func (*Client) InterpolateVideoFrameWithChan added in v1.61.790

func (client *Client) InterpolateVideoFrameWithChan(request *InterpolateVideoFrameRequest) (<-chan *InterpolateVideoFrameResponse, <-chan error)

InterpolateVideoFrameWithChan invokes the videoenhan.InterpolateVideoFrame API asynchronously

func (*Client) MergeVideoFace added in v1.61.727

func (client *Client) MergeVideoFace(request *MergeVideoFaceRequest) (response *MergeVideoFaceResponse, err error)

MergeVideoFace invokes the videoenhan.MergeVideoFace API synchronously

func (*Client) MergeVideoFaceWithCallback added in v1.61.727

func (client *Client) MergeVideoFaceWithCallback(request *MergeVideoFaceRequest, callback func(response *MergeVideoFaceResponse, err error)) <-chan int

MergeVideoFaceWithCallback invokes the videoenhan.MergeVideoFace API asynchronously

func (*Client) MergeVideoFaceWithChan added in v1.61.727

func (client *Client) MergeVideoFaceWithChan(request *MergeVideoFaceRequest) (<-chan *MergeVideoFaceResponse, <-chan error)

MergeVideoFaceWithChan invokes the videoenhan.MergeVideoFace API asynchronously

func (*Client) MergeVideoModelFace added in v1.61.1027

func (client *Client) MergeVideoModelFace(request *MergeVideoModelFaceRequest) (response *MergeVideoModelFaceResponse, err error)

MergeVideoModelFace invokes the videoenhan.MergeVideoModelFace API synchronously

func (*Client) MergeVideoModelFaceWithCallback added in v1.61.1027

func (client *Client) MergeVideoModelFaceWithCallback(request *MergeVideoModelFaceRequest, callback func(response *MergeVideoModelFaceResponse, err error)) <-chan int

MergeVideoModelFaceWithCallback invokes the videoenhan.MergeVideoModelFace API asynchronously

func (*Client) MergeVideoModelFaceWithChan added in v1.61.1027

func (client *Client) MergeVideoModelFaceWithChan(request *MergeVideoModelFaceRequest) (<-chan *MergeVideoModelFaceResponse, <-chan error)

MergeVideoModelFaceWithChan invokes the videoenhan.MergeVideoModelFace API asynchronously

func (*Client) QueryFaceVideoTemplate added in v1.61.1027

func (client *Client) QueryFaceVideoTemplate(request *QueryFaceVideoTemplateRequest) (response *QueryFaceVideoTemplateResponse, err error)

QueryFaceVideoTemplate invokes the videoenhan.QueryFaceVideoTemplate API synchronously

func (*Client) QueryFaceVideoTemplateWithCallback added in v1.61.1027

func (client *Client) QueryFaceVideoTemplateWithCallback(request *QueryFaceVideoTemplateRequest, callback func(response *QueryFaceVideoTemplateResponse, err error)) <-chan int

QueryFaceVideoTemplateWithCallback invokes the videoenhan.QueryFaceVideoTemplate API asynchronously

func (*Client) QueryFaceVideoTemplateWithChan added in v1.61.1027

func (client *Client) QueryFaceVideoTemplateWithChan(request *QueryFaceVideoTemplateRequest) (<-chan *QueryFaceVideoTemplateResponse, <-chan error)

QueryFaceVideoTemplateWithChan invokes the videoenhan.QueryFaceVideoTemplate API asynchronously

func (*Client) SuperResolveVideo

func (client *Client) SuperResolveVideo(request *SuperResolveVideoRequest) (response *SuperResolveVideoResponse, err error)

SuperResolveVideo invokes the videoenhan.SuperResolveVideo API synchronously

func (*Client) SuperResolveVideoWithCallback

func (client *Client) SuperResolveVideoWithCallback(request *SuperResolveVideoRequest, callback func(response *SuperResolveVideoResponse, err error)) <-chan int

SuperResolveVideoWithCallback invokes the videoenhan.SuperResolveVideo API asynchronously

func (*Client) SuperResolveVideoWithChan

func (client *Client) SuperResolveVideoWithChan(request *SuperResolveVideoRequest) (<-chan *SuperResolveVideoResponse, <-chan error)

SuperResolveVideoWithChan invokes the videoenhan.SuperResolveVideo API asynchronously

func (*Client) ToneSdrVideo added in v1.61.790

func (client *Client) ToneSdrVideo(request *ToneSdrVideoRequest) (response *ToneSdrVideoResponse, err error)

ToneSdrVideo invokes the videoenhan.ToneSdrVideo API synchronously

func (*Client) ToneSdrVideoWithCallback added in v1.61.790

func (client *Client) ToneSdrVideoWithCallback(request *ToneSdrVideoRequest, callback func(response *ToneSdrVideoResponse, err error)) <-chan int

ToneSdrVideoWithCallback invokes the videoenhan.ToneSdrVideo API asynchronously

func (*Client) ToneSdrVideoWithChan added in v1.61.790

func (client *Client) ToneSdrVideoWithChan(request *ToneSdrVideoRequest) (<-chan *ToneSdrVideoResponse, <-chan error)

ToneSdrVideoWithChan invokes the videoenhan.ToneSdrVideo API asynchronously

type ConvertHdrVideoRequest added in v1.61.790

type ConvertHdrVideoRequest struct {
	*requests.RpcRequest
	HDRFormat      string           `position:"Body" name:"HDRFormat"`
	MaxIlluminance requests.Integer `position:"Body" name:"MaxIlluminance"`
	Bitrate        requests.Integer `position:"Body" name:"Bitrate"`
	Async          requests.Boolean `position:"Body" name:"Async"`
	VideoURL       string           `position:"Body" name:"VideoURL"`
}

ConvertHdrVideoRequest is the request struct for api ConvertHdrVideo

func CreateConvertHdrVideoRequest added in v1.61.790

func CreateConvertHdrVideoRequest() (request *ConvertHdrVideoRequest)

CreateConvertHdrVideoRequest creates a request to invoke ConvertHdrVideo API

type ConvertHdrVideoResponse added in v1.61.790

type ConvertHdrVideoResponse struct {
	*responses.BaseResponse
	RequestId string `json:"RequestId" xml:"RequestId"`
	Data      Data   `json:"Data" xml:"Data"`
}

ConvertHdrVideoResponse is the response struct for api ConvertHdrVideo

func CreateConvertHdrVideoResponse added in v1.61.790

func CreateConvertHdrVideoResponse() (response *ConvertHdrVideoResponse)

CreateConvertHdrVideoResponse creates a response to parse from ConvertHdrVideo response

type Data

type Data struct {
	JobId         string         `json:"JobId" xml:"JobId"`
	Result        string         `json:"Result" xml:"Result"`
	ErrorMessage  string         `json:"ErrorMessage" xml:"ErrorMessage"`
	VideoCoverUrl string         `json:"VideoCoverUrl" xml:"VideoCoverUrl"`
	Status        string         `json:"Status" xml:"Status"`
	VideoUrl      string         `json:"VideoUrl" xml:"VideoUrl"`
	VideoURL      string         `json:"VideoURL" xml:"VideoURL"`
	ErrorCode     string         `json:"ErrorCode" xml:"ErrorCode"`
	Elements      []ElementsItem `json:"Elements" xml:"Elements"`
}

Data is a nested struct in videoenhan response

type Date added in v1.61.1027

type Date struct {
	TemplateId string `json:"TemplateId" xml:"TemplateId"`
}

Date is a nested struct in videoenhan response

type DeleteFaceVideoTemplateRequest added in v1.61.1027

type DeleteFaceVideoTemplateRequest struct {
	*requests.RpcRequest
	UserId     string `position:"Body" name:"UserId"`
	TemplateId string `position:"Body" name:"TemplateId"`
}

DeleteFaceVideoTemplateRequest is the request struct for api DeleteFaceVideoTemplate

func CreateDeleteFaceVideoTemplateRequest added in v1.61.1027

func CreateDeleteFaceVideoTemplateRequest() (request *DeleteFaceVideoTemplateRequest)

CreateDeleteFaceVideoTemplateRequest creates a request to invoke DeleteFaceVideoTemplate API

type DeleteFaceVideoTemplateResponse added in v1.61.1027

type DeleteFaceVideoTemplateResponse struct {
	*responses.BaseResponse
	Message   string `json:"Message" xml:"Message"`
	RequestId string `json:"RequestId" xml:"RequestId"`
	Code      string `json:"Code" xml:"Code"`
}

DeleteFaceVideoTemplateResponse is the response struct for api DeleteFaceVideoTemplate

func CreateDeleteFaceVideoTemplateResponse added in v1.61.1027

func CreateDeleteFaceVideoTemplateResponse() (response *DeleteFaceVideoTemplateResponse)

CreateDeleteFaceVideoTemplateResponse creates a response to parse from DeleteFaceVideoTemplate response

type Elements added in v1.61.1027

type Elements struct {
	ElementsItem []ElementsItem `json:"Elements" xml:"Elements"`
}

Elements is a nested struct in videoenhan response

type ElementsItem added in v1.61.1027

type ElementsItem struct {
	TemplateURL string `json:"TemplateURL" xml:"TemplateURL"`
	UserId      string `json:"UserId" xml:"UserId"`
	CreateTime  string `json:"CreateTime" xml:"CreateTime"`
	UpdateTime  string `json:"UpdateTime" xml:"UpdateTime"`
	TemplateId  string `json:"TemplateId" xml:"TemplateId"`
}

ElementsItem is a nested struct in videoenhan response

type EnhanceVideoQualityRequest added in v1.61.727

type EnhanceVideoQualityRequest struct {
	*requests.RpcRequest
	HDRFormat      string           `position:"Body" name:"HDRFormat"`
	FrameRate      requests.Integer `position:"Body" name:"FrameRate"`
	MaxIlluminance requests.Integer `position:"Body" name:"MaxIlluminance"`
	Bitrate        requests.Integer `position:"Body" name:"Bitrate"`
	OutPutWidth    requests.Integer `position:"Body" name:"OutPutWidth"`
	OutPutHeight   requests.Integer `position:"Body" name:"OutPutHeight"`
	Async          requests.Boolean `position:"Body" name:"Async"`
	VideoURL       string           `position:"Body" name:"VideoURL"`
}

EnhanceVideoQualityRequest is the request struct for api EnhanceVideoQuality

func CreateEnhanceVideoQualityRequest added in v1.61.727

func CreateEnhanceVideoQualityRequest() (request *EnhanceVideoQualityRequest)

CreateEnhanceVideoQualityRequest creates a request to invoke EnhanceVideoQuality API

type EnhanceVideoQualityResponse added in v1.61.727

type EnhanceVideoQualityResponse struct {
	*responses.BaseResponse
	RequestId string `json:"RequestId" xml:"RequestId"`
	Data      Data   `json:"Data" xml:"Data"`
}

EnhanceVideoQualityResponse is the response struct for api EnhanceVideoQuality

func CreateEnhanceVideoQualityResponse added in v1.61.727

func CreateEnhanceVideoQualityResponse() (response *EnhanceVideoQualityResponse)

CreateEnhanceVideoQualityResponse creates a response to parse from EnhanceVideoQuality response

type EraseVideoLogoBoxes

type EraseVideoLogoBoxes struct {
	W string `name:"W"`
	H string `name:"H"`
	X string `name:"X"`
	Y string `name:"Y"`
}

EraseVideoLogoBoxes is a repeated param struct in EraseVideoLogoRequest

type EraseVideoLogoRequest

type EraseVideoLogoRequest struct {
	*requests.RpcRequest
	Boxes    *[]EraseVideoLogoBoxes `position:"Body" name:"Boxes"  type:"Repeated"`
	Async    requests.Boolean       `position:"Body" name:"Async"`
	VideoUrl string                 `position:"Body" name:"VideoUrl"`
}

EraseVideoLogoRequest is the request struct for api EraseVideoLogo

func CreateEraseVideoLogoRequest

func CreateEraseVideoLogoRequest() (request *EraseVideoLogoRequest)

CreateEraseVideoLogoRequest creates a request to invoke EraseVideoLogo API

type EraseVideoLogoResponse

type EraseVideoLogoResponse struct {
	*responses.BaseResponse
	RequestId string `json:"RequestId" xml:"RequestId"`
	Data      Data   `json:"Data" xml:"Data"`
}

EraseVideoLogoResponse is the response struct for api EraseVideoLogo

func CreateEraseVideoLogoResponse

func CreateEraseVideoLogoResponse() (response *EraseVideoLogoResponse)

CreateEraseVideoLogoResponse creates a response to parse from EraseVideoLogo response

type EraseVideoSubtitlesRequest

type EraseVideoSubtitlesRequest struct {
	*requests.RpcRequest
	BH       requests.Float   `position:"Body" name:"BH"`
	Async    requests.Boolean `position:"Body" name:"Async"`
	VideoUrl string           `position:"Body" name:"VideoUrl"`
	BW       requests.Float   `position:"Body" name:"BW"`
	BX       requests.Float   `position:"Body" name:"BX"`
	BY       requests.Float   `position:"Body" name:"BY"`
}

EraseVideoSubtitlesRequest is the request struct for api EraseVideoSubtitles

func CreateEraseVideoSubtitlesRequest

func CreateEraseVideoSubtitlesRequest() (request *EraseVideoSubtitlesRequest)

CreateEraseVideoSubtitlesRequest creates a request to invoke EraseVideoSubtitles API

type EraseVideoSubtitlesResponse

type EraseVideoSubtitlesResponse struct {
	*responses.BaseResponse
	RequestId string `json:"RequestId" xml:"RequestId"`
	Data      Data   `json:"Data" xml:"Data"`
}

EraseVideoSubtitlesResponse is the response struct for api EraseVideoSubtitles

func CreateEraseVideoSubtitlesResponse

func CreateEraseVideoSubtitlesResponse() (response *EraseVideoSubtitlesResponse)

CreateEraseVideoSubtitlesResponse creates a response to parse from EraseVideoSubtitles response

type GenerateVideoFileList

type GenerateVideoFileList struct {
	FileName string `name:"FileName"`
	FileUrl  string `name:"FileUrl"`
	Type     string `name:"Type"`
}

GenerateVideoFileList is a repeated param struct in GenerateVideoRequest

type GenerateVideoRequest

type GenerateVideoRequest struct {
	*requests.RpcRequest
	TransitionStyle  string                   `position:"Body" name:"TransitionStyle"`
	Scene            string                   `position:"Body" name:"Scene"`
	Duration         requests.Float           `position:"Body" name:"Duration"`
	PuzzleEffect     requests.Boolean         `position:"Body" name:"PuzzleEffect"`
	Height           requests.Integer         `position:"Body" name:"Height"`
	DurationAdaption requests.Boolean         `position:"Body" name:"DurationAdaption"`
	FileList         *[]GenerateVideoFileList `position:"Body" name:"FileList"  type:"Repeated"`
	Mute             requests.Boolean         `position:"Body" name:"Mute"`
	Async            requests.Boolean         `position:"Body" name:"Async"`
	SmartEffect      requests.Boolean         `position:"Body" name:"SmartEffect"`
	Width            requests.Integer         `position:"Body" name:"Width"`
	Style            string                   `position:"Body" name:"Style"`
}

GenerateVideoRequest is the request struct for api GenerateVideo

func CreateGenerateVideoRequest

func CreateGenerateVideoRequest() (request *GenerateVideoRequest)

CreateGenerateVideoRequest creates a request to invoke GenerateVideo API

type GenerateVideoResponse

type GenerateVideoResponse struct {
	*responses.BaseResponse
	RequestId string `json:"RequestId" xml:"RequestId"`
	Data      Data   `json:"Data" xml:"Data"`
}

GenerateVideoResponse is the response struct for api GenerateVideo

func CreateGenerateVideoResponse

func CreateGenerateVideoResponse() (response *GenerateVideoResponse)

CreateGenerateVideoResponse creates a response to parse from GenerateVideo response

type GetAsyncJobResultRequest

type GetAsyncJobResultRequest struct {
	*requests.RpcRequest
	JobId string           `position:"Body" name:"JobId"`
	Async requests.Boolean `position:"Body" name:"Async"`
}

GetAsyncJobResultRequest is the request struct for api GetAsyncJobResult

func CreateGetAsyncJobResultRequest

func CreateGetAsyncJobResultRequest() (request *GetAsyncJobResultRequest)

CreateGetAsyncJobResultRequest creates a request to invoke GetAsyncJobResult API

type GetAsyncJobResultResponse

type GetAsyncJobResultResponse struct {
	*responses.BaseResponse
	RequestId string `json:"RequestId" xml:"RequestId"`
	Data      Data   `json:"Data" xml:"Data"`
}

GetAsyncJobResultResponse is the response struct for api GetAsyncJobResult

func CreateGetAsyncJobResultResponse

func CreateGetAsyncJobResultResponse() (response *GetAsyncJobResultResponse)

CreateGetAsyncJobResultResponse creates a response to parse from GetAsyncJobResult response

type InterpolateVideoFrameRequest added in v1.61.790

type InterpolateVideoFrameRequest struct {
	*requests.RpcRequest
	FrameRate requests.Integer `position:"Body" name:"FrameRate"`
	Bitrate   requests.Integer `position:"Body" name:"Bitrate"`
	Async     requests.Boolean `position:"Body" name:"Async"`
	VideoURL  string           `position:"Body" name:"VideoURL"`
}

InterpolateVideoFrameRequest is the request struct for api InterpolateVideoFrame

func CreateInterpolateVideoFrameRequest added in v1.61.790

func CreateInterpolateVideoFrameRequest() (request *InterpolateVideoFrameRequest)

CreateInterpolateVideoFrameRequest creates a request to invoke InterpolateVideoFrame API

type InterpolateVideoFrameResponse added in v1.61.790

type InterpolateVideoFrameResponse struct {
	*responses.BaseResponse
	RequestId string `json:"RequestId" xml:"RequestId"`
	Data      Data   `json:"Data" xml:"Data"`
}

InterpolateVideoFrameResponse is the response struct for api InterpolateVideoFrame

func CreateInterpolateVideoFrameResponse added in v1.61.790

func CreateInterpolateVideoFrameResponse() (response *InterpolateVideoFrameResponse)

CreateInterpolateVideoFrameResponse creates a response to parse from InterpolateVideoFrame response

type MergeVideoFaceRequest added in v1.61.727

type MergeVideoFaceRequest struct {
	*requests.RpcRequest
	PostURL      string           `position:"Body" name:"PostURL"`
	ReferenceURL string           `position:"Body" name:"ReferenceURL"`
	Async        requests.Boolean `position:"Body" name:"Async"`
	VideoURL     string           `position:"Body" name:"VideoURL"`
}

MergeVideoFaceRequest is the request struct for api MergeVideoFace

func CreateMergeVideoFaceRequest added in v1.61.727

func CreateMergeVideoFaceRequest() (request *MergeVideoFaceRequest)

CreateMergeVideoFaceRequest creates a request to invoke MergeVideoFace API

type MergeVideoFaceResponse added in v1.61.727

type MergeVideoFaceResponse struct {
	*responses.BaseResponse
	RequestId string `json:"RequestId" xml:"RequestId"`
	Data      Data   `json:"Data" xml:"Data"`
}

MergeVideoFaceResponse is the response struct for api MergeVideoFace

func CreateMergeVideoFaceResponse added in v1.61.727

func CreateMergeVideoFaceResponse() (response *MergeVideoFaceResponse)

CreateMergeVideoFaceResponse creates a response to parse from MergeVideoFace response

type MergeVideoModelFaceRequest added in v1.61.1027

type MergeVideoModelFaceRequest struct {
	*requests.RpcRequest
	FaceImageURL string `position:"Body" name:"FaceImageURL"`
	UserId       string `position:"Body" name:"UserId"`
	TemplateId   string `position:"Body" name:"TemplateId"`
	Async        string `position:"Body" name:"Async"`
}

MergeVideoModelFaceRequest is the request struct for api MergeVideoModelFace

func CreateMergeVideoModelFaceRequest added in v1.61.1027

func CreateMergeVideoModelFaceRequest() (request *MergeVideoModelFaceRequest)

CreateMergeVideoModelFaceRequest creates a request to invoke MergeVideoModelFace API

type MergeVideoModelFaceResponse added in v1.61.1027

type MergeVideoModelFaceResponse struct {
	*responses.BaseResponse
	Message   string `json:"Message" xml:"Message"`
	RequestId string `json:"RequestId" xml:"RequestId"`
	Code      string `json:"Code" xml:"Code"`
	Data      Data   `json:"Data" xml:"Data"`
}

MergeVideoModelFaceResponse is the response struct for api MergeVideoModelFace

func CreateMergeVideoModelFaceResponse added in v1.61.1027

func CreateMergeVideoModelFaceResponse() (response *MergeVideoModelFaceResponse)

CreateMergeVideoModelFaceResponse creates a response to parse from MergeVideoModelFace response

type QueryFaceVideoTemplateRequest added in v1.61.1027

type QueryFaceVideoTemplateRequest struct {
	*requests.RpcRequest
	UserId     string `position:"Query" name:"UserId"`
	TemplateId string `position:"Query" name:"TemplateId"`
}

QueryFaceVideoTemplateRequest is the request struct for api QueryFaceVideoTemplate

func CreateQueryFaceVideoTemplateRequest added in v1.61.1027

func CreateQueryFaceVideoTemplateRequest() (request *QueryFaceVideoTemplateRequest)

CreateQueryFaceVideoTemplateRequest creates a request to invoke QueryFaceVideoTemplate API

type QueryFaceVideoTemplateResponse added in v1.61.1027

type QueryFaceVideoTemplateResponse struct {
	*responses.BaseResponse
	Message   string `json:"Message" xml:"Message"`
	RequestId string `json:"RequestId" xml:"RequestId"`
	Code      string `json:"Code" xml:"Code"`
	Data      Data   `json:"Data" xml:"Data"`
}

QueryFaceVideoTemplateResponse is the response struct for api QueryFaceVideoTemplate

func CreateQueryFaceVideoTemplateResponse added in v1.61.1027

func CreateQueryFaceVideoTemplateResponse() (response *QueryFaceVideoTemplateResponse)

CreateQueryFaceVideoTemplateResponse creates a response to parse from QueryFaceVideoTemplate response

type SuperResolveVideoRequest

type SuperResolveVideoRequest struct {
	*requests.RpcRequest
	BitRate  requests.Integer `position:"Body" name:"BitRate"`
	Async    requests.Boolean `position:"Body" name:"Async"`
	VideoUrl string           `position:"Body" name:"VideoUrl"`
}

SuperResolveVideoRequest is the request struct for api SuperResolveVideo

func CreateSuperResolveVideoRequest

func CreateSuperResolveVideoRequest() (request *SuperResolveVideoRequest)

CreateSuperResolveVideoRequest creates a request to invoke SuperResolveVideo API

type SuperResolveVideoResponse

type SuperResolveVideoResponse struct {
	*responses.BaseResponse
	RequestId string `json:"RequestId" xml:"RequestId"`
	Data      Data   `json:"Data" xml:"Data"`
}

SuperResolveVideoResponse is the response struct for api SuperResolveVideo

func CreateSuperResolveVideoResponse

func CreateSuperResolveVideoResponse() (response *SuperResolveVideoResponse)

CreateSuperResolveVideoResponse creates a response to parse from SuperResolveVideo response

type ToneSdrVideoRequest added in v1.61.790

type ToneSdrVideoRequest struct {
	*requests.RpcRequest
	RecolorModel string           `position:"Body" name:"RecolorModel"`
	Bitrate      requests.Integer `position:"Body" name:"Bitrate"`
	Async        requests.Boolean `position:"Body" name:"Async"`
	VideoURL     string           `position:"Body" name:"VideoURL"`
}

ToneSdrVideoRequest is the request struct for api ToneSdrVideo

func CreateToneSdrVideoRequest added in v1.61.790

func CreateToneSdrVideoRequest() (request *ToneSdrVideoRequest)

CreateToneSdrVideoRequest creates a request to invoke ToneSdrVideo API

type ToneSdrVideoResponse added in v1.61.790

type ToneSdrVideoResponse struct {
	*responses.BaseResponse
	RequestId string `json:"RequestId" xml:"RequestId"`
	Data      Data   `json:"Data" xml:"Data"`
}

ToneSdrVideoResponse is the response struct for api ToneSdrVideo

func CreateToneSdrVideoResponse added in v1.61.790

func CreateToneSdrVideoResponse() (response *ToneSdrVideoResponse)

CreateToneSdrVideoResponse creates a response to parse from ToneSdrVideo response

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL