File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -146,7 +146,7 @@ BetaCudaDeviceInterface::~BetaCudaDeviceInterface() {
146146 // NVDEC but not yet "mapped" - i.e. those that are still in frameBuffer_?
147147
148148 if (decoder_) {
149- NVDECCache::GetCache (device_.index ())
149+ NVDECCache::getCache (device_.index ())
150150 .returnDecoder (&videoFormat_, std::move (decoder_));
151151 }
152152
@@ -235,7 +235,7 @@ unsigned char BetaCudaDeviceInterface::streamPropertyChange(
235235 }
236236
237237 if (!decoder_) {
238- decoder_ = NVDECCache::GetCache (device_.index ()).getDecoder (videoFormat);
238+ decoder_ = NVDECCache::getCache (device_.index ()).getDecoder (videoFormat);
239239
240240 if (!decoder_) {
241241 // TODONVDEC P0: consider re-configuring an existing decoder instead of
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ extern "C" {
1919
2020namespace facebook ::torchcodec {
2121
22- NVDECCache& NVDECCache::GetCache (int deviceIndex) {
22+ NVDECCache& NVDECCache::getCache (int deviceIndex) {
2323 const int MAX_CUDA_GPUS = 128 ;
2424 TORCH_CHECK (
2525 deviceIndex >= -1 && deviceIndex < MAX_CUDA_GPUS,
Original file line number Diff line number Diff line change @@ -31,10 +31,10 @@ struct CUvideoDecoderDeleter {
3131using UniqueCUvideodecoder = std::unique_ptr<void , CUvideoDecoderDeleter>;
3232
3333// A per-device cache for NVDEC decoders. There is one instance of this class
34- // per GPU device, and it is accessed through the static GetCache () method.
34+ // per GPU device, and it is accessed through the static getCache () method.
3535class NVDECCache {
3636 public:
37- static NVDECCache& GetCache (int deviceIndex);
37+ static NVDECCache& getCache (int deviceIndex);
3838
3939 // Get decoder from cache - returns nullptr if none available
4040 UniqueCUvideodecoder getDecoder (CUVIDEOFORMAT* videoFormat);
You can’t perform that action at this time.
0 commit comments