|
@ -41,13 +41,13 @@ class VideoDecoder(PyOperator): |
|
|
yield from VPFDecode(video_path, self._gpu_id, self._start_time).decode() |
|
|
yield from VPFDecode(video_path, self._gpu_id, self._start_time).decode() |
|
|
|
|
|
|
|
|
def _cpu_decode(self, video_path): |
|
|
def _cpu_decode(self, video_path): |
|
|
yield from PyAVDecode(video_path, self._start_time).decode() |
|
|
|
|
|
|
|
|
yield from PyAVDecode(video_path, self._gpu_id, self._start_time).decode() |
|
|
|
|
|
|
|
|
def _gpu_time_step_decode(self, video_path, time_step): |
|
|
def _gpu_time_step_decode(self, video_path, time_step): |
|
|
yield from VPFDecode(video_path, self._gpu_id, self._start_time, time_step).time_step_decode() |
|
|
yield from VPFDecode(video_path, self._gpu_id, self._start_time, time_step).time_step_decode() |
|
|
|
|
|
|
|
|
def _cpu_time_step_decode(self, video_path, time_step): |
|
|
def _cpu_time_step_decode(self, video_path, time_step): |
|
|
yield from PyAVDecode(video_path, self._start_time, time_step).time_step_decode() |
|
|
|
|
|
|
|
|
yield from PyAVDecode(video_path, self._gpu_id, self._start_time, time_step).time_step_decode() |
|
|
|
|
|
|
|
|
def decode(self, video_path: str): |
|
|
def decode(self, video_path: str): |
|
|
try: |
|
|
try: |
|
|