I would like to apply some kind of super-resolution (SR) to the keyframes in an H.264 video. The SR process should target the keyframes and upscale them by a factor of 2.
For the past few days, I've been trying to see where can I hold the key frame, in the C src code, in order to scale it. I'm confused whether to apply the scaling in the parsing packet part, or in the decoding part.
I also don't know if upscaling the B & P frames would be enough to not damage the video frames.
I hope you guide me as there are no sufficient documentation about FFmpeg. If you have any suggestions please let me know.