Unverified Commit 5b825901 authored by Prabhat Roy's avatar Prabhat Roy Committed by GitHub
Browse files

Removed unused member functions from GPU decoder (#5327)

parent 82929ae1
...@@ -36,16 +36,6 @@ class Decoder { ...@@ -36,16 +36,6 @@ class Decoder {
void release(); void release();
void decode(const uint8_t*, unsigned long); void decode(const uint8_t*, unsigned long);
torch::Tensor fetch_frame(); torch::Tensor fetch_frame();
int get_frame_size() const {
return get_width() * (luma_height + (chroma_height * num_chroma_planes)) *
bytes_per_pixel;
}
int get_width() const {
return (video_output_format == cudaVideoSurfaceFormat_NV12 ||
video_output_format == cudaVideoSurfaceFormat_P016)
? (width + 1) & ~1
: width;
}
int get_height() const { int get_height() const {
return luma_height; return luma_height;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment