Skip to content

Commit 5b82590

Browse files
authored
Removed unused member functions from GPU decoder (#5327)
1 parent 82929ae commit 5b82590

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

torchvision/csrc/io/decoder/gpu/decoder.h

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,6 @@ class Decoder {
3636
void release();
3737
void decode(const uint8_t*, unsigned long);
3838
torch::Tensor fetch_frame();
39-
int get_frame_size() const {
40-
return get_width() * (luma_height + (chroma_height * num_chroma_planes)) *
41-
bytes_per_pixel;
42-
}
43-
int get_width() const {
44-
return (video_output_format == cudaVideoSurfaceFormat_NV12 ||
45-
video_output_format == cudaVideoSurfaceFormat_P016)
46-
? (width + 1) & ~1
47-
: width;
48-
}
4939
int get_height() const {
5040
return luma_height;
5141
}

0 commit comments

Comments
 (0)