Versions in this module Expand all Collapse all v0 v0.5.6 Oct 30, 2023 Changes in this version + var AllowedAssetsTypes map[types.Type]bool + var AllowedAudioTypes = map[types.Type]bool + var AllowedVideoTypes = map[types.Type]bool + func DownSampleTo(img image.Image, NewPixelCount int) image.Image + func SanitizeString(drawstring string) string + type AttributeTypeDescription struct + Description string + Name string + Sync *string + type Manifest struct + AttributeTypes *[]AttributeTypeDescription + Author *string + Description string + DisplayName *string + Homepage *string + License *string + Name string + Repository *string + Scopes *map[string][]string + Version string + type Processor struct + Assetpath string + Audiopath string + Fontpath string + ImPathF string + ImPathS map[string]string + ImageMapF *lru.Cache + ImageMapS map[string]*lru.Cache + Imagepath string + ImagesRescaleInProgress sync.Map + Pluginpath string + PresentMutex sync.Mutex + RenderDone chan *types.FrameRenderRequest + RenderQueue chan *types.FrameRenderRequest + Videopath string + func NewProcessor() *Processor + func (p *Processor) FileExists(filename string) bool + func (p *Processor) GetMD5HashByte(text []byte) string + func (p *Processor) HandleError(err error) bool + func (p *Processor) Initialize(ctx types.NodeContext) *Processor + func (p *Processor) LoadPluginManifest(pluginHash string) (*Manifest, error) + func (p *Processor) Present(imageID string) (*types.MetaDef, *string) + func (p *Processor) PresentTexture(ID *string, rsize string) (*types.MetaDef, *string) + func (p *Processor) ProcessAsset(body io.ReadCloser) (string, error) + func (p *Processor) ProcessFrame(body []byte) (string, error) + func (p *Processor) ProcessImage(src []byte) (string, error) + func (p *Processor) ProcessPlugin(body io.ReadCloser) (string, error) + func (p *Processor) ProcessTrack(body io.ReadCloser) (string, error) + func (p *Processor) ProcessTube(src []byte) (string, error) + func (p *Processor) ProcessVideo(body io.ReadCloser) (string, error) + func (p *Processor) RenderFrame(req *types.FrameRenderRequest) + func (p *Processor) SaveWriteToFile(fname string, data []byte) error + func (p *Processor) SaveWriteToPNG(fname string, img image.Image) error + func (p *Processor) WriteToF(img image.Image) (error, string) + func (p *Processor) WriteToScaled(base string, img image.Image, rsize string) error + type TubeDesc struct + Url string