File tree Expand file tree Collapse file tree 1 file changed +0
-7
lines changed Expand file tree Collapse file tree 1 file changed +0
-7
lines changed Original file line number Diff line number Diff line change @@ -227,7 +227,6 @@ void CudaDeviceInterface::convertAVFrameToFrameOutput(
227227 NppiSize oSizeROI = {width, height};
228228 Npp8u* input[2 ] = {avFrame->data [0 ], avFrame->data [1 ]};
229229
230- auto start = std::chrono::high_resolution_clock::now ();
231230 NppStatus status;
232231 if (avFrame->colorspace == AVColorSpace::AVCOL_SPC_BT709) {
233232 status = nppiNV12ToRGB_709CSC_8u_P2C3R (
@@ -253,12 +252,6 @@ void CudaDeviceInterface::convertAVFrameToFrameOutput(
253252 c10::cuda::getStreamFromExternal (nppGetStream (), device_.index ());
254253 nppDoneEvent.record (nppStreamWrapper);
255254 nppDoneEvent.block (at::cuda::getCurrentCUDAStream ());
256-
257- auto end = std::chrono::high_resolution_clock::now ();
258-
259- std::chrono::duration<double , std::micro> duration = end - start;
260- VLOG (9 ) << " NPP Conversion of frame height=" << height << " width=" << width
261- << " took: " << duration.count () << " us" << std::endl;
262255}
263256
264257// inspired by https://github.com/FFmpeg/FFmpeg/commit/ad67ea9
You can’t perform that action at this time.
0 commit comments