Exemplo n.º 1
0
func avpicture_alloc(frame *Frame, fmt, width, height int) int {
	return int(C.avpicture_alloc((*C.AVPicture)(unsafe.Pointer(frame.avframe)), int32(fmt), C.int(width), C.int(height)))
}
Exemplo n.º 2
0
//Free a picture previously allocated by avpicture_alloc().
//Allocate memory for the pixels of a picture and setup the AVPicture fields for it.
func Avpicture_alloc(p *AVPicture, t AVPixelFormat, w, h int) int {
	return int(C.avpicture_alloc((*C.struct_AVPicture)(p), (C.enum_AVPixelFormat)(t), C.int(w), C.int(h)))
}