Skip to content

Commit d0192ec

Browse files
committed
GetCache -> getCache
1 parent 316f218 commit d0192ec

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/torchcodec/_core/BetaCudaDeviceInterface.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

src/torchcodec/_core/NVDECCache.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ extern "C" {
1919

2020
namespace 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,

src/torchcodec/_core/NVDECCache.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ struct CUvideoDecoderDeleter {
3131
using 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.
3535
class 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);

0 commit comments

Comments
 (0)