• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2020 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #include <v4l2_codec2/components/VideoDecoder.h>
6 
7 namespace android {
8 
9 // static
DecodeStatusToString(VideoDecoder::DecodeStatus status)10 const char* VideoDecoder::DecodeStatusToString(VideoDecoder::DecodeStatus status) {
11     switch (status) {
12     case VideoDecoder::DecodeStatus::kOk:
13         return "OK";
14     case VideoDecoder::DecodeStatus::kAborted:
15         return "ABORTED";
16     case VideoDecoder::DecodeStatus::kError:
17         return "ERROR";
18     }
19 }
20 
21 VideoDecoder::~VideoDecoder() = default;
22 
23 }  // namespace android
24