summaryrefslogtreecommitdiff
path: root/chromium/media/base/decode_status.h
blob: 790eb5fff8c102223dcb94d521c19bc892c94977 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Copyright 2016 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.

#ifndef MEDIA_BASE_DECODE_STATUS_H_
#define MEDIA_BASE_DECODE_STATUS_H_

#include <iosfwd>

#include "media/base/media_export.h"

namespace media {

enum class DecodeStatus {
  OK = 0,        // Everything went as planned.
  ABORTED,       // Read aborted due to Reset() during pending read.
  DECODE_ERROR,  // Decoder returned decode error. Note: Prefixed by DECODE_
                 // since ERROR is a reserved name (special macro) on Windows.
};

// Helper function so that DecodeStatus can be printed easily.
MEDIA_EXPORT std::ostream& operator<<(std::ostream& os,
                                      const DecodeStatus& status);

}  // namespace media

#endif  // MEDIA_BASE_DECODE_STATUS_H_