summaryrefslogtreecommitdiffstats
path: root/remoting/codec/video_decoder.h
diff options
context:
space:
mode:
authorsergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-09-13 22:43:41 +0000
committersergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-09-13 22:43:41 +0000
commit8b6d3d07dc51f52f3079f300262c4e3c58645ee5 (patch)
tree3e1bcc9f51197d784222cbc35874882559a990b9 /remoting/codec/video_decoder.h
parentf6fad5a315506ff9d8fc49743917df8b201591c8 (diff)
downloadchromium_src-8b6d3d07dc51f52f3079f300262c4e3c58645ee5.zip
chromium_src-8b6d3d07dc51f52f3079f300262c4e3c58645ee5.tar.gz
chromium_src-8b6d3d07dc51f52f3079f300262c4e3c58645ee5.tar.bz2
Simplify VideoEncoder interface.
This should also avoid assert in the linked bug. BUG=284775 R=wez@chromium.org Review URL: https://codereview.chromium.org/23477059 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@223152 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/codec/video_decoder.h')
-rw-r--r--remoting/codec/video_decoder.h10
1 files changed, 3 insertions, 7 deletions
diff --git a/remoting/codec/video_decoder.h b/remoting/codec/video_decoder.h
index 4e1d39f..4730d3a 100644
--- a/remoting/codec/video_decoder.h
+++ b/remoting/codec/video_decoder.h
@@ -15,18 +15,14 @@ namespace remoting {
// Interface for a decoder that takes a stream of bytes from the network and
// outputs frames of data.
-//
-// TODO(ajwong): Beef up this documentation once the API stablizes.
class VideoDecoder {
public:
// DecodeResult is returned from DecodePacket() and indicates current state
// of the decoder. DECODE_DONE means that last packet for the frame was
- // processed, and the frame can be displayed now. DECODE_IN_PROGRESS
- // indicates that the decoder must receive more data before the frame can be
- // displayed. DECODE_ERROR is returned if there was an error in the stream.
+ // processed, and the frame can be displayed now. DECODE_ERROR is returned if
+ // there was an error in the stream.
enum DecodeResult {
- DECODE_ERROR = -1,
- DECODE_IN_PROGRESS,
+ DECODE_ERROR,
DECODE_DONE,
};