yuv2rgb

package
v0.0.0-...-1bcdf7b Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2021 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	YCbCrTypeJpeg ycbcrType = 0
	YCbCrType601  ycbcrType = 1
	YCbCrType709  ycbcrType = 2
)

YCbCrType enum of conversion type

Variables

This section is empty.

Functions

func ConvertBGRAToYCbCrImage

func ConvertBGRAToYCbCrImage(
	bgra *imgext.BGRA,
) (*image.YCbCr, error)

ConvertBGRAToYCbCrImage see ConvertImageToYCbCrImage

func ConvertBGRAToYCbCrImageIPP

func ConvertBGRAToYCbCrImageIPP(
	bgra *imgext.BGRA,
) (*image.YCbCr, error)

ConvertBGRAToYCbCrImageIPP will use IPP intel API to convert imgext.BGRA image into image.YCbCr

func ConvertBGRAToYCbCrImageStandard

func ConvertBGRAToYCbCrImageStandard(
	bgra *imgext.BGRA,
) (*image.YCbCr, error)

ConvertBGRAToYCbCrImageStandard will use Go native color.RGBToYCbCr()

func ConvertImageToYCbCrImage

func ConvertImageToYCbCrImage(
	img image.Image,
) (*image.YCbCr, error)

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

func ConvertRGBAToYCbCrImage(
	rgba *image.RGBA,
) (*image.YCbCr, error)

ConvertRGBAToYCbCrImage see ConvertImageToYCbCrImage

func ConvertRGBAToYCbCrImageSSEUnaligned

func ConvertRGBAToYCbCrImageSSEUnaligned(
	rgba *image.RGBA,
) (*image.YCbCr, error)

ConvertRGBAToYCbCrImageSSEUnaligned will use SSE intel API unaligned to convert RGBA image into YCbCr

func ConvertRGBAToYCbCrImageStandard

func ConvertRGBAToYCbCrImageStandard(
	rgba *image.RGBA,
) (*image.YCbCr, error)

ConvertRGBAToYCbCrImageStandard will use Go native color.RGBToYCbCr()

Types

This section is empty.

Directories

Path Synopsis
Package imgext is package extension of go proprietary image package thanks to https://github.com/dkolbly/wl/blob/master/ui/bgra.go
Package imgext is package extension of go proprietary image package thanks to https://github.com/dkolbly/wl/blob/master/ui/bgra.go

Jump to

Keyboard shortcuts

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