Move VideoCodecType from common_types.h to api/video/video_codec_type.h
Bug: webrtc:7660 Change-Id: I9381364a64113dbb622b26acbf2b71228c3c4b96 Reviewed-on: https://webrtc-review.googlesource.com/c/111480 Reviewed-by: Karl Wiberg <kwiberg@webrtc.org> Commit-Queue: Niels Moller <nisse@webrtc.org> Cr-Commit-Position: refs/heads/master@{#25710}
This commit is contained in:
1
BUILD.gn
1
BUILD.gn
@ -439,6 +439,7 @@ rtc_source_set("webrtc_common") {
|
|||||||
deps = [
|
deps = [
|
||||||
"api:array_view",
|
"api:array_view",
|
||||||
"api/video:video_bitrate_allocation",
|
"api/video:video_bitrate_allocation",
|
||||||
|
"api/video:video_frame",
|
||||||
"rtc_base:checks",
|
"rtc_base:checks",
|
||||||
"//third_party/abseil-cpp/absl/strings",
|
"//third_party/abseil-cpp/absl/strings",
|
||||||
]
|
]
|
||||||
|
@ -15,6 +15,7 @@ rtc_source_set("video_frame") {
|
|||||||
"color_space.h",
|
"color_space.h",
|
||||||
"hdr_metadata.cc",
|
"hdr_metadata.cc",
|
||||||
"hdr_metadata.h",
|
"hdr_metadata.h",
|
||||||
|
"video_codec_type.h",
|
||||||
"video_content_type.cc",
|
"video_content_type.cc",
|
||||||
"video_content_type.h",
|
"video_content_type.h",
|
||||||
"video_frame.cc",
|
"video_frame.cc",
|
||||||
|
@ -16,6 +16,7 @@
|
|||||||
#include "absl/types/optional.h"
|
#include "absl/types/optional.h"
|
||||||
#include "api/video/hdr_metadata.h"
|
#include "api/video/hdr_metadata.h"
|
||||||
#include "api/video/video_bitrate_allocation.h"
|
#include "api/video/video_bitrate_allocation.h"
|
||||||
|
#include "api/video/video_codec_type.h"
|
||||||
#include "api/video/video_content_type.h"
|
#include "api/video/video_content_type.h"
|
||||||
#include "api/video/video_rotation.h"
|
#include "api/video/video_rotation.h"
|
||||||
#include "api/video/video_timing.h"
|
#include "api/video/video_timing.h"
|
||||||
|
30
api/video/video_codec_type.h
Normal file
30
api/video/video_codec_type.h
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2018 The WebRTC project authors. All Rights Reserved.
|
||||||
|
*
|
||||||
|
* Use of this source code is governed by a BSD-style license
|
||||||
|
* that can be found in the LICENSE file in the root of the source
|
||||||
|
* tree. An additional intellectual property rights grant can be found
|
||||||
|
* in the file PATENTS. All contributing project authors may
|
||||||
|
* be found in the AUTHORS file in the root of the source tree.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef API_VIDEO_VIDEO_CODEC_TYPE_H_
|
||||||
|
#define API_VIDEO_VIDEO_CODEC_TYPE_H_
|
||||||
|
|
||||||
|
namespace webrtc {
|
||||||
|
|
||||||
|
// Video codec types
|
||||||
|
enum VideoCodecType {
|
||||||
|
// There are various memset(..., 0, ...) calls in the code that rely on
|
||||||
|
// kVideoCodecGeneric being zero.
|
||||||
|
kVideoCodecGeneric = 0,
|
||||||
|
kVideoCodecVP8,
|
||||||
|
kVideoCodecVP9,
|
||||||
|
kVideoCodecH264,
|
||||||
|
kVideoCodecI420,
|
||||||
|
kVideoCodecMultiplex,
|
||||||
|
};
|
||||||
|
|
||||||
|
} // namespace webrtc
|
||||||
|
|
||||||
|
#endif // API_VIDEO_VIDEO_CODEC_TYPE_H_
|
@ -16,6 +16,7 @@
|
|||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
#include "api/video/video_bitrate_allocation.h"
|
#include "api/video/video_bitrate_allocation.h"
|
||||||
|
#include "api/video/video_codec_type.h"
|
||||||
#include "common_types.h" // NOLINT(build/include)
|
#include "common_types.h" // NOLINT(build/include)
|
||||||
#include "rtc_base/system/rtc_export.h"
|
#include "rtc_base/system/rtc_export.h"
|
||||||
|
|
||||||
|
@ -17,6 +17,8 @@
|
|||||||
#include "absl/strings/match.h"
|
#include "absl/strings/match.h"
|
||||||
// TODO(sprang): Remove this include when all usage includes it directly.
|
// TODO(sprang): Remove this include when all usage includes it directly.
|
||||||
#include "api/video/video_bitrate_allocation.h"
|
#include "api/video/video_bitrate_allocation.h"
|
||||||
|
// TODO(bugs.webrtc.org/7660): Delete include once downstream code is updated.
|
||||||
|
#include "api/video/video_codec_type.h"
|
||||||
#include "rtc_base/checks.h"
|
#include "rtc_base/checks.h"
|
||||||
|
|
||||||
#if defined(_MSC_VER)
|
#if defined(_MSC_VER)
|
||||||
@ -243,18 +245,6 @@ enum Profile {
|
|||||||
|
|
||||||
} // namespace H264
|
} // namespace H264
|
||||||
|
|
||||||
// Video codec types
|
|
||||||
enum VideoCodecType {
|
|
||||||
// There are various memset(..., 0, ...) calls in the code that rely on
|
|
||||||
// kVideoCodecGeneric being zero.
|
|
||||||
kVideoCodecGeneric = 0,
|
|
||||||
kVideoCodecVP8,
|
|
||||||
kVideoCodecVP9,
|
|
||||||
kVideoCodecH264,
|
|
||||||
kVideoCodecI420,
|
|
||||||
kVideoCodecMultiplex,
|
|
||||||
};
|
|
||||||
|
|
||||||
struct SpatialLayer {
|
struct SpatialLayer {
|
||||||
bool operator==(const SpatialLayer& other) const;
|
bool operator==(const SpatialLayer& other) const;
|
||||||
bool operator!=(const SpatialLayer& other) const { return !(*this == other); }
|
bool operator!=(const SpatialLayer& other) const { return !(*this == other); }
|
||||||
|
@ -252,8 +252,8 @@ rtc_static_library("rtc_internal_video_codecs") {
|
|||||||
deps += [
|
deps += [
|
||||||
":rtc_constants",
|
":rtc_constants",
|
||||||
":rtc_media_base",
|
":rtc_media_base",
|
||||||
"..:webrtc_common",
|
|
||||||
"../api/video:video_bitrate_allocation",
|
"../api/video:video_bitrate_allocation",
|
||||||
|
"../api/video:video_frame",
|
||||||
"../api/video_codecs:rtc_software_fallback_wrappers",
|
"../api/video_codecs:rtc_software_fallback_wrappers",
|
||||||
"../api/video_codecs:video_codecs_api",
|
"../api/video_codecs:video_codecs_api",
|
||||||
"../call:call_interfaces",
|
"../call:call_interfaces",
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
#include "common_types.h" // NOLINT(build/include)
|
#include "api/video/video_codec_type.h"
|
||||||
#include "media/base/codec.h"
|
#include "media/base/codec.h"
|
||||||
#include "rtc_base/refcount.h"
|
#include "rtc_base/refcount.h"
|
||||||
#include "rtc_base/system/rtc_export.h"
|
#include "rtc_base/system/rtc_export.h"
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
#include "common_types.h" // NOLINT(build/include)
|
#include "api/video/video_codec_type.h"
|
||||||
#include "media/base/codec.h"
|
#include "media/base/codec.h"
|
||||||
#include "rtc_base/system/rtc_export.h"
|
#include "rtc_base/system/rtc_export.h"
|
||||||
|
|
||||||
|
@ -15,6 +15,7 @@
|
|||||||
#include "absl/container/inlined_vector.h"
|
#include "absl/container/inlined_vector.h"
|
||||||
#include "absl/types/optional.h"
|
#include "absl/types/optional.h"
|
||||||
#include "absl/types/variant.h"
|
#include "absl/types/variant.h"
|
||||||
|
#include "api/video/video_codec_type.h"
|
||||||
#include "api/video/video_content_type.h"
|
#include "api/video/video_content_type.h"
|
||||||
#include "api/video/video_frame_marking.h"
|
#include "api/video/video_frame_marking.h"
|
||||||
#include "api/video/video_rotation.h"
|
#include "api/video/video_rotation.h"
|
||||||
|
@ -78,7 +78,6 @@ rtc_source_set("rtc_base_approved") {
|
|||||||
":safe_compare",
|
":safe_compare",
|
||||||
":safe_minmax",
|
":safe_minmax",
|
||||||
":type_traits",
|
":type_traits",
|
||||||
"..:webrtc_common",
|
|
||||||
"../api:array_view",
|
"../api:array_view",
|
||||||
"../system_wrappers:field_trial",
|
"../system_wrappers:field_trial",
|
||||||
"experiments:field_trial_parser",
|
"experiments:field_trial_parser",
|
||||||
|
@ -56,7 +56,6 @@ rtc_static_library("quality_scaling_experiment") {
|
|||||||
]
|
]
|
||||||
deps = [
|
deps = [
|
||||||
"../:rtc_base_approved",
|
"../:rtc_base_approved",
|
||||||
"../..:webrtc_common",
|
|
||||||
"../../api/video_codecs:video_codecs_api",
|
"../../api/video_codecs:video_codecs_api",
|
||||||
"../../system_wrappers:field_trial",
|
"../../system_wrappers:field_trial",
|
||||||
"//third_party/abseil-cpp/absl/types:optional",
|
"//third_party/abseil-cpp/absl/types:optional",
|
||||||
|
@ -12,7 +12,6 @@
|
|||||||
|
|
||||||
#include "absl/types/optional.h"
|
#include "absl/types/optional.h"
|
||||||
#include "api/video_codecs/video_encoder.h"
|
#include "api/video_codecs/video_encoder.h"
|
||||||
#include "common_types.h" // NOLINT(build/include)
|
|
||||||
|
|
||||||
namespace webrtc {
|
namespace webrtc {
|
||||||
class QualityScalingExperiment {
|
class QualityScalingExperiment {
|
||||||
|
@ -15,8 +15,8 @@
|
|||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
#include "absl/types/optional.h"
|
#include "absl/types/optional.h"
|
||||||
|
#include "api/video/video_codec_type.h"
|
||||||
#include "api/video/video_content_type.h"
|
#include "api/video/video_content_type.h"
|
||||||
#include "common_types.h" // NOLINT(build/include)
|
|
||||||
#include "rtc_base/numerics/sample_counter.h"
|
#include "rtc_base/numerics/sample_counter.h"
|
||||||
|
|
||||||
namespace webrtc {
|
namespace webrtc {
|
||||||
|
Reference in New Issue
Block a user