Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1474)

Unified Diff: tools/telemetry/telemetry/internal/image_processing/frame_generator.py

Issue 1647513002: Delete tools/telemetry. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: tools/telemetry/telemetry/internal/image_processing/frame_generator.py
diff --git a/tools/telemetry/telemetry/internal/image_processing/frame_generator.py b/tools/telemetry/telemetry/internal/image_processing/frame_generator.py
deleted file mode 100644
index b701418e9903c5d565030f830a4eee13776b4a7b..0000000000000000000000000000000000000000
--- a/tools/telemetry/telemetry/internal/image_processing/frame_generator.py
+++ /dev/null
@@ -1,62 +0,0 @@
-# Copyright 2014 The Chromium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-import abc
-
-
-class FrameReadError(Exception):
- pass
-
-
-class FrameGenerator(object):
- """ Defines an interface for reading input frames.
-
- Attributes:
- _generator: A reference to the created generator.
- """
- __metaclass__ = abc.ABCMeta
-
- def __init__(self):
- """ Initializes the FrameGenerator object. """
- self._generator = self._CreateGenerator()
-
- @abc.abstractmethod
- def _CreateGenerator(self):
- """ Creates a new generator.
-
- Implemented in derived classes.
-
- Raises:
- FrameReadError: A error occurred in reading the frame.
- """
- raise NotImplementedError
-
- @property
- def Generator(self):
- """ Returns:
- A reference to the created generator.
- """
- return self._generator
-
- @abc.abstractproperty
- def CurrentTimestamp(self):
- """ Returns:
- float, The timestamp of the current frame in milliseconds.
- """
- raise NotImplementedError
-
- @abc.abstractproperty
- def CurrentFrameNumber(self):
- """ Returns:
- int, The frame index of the current frame.
- """
- raise NotImplementedError
-
- @abc.abstractproperty
- def Dimensions(self):
- """ Returns:
- The dimensions of the frame sequence as a tuple int (width, height).
- This value should be constant across frames.
- """
- raise NotImplementedError

Powered by Google App Engine
This is Rietveld 408576698