Documentation ¶
Index ¶
- Constants
- func ConvertBGRAToYCbCrImage(bgra *imgext.BGRA) (*image.YCbCr, error)
- func ConvertBGRAToYCbCrImageIPP(bgra *imgext.BGRA) (*image.YCbCr, error)
- func ConvertBGRAToYCbCrImageStandard(bgra *imgext.BGRA) (*image.YCbCr, error)
- func ConvertImageToYCbCrImage(img image.Image) (*image.YCbCr, error)
- func ConvertRGBAToYCbCrImage(rgba *image.RGBA) (*image.YCbCr, error)
- func ConvertRGBAToYCbCrImageSSEUnaligned(rgba *image.RGBA) (*image.YCbCr, error)
- func ConvertRGBAToYCbCrImageStandard(rgba *image.RGBA) (*image.YCbCr, error)
Constants ¶
const ( YCbCrTypeJpeg ycbcrType = 0 YCbCrType601 ycbcrType = 1 YCbCrType709 ycbcrType = 2 )
YCbCrType enum of conversion type
Variables ¶
This section is empty.
Functions ¶
func ConvertBGRAToYCbCrImage ¶
ConvertBGRAToYCbCrImage see ConvertImageToYCbCrImage
func ConvertBGRAToYCbCrImageIPP ¶
ConvertBGRAToYCbCrImageIPP will use IPP intel API to convert imgext.BGRA image into image.YCbCr
func ConvertBGRAToYCbCrImageStandard ¶
ConvertBGRAToYCbCrImageStandard will use Go native color.RGBToYCbCr()
func ConvertImageToYCbCrImage ¶
ConvertImageToYCbCrImage will try use the most fast algorithm for input image.RGBA or imgext.BGRA Use IPP intel API unaligned to convert image into YCbCr on amd64 Use SSE intel API unaligned to convert image into YCbCr on amd64 if IPP not available if above algorithm not available, Go native standard color.RGBToYCbCr() is used
func ConvertRGBAToYCbCrImage ¶
ConvertRGBAToYCbCrImage see ConvertImageToYCbCrImage
func ConvertRGBAToYCbCrImageSSEUnaligned ¶
ConvertRGBAToYCbCrImageSSEUnaligned will use SSE intel API unaligned to convert RGBA image into YCbCr
Types ¶
This section is empty.