Move class VideoCodec from common_types.h to its own api header file.
Bug: webrtc:7660 Change-Id: I91f19bfc2565461328f30081f8383e136419aefb Reviewed-on: https://webrtc-review.googlesource.com/79881 Commit-Queue: Niels Moller <nisse@webrtc.org> Reviewed-by: Rasmus Brandt <brandtr@webrtc.org> Reviewed-by: Danil Chapovalov <danilchap@webrtc.org> Reviewed-by: Karl Wiberg <kwiberg@webrtc.org> Cr-Commit-Position: refs/heads/master@{#23544}
This commit is contained in:
@ -456,6 +456,7 @@ rtc_static_library("webrtc_vp9_helpers") {
|
||||
deps = [
|
||||
":video_codec_interface",
|
||||
"../..:webrtc_common",
|
||||
"../../api/video_codecs:video_codecs_api",
|
||||
"../../common_video",
|
||||
"../../rtc_base:checks",
|
||||
]
|
||||
|
||||
@ -15,8 +15,7 @@
|
||||
#include <vector>
|
||||
#include <memory>
|
||||
|
||||
#include "common_types.h" // NOLINT(build/include)
|
||||
#include "typedefs.h" // NOLINT(build/include)
|
||||
#include "api/video_codecs/video_codec.h"
|
||||
|
||||
#define VP8_TS_MAX_PERIODICITY 16
|
||||
#define VP8_TS_MAX_LAYERS 5
|
||||
|
||||
@ -15,7 +15,7 @@
|
||||
|
||||
#include <vector>
|
||||
|
||||
#include "common_types.h" // NOLINT(build/include)
|
||||
#include "api/video_codecs/video_codec.h"
|
||||
#include "common_video/include/video_bitrate_allocator.h"
|
||||
|
||||
namespace webrtc {
|
||||
|
||||
@ -23,6 +23,7 @@
|
||||
|
||||
#include "api/fec_controller.h"
|
||||
#include "api/video/video_frame.h"
|
||||
#include "api/video_codecs/video_codec.h"
|
||||
#include "modules/include/module.h"
|
||||
#include "modules/include/module_common_types.h"
|
||||
#include "modules/video_coding/include/video_coding_defines.h"
|
||||
|
||||
@ -11,7 +11,7 @@
|
||||
#ifndef MODULES_VIDEO_CODING_UTILITY_DEFAULT_VIDEO_BITRATE_ALLOCATOR_H_
|
||||
#define MODULES_VIDEO_CODING_UTILITY_DEFAULT_VIDEO_BITRATE_ALLOCATOR_H_
|
||||
|
||||
#include "common_types.h" // NOLINT(build/include)
|
||||
#include "api/video_codecs/video_codec.h"
|
||||
#include "common_video/include/video_bitrate_allocator.h"
|
||||
|
||||
namespace webrtc {
|
||||
|
||||
@ -140,9 +140,9 @@ VideoCodec VideoCodecInitializer::VideoEncoderConfigToVideoCodec(
|
||||
sim_stream->active = streams[i].active;
|
||||
|
||||
video_codec.width =
|
||||
std::max(video_codec.width, static_cast<uint16_t>(streams[i].width));
|
||||
std::max(video_codec.width, streams[i].width);
|
||||
video_codec.height =
|
||||
std::max(video_codec.height, static_cast<uint16_t>(streams[i].height));
|
||||
std::max(video_codec.height, streams[i].height);
|
||||
video_codec.minBitrate =
|
||||
std::min(static_cast<uint16_t>(video_codec.minBitrate),
|
||||
static_cast<uint16_t>(streams[i].min_bitrate_bps / 1000));
|
||||
|
||||
Reference in New Issue
Block a user