Inter and intra frame labelling?

Is it possible to implement identification of i-frames, p-frames, b-frames? This would allow for more effective use of the extract sub-clip function and lossless keyframe trimming.