-1

I want decode h264 dirctively to cv::Mat or cv::cuda::GpuMat without sws_scale to saving CPUs.

So is there any way to make it realized? thanks in advance.

Pradeep
  • 9,667
  • 13
  • 27
  • 34
Wussup
  • 17
  • 5

1 Answers1

0

No. If the video is encoded as YUV, it must be converted using something like swscale. There is not “directly” decode to a format other than the one it was encoded as.

szatmary
  • 29,969
  • 8
  • 44
  • 57