We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d599ba commit c42470fCopy full SHA for c42470f
torchvision/csrc/io/decoder/gpu/decoder.h
@@ -36,16 +36,6 @@ class Decoder {
36
void release();
37
void decode(const uint8_t*, unsigned long);
38
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
49
int get_height() const {
50
return luma_height;
51
}
0 commit comments