blob: 1eccecaa11f65f3210bc15aa47d23a9a07545735 (
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
28
29
30
31
32
33
34
35
36
37
38
|
// Copyright 2020 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.
//#define LOG_NDEBUG 0
#define LOG_TAG "VideoTypes"
#include <v4l2_codec2/common/VideoTypes.h>
#include <log/log.h>
namespace android {
const char* VideoCodecToString(VideoCodec codec) {
switch (codec) {
case VideoCodec::H264:
return "H264";
case VideoCodec::VP8:
return "VP8";
case VideoCodec::VP9:
return "VP9";
}
}
const char* HalPixelFormatToString(HalPixelFormat format) {
switch (format) {
case HalPixelFormat::UNKNOWN:
return "Unknown";
case HalPixelFormat::YCBCR_420_888:
return "YCBCR_420_888";
case HalPixelFormat::YV12:
return "YV12";
case HalPixelFormat::NV12:
return "NV12";
}
}
} // namespace android
|