Versions in this module Expand all Collapse all v0 v0.2.0 Oct 11, 2022 Changes in this version + const DefaultCopyright + const DefaultUseThread + const MaxUseThread + var FontFilePath = []string + func ConvertFormat(srcInfo, descInfo MediaInfo) error + func Encode(w io.Writer, i image.Image, subsampleRatio PixelFormat) error + func GetDuration(fpath string) (dur time.Duration, err error) + func GetFps(fpath string) (fps float64, err error) + func ImageFromNV12Parallel(w int, h int, data []byte, threadMax int) image.Image + func ImageFromYUYV2Parallel(w int, h int, data []byte, threadMax int) image.Image + func ImageGen(width, height int, str string) image.Image + func ImageToNV12Parallel(img image.Image, threadMax int) []byte + func ImageToYUYVParallel(img image.Image, threadMax int) []byte + type FfprobeResult struct + Format struct{ ... } + Streams []struct{ ... } + func FfprobeMedia(fpath string) (rst FfprobeResult, err error) + type FrameProcessor struct + func (f *FrameProcessor) CalcLines(lineStart, lineCount int) + func (f *FrameProcessor) GenerateIndexMapNV12(width, height int) + func (f *FrameProcessor) GetImage() *image.RGBA + func (f *FrameProcessor) GetImageParallel() *image.RGBA + func (f *FrameProcessor) GetYUYV() (w, h int, data []byte) + func (f *FrameProcessor) SaveBMP(filename string) error + func (f *FrameProcessor) SetDataNV12(w, h int, data []byte) + func (f *FrameProcessor) SetDataYUYV(w, h int, data []byte) + type MediaInfo struct + Bitrate string + FPS int + Filepath string + Height int + MediaType PixelFormat + Width int + type PixelFormat int + const AUTO + const BMP + const IMGS + const JPEG + const MP4V + const NV12 + const PNG + const YUYV422 + type YUV struct + CStride int + PixelFormat PixelFormat + Rect image.Rectangle + UV []uint8 + Y []uint8 + YStride int + func NewYUV(r image.Rectangle, subsampleRatio PixelFormat) *YUV + func (p *YUV) At(x, y int) color.Color + func (p *YUV) Bounds() image.Rectangle + func (p *YUV) COffset(x, y int) int + func (p *YUV) ColorModel() color.Model + func (p *YUV) Opaque() bool + func (p *YUV) SubImage(r image.Rectangle) image.Image + func (p *YUV) YOffset(x, y int) int + func (p *YUV) YUVAt(x, y int) color.YCbCr v0.1.0 Apr 2, 2022 v0.0.2 Mar 1, 2022