MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / get_category

Function get_category

libavcodec/options.c:69–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67}
68
69static AVClassCategory get_category(void *ptr)
70{
71 AVCodecContext* avctx = ptr;
72 if (avctx->codec && ff_codec_is_decoder(avctx->codec))
73 return AV_CLASS_CATEGORY_DECODER;
74 else
75 return AV_CLASS_CATEGORY_ENCODER;
76}
77
78static const AVClass av_codec_context_class = {
79 .class_name = "AVCodecContext",

Callers

nothing calls this directly

Calls 1

ff_codec_is_decoderFunction · 0.85

Tested by

no test coverage detected