mirror of
https://github.com/Danile71/go-gpujpeg.git
synced 2025-09-26 19:41:18 +08:00
upd code
This commit is contained in:
@@ -115,10 +115,10 @@ func (p *ParamImage) SetPixelFormat(pf PixelFormat) {
|
||||
p.param.pixel_format = int32(pf)
|
||||
}
|
||||
|
||||
func SetImageParam() *ParamImage {
|
||||
p := &ParamImage{param: C.malloc_gpujpeg_image_parameters()}
|
||||
func SetImageParam() (p *ParamImage) {
|
||||
p = &ParamImage{param: C.malloc_gpujpeg_image_parameters()}
|
||||
C.gpujpeg_image_set_default_parameters(p.param)
|
||||
return p
|
||||
return
|
||||
}
|
||||
|
||||
func ReadImageInfo(image []byte) (*ParamImage, int, error) {
|
||||
|
Reference in New Issue
Block a user