Documentation
¶
Index ¶
- func ReduceHalf(width, height, nchannel int, src []byte, srcStride int, dst []byte, ...)
- func YUV420pToRGB(width, height int, y, u, v []byte, strideY, strideU, strideV, strideRGB int, ...)
- type YUVImage
- func (x *YUVImage) Clone() *YUVImage
- func (x *YUVImage) CopyFrom(src *YUVImage)
- func (x *YUVImage) CopyToCImageRGB(dst *cimg.Image)
- func (x *YUVImage) ToCImageRGB() *cimg.Image
- func (x *YUVImage) TotalBytes() int
- func (x *YUVImage) UStride() int
- func (x *YUVImage) VStride() int
- func (x *YUVImage) YStride() int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReduceHalf ¶
Shrink by 2x. nchannel must be 1,3,4, which correspond to Gray, RGB, RGBA.
Types ¶
type YUVImage ¶
Planar YUV 420 image
func LoadYUVFiles ¶
Load 3 raw YUV files into a YUVImage
func (*YUVImage) CopyToCImageRGB ¶
Transcode from YUV420p to RGB The target image must be the same size as the source, and RGB format
func (*YUVImage) ToCImageRGB ¶
Transcode from YUV420p to RGB
func (*YUVImage) TotalBytes ¶
Click to show internal directories.
Click to hide internal directories.