Skip to content

Commit

Permalink
Improve GPU frames accuracy (#413)
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasHug authored Dec 2, 2024
1 parent ce99662 commit de6a6d4
Show file tree
Hide file tree
Showing 5 changed files with 92 additions and 137 deletions.
2 changes: 1 addition & 1 deletion src/torchcodec/decoders/_core/CudaDevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ void convertAVFrameToDecodedOutputOnCuda(
auto start = std::chrono::high_resolution_clock::now();
NppStatus status;
if (src->colorspace == AVColorSpace::AVCOL_SPC_BT709) {
status = nppiNV12ToRGB_709HDTV_8u_P2C3R(
status = nppiNV12ToRGB_709CSC_8u_P2C3R(
input,
src->linesize[0],
static_cast<Npp8u*>(dst.data_ptr()),
Expand Down
Loading

0 comments on commit de6a6d4

Please sign in to comment.