示例#1
0
文件: avformat.go 项目: hyhy01/goav
//enum AVCodecID av_codec_get_id (const struct AVCodecTag *const *tags, unsigned int tag)
//Get the AVCodecID for the given codec tag tag.
func Av_codec_get_id(t **AVCodecTag, tag uint) AVCodecID {
	return (AVCodecID)(C.av_codec_get_id((**C.struct_AVCodecTag)(unsafe.Pointer(t)), C.uint(tag)))
}
示例#2
0
文件: avformat.go 项目: ovr/goav
//enum CodecId av_codec_get_id (const struct AvCodecTag *const *tags, unsigned int tag)
//Get the CodecId for the given codec tag tag.
func AvCodecGetId(t **AvCodecTag, tag uint) CodecId {
	return (CodecId)(C.av_codec_get_id((**C.struct_AVCodecTag)(unsafe.Pointer(t)), C.uint(tag)))
}
示例#3
0
func (ctm *CodecTagList) IDByTag(tag uint) avcodec.CodecID {
	return (avcodec.CodecID)(C.av_codec_get_id(ctm.CAVCodecTag, (C.uint)(tag)))
}