Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
vision
Commits
5b825901
"vscode:/vscode.git/clone" did not exist on "b1fb3c15ec69f818040e02ff84016a8ab41ea18f"
Unverified
Commit
5b825901
authored
Feb 01, 2022
by
Prabhat Roy
Committed by
GitHub
Feb 01, 2022
Browse files
Removed unused member functions from GPU decoder (#5327)
parent
82929ae1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
10 deletions
+0
-10
torchvision/csrc/io/decoder/gpu/decoder.h
torchvision/csrc/io/decoder/gpu/decoder.h
+0
-10
No files found.
torchvision/csrc/io/decoder/gpu/decoder.h
View file @
5b825901
...
@@ -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
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment