File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/torchcodec/decoders/_core Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -894,8 +894,9 @@ VideoDecoder::DecodedOutput VideoDecoder::convertAVFrameToDecodedOutput(
894894// Callers may pass a pre-allocated tensor, where the output frame tensor will
895895// be stored. This parameter is honored in any case, but it only leads to a
896896// speed-up when swscale is used. With swscale, we can tell ffmpeg to place the
897- // decoded frame directly into `preAllocatedtensor.data_ptr()`. That's not
898- // possible with filtegraph, leading to an extra copy.
897+ // decoded frame directly into `preAllocatedtensor.data_ptr()`. We haven't yet
898+ // found a way to do that with filtegraph.
899+ // TODO: Figure out whether that's possilbe!
899900// Dimension order of the preAllocatedOutputTensor must be HWC, regardless of
900901// `dimension_order` parameter. It's up to callers to re-shape it if needed.
901902void VideoDecoder::convertAVFrameToDecodedOutputOnCPU (
You can’t perform that action at this time.
0 commit comments