Exemple #1
0
func (f *Output) QueryCodecWithCompliance(codecID avcodec.CodecID, compliance avcodec.Compliance) (bool, bool) {
	res := C.avformat_query_codec(f.CAVOutputFormat, (C.enum_AVCodecID)(codecID), (C.int)(compliance))
	switch res {
	case 0:
		return false, true
	case 1:
		return true, true
	default:
		return false, false
	}
}
Exemple #2
0
//Test if the given container can store a codec.
func AvformatQueryCodec(o *OutputFormat, cd CodecId, sc int) int {
	return int(C.avformat_query_codec((*C.struct_AVOutputFormat)(o), (C.enum_AVCodecID)(cd), C.int(sc)))
}