MCPcopy Create free account
hub / github.com/PlotJuggler/PlotJuggler / isVideoKeyframe

Function isVideoKeyframe

pj_scene2D/core/src/video_codec_utils.cpp:144–155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

142}
143
144bool isVideoKeyframe(int codec_id, const uint8_t* data, size_t size) {
145 switch (codec_id) {
146 case AV_CODEC_ID_H264:
147 return isH264Keyframe(data, size);
148 case AV_CODEC_ID_HEVC:
149 return isHevcKeyframe(data, size);
150 case AV_CODEC_ID_AV1:
151 return isAv1Keyframe(data, size);
152 default:
153 return false;
154 }
155}
156
157AVCodecParameters* makeVideoCodecParams(int codec_id) {
158 if (codec_id == AV_CODEC_ID_NONE) {

Callers 2

updateKeyframeIndexMethod · 0.85
keyframeFunction · 0.85

Calls 3

isH264KeyframeFunction · 0.85
isHevcKeyframeFunction · 0.85
isAv1KeyframeFunction · 0.85

Tested by 1

keyframeFunction · 0.68