Exemple #1
0
func (f *Frame) Ref(dst *Frame) error {
	code := C.av_frame_ref(dst.CAVFrame, f.CAVFrame)
	if code < 0 {
		return NewErrorFromCode(ErrorCode(code))
	}
	return nil
}
Exemple #2
0
//int av_frame_ref (AVFrame *dst, AVFrame *src)
//Setup a new reference to the data described by an given frame.
func Av_frame_ref(d, s *AVFrame) int {
	return int(C.av_frame_ref((*C.struct_AVFrame)(unsafe.Pointer(d)), (*C.struct_AVFrame)(unsafe.Pointer(s))))
}