Actually move CoreVideoFrameBuffer from webrtc/common_video/ to webrtc/sdk/objc/
The previous reland https://codereview.webrtc.org/2860033002/ didn't actually move CoreVideoFrameBuffer because of a rebase mistake. This CL moves the files. BUG=None Review-Url: https://codereview.webrtc.org/2864303002 Cr-Commit-Position: refs/heads/master@{#18048}
This commit is contained in:
@ -73,14 +73,6 @@ rtc_static_library("common_video") {
|
|||||||
# Need to add a directory normally exported by libyuv.
|
# Need to add a directory normally exported by libyuv.
|
||||||
include_dirs += [ "$rtc_libyuv_dir/include" ]
|
include_dirs += [ "$rtc_libyuv_dir/include" ]
|
||||||
}
|
}
|
||||||
|
|
||||||
if (is_ios || is_mac) {
|
|
||||||
sources += [
|
|
||||||
"corevideo_frame_buffer.cc",
|
|
||||||
"include/corevideo_frame_buffer.h",
|
|
||||||
]
|
|
||||||
libs = [ "CoreVideo.framework" ]
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (rtc_include_tests) {
|
if (rtc_include_tests) {
|
||||||
|
|||||||
@ -130,6 +130,8 @@ void NV12Scale(std::vector<uint8_t>* tmp_buffer,
|
|||||||
// than separate NV12->I420 + I420->I420 scaling.
|
// than separate NV12->I420 + I420->I420 scaling.
|
||||||
class NV12ToI420Scaler {
|
class NV12ToI420Scaler {
|
||||||
public:
|
public:
|
||||||
|
NV12ToI420Scaler();
|
||||||
|
~NV12ToI420Scaler();
|
||||||
void NV12ToI420Scale(const uint8_t* src_y, int src_stride_y,
|
void NV12ToI420Scale(const uint8_t* src_y, int src_stride_y,
|
||||||
const uint8_t* src_uv, int src_stride_uv,
|
const uint8_t* src_uv, int src_stride_uv,
|
||||||
int src_width, int src_height,
|
int src_width, int src_height,
|
||||||
|
|||||||
@ -367,6 +367,9 @@ void NV12Scale(std::vector<uint8_t>* tmp_buffer,
|
|||||||
dst_chroma_width, dst_chroma_height);
|
dst_chroma_width, dst_chroma_height);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
NV12ToI420Scaler::NV12ToI420Scaler() = default;
|
||||||
|
NV12ToI420Scaler::~NV12ToI420Scaler() = default;
|
||||||
|
|
||||||
void NV12ToI420Scaler::NV12ToI420Scale(
|
void NV12ToI420Scaler::NV12ToI420Scale(
|
||||||
const uint8_t* src_y, int src_stride_y,
|
const uint8_t* src_y, int src_stride_y,
|
||||||
const uint8_t* src_uv, int src_stride_uv,
|
const uint8_t* src_uv, int src_stride_uv,
|
||||||
|
|||||||
@ -212,6 +212,7 @@ if (is_ios || is_mac) {
|
|||||||
]
|
]
|
||||||
|
|
||||||
deps = [
|
deps = [
|
||||||
|
":rtc_sdk_corevideoframebuffer",
|
||||||
":webrtc_h264_video_toolbox",
|
":webrtc_h264_video_toolbox",
|
||||||
"../api:video_frame_api",
|
"../api:video_frame_api",
|
||||||
"../base:rtc_base",
|
"../base:rtc_base",
|
||||||
@ -425,6 +426,20 @@ if (is_ios || is_mac) {
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
rtc_static_library("rtc_sdk_corevideoframebuffer") {
|
||||||
|
sources = [
|
||||||
|
"objc/Framework/Classes/corevideo_frame_buffer.cc",
|
||||||
|
"objc/Framework/Classes/corevideo_frame_buffer.h",
|
||||||
|
]
|
||||||
|
|
||||||
|
deps = [
|
||||||
|
"../base:rtc_base_approved",
|
||||||
|
"../common_video",
|
||||||
|
]
|
||||||
|
|
||||||
|
libs = [ "CoreVideo.framework" ]
|
||||||
|
}
|
||||||
|
|
||||||
rtc_static_library("webrtc_h264_video_toolbox") {
|
rtc_static_library("webrtc_h264_video_toolbox") {
|
||||||
sources = [
|
sources = [
|
||||||
"objc/Framework/Classes/h264_video_toolbox_decoder.cc",
|
"objc/Framework/Classes/h264_video_toolbox_decoder.cc",
|
||||||
@ -439,6 +454,7 @@ if (is_ios || is_mac) {
|
|||||||
|
|
||||||
deps = [
|
deps = [
|
||||||
":rtc_sdk_common_objc",
|
":rtc_sdk_common_objc",
|
||||||
|
":rtc_sdk_corevideoframebuffer",
|
||||||
"../api:video_frame_api",
|
"../api:video_frame_api",
|
||||||
"../base:rtc_base_approved",
|
"../base:rtc_base_approved",
|
||||||
"../common_video",
|
"../common_video",
|
||||||
|
|||||||
@ -3,6 +3,7 @@ include_rules = [
|
|||||||
"+webrtc/api",
|
"+webrtc/api",
|
||||||
"+webrtc/common_video/h264",
|
"+webrtc/common_video/h264",
|
||||||
"+webrtc/common_video/include",
|
"+webrtc/common_video/include",
|
||||||
|
"+webrtc/common_video/libyuv/include",
|
||||||
"+webrtc/media",
|
"+webrtc/media",
|
||||||
"+webrtc/modules/video_coding",
|
"+webrtc/modules/video_coding",
|
||||||
"+webrtc/pc",
|
"+webrtc/pc",
|
||||||
|
|||||||
@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
#import "RTCVideoFrame+Private.h"
|
#import "RTCVideoFrame+Private.h"
|
||||||
|
|
||||||
#include "webrtc/common_video/include/corevideo_frame_buffer.h"
|
#include "webrtc/sdk/objc/Framework/Classes/corevideo_frame_buffer.h"
|
||||||
|
|
||||||
@implementation RTCVideoFrame {
|
@implementation RTCVideoFrame {
|
||||||
rtc::scoped_refptr<webrtc::VideoFrameBuffer> _videoBuffer;
|
rtc::scoped_refptr<webrtc::VideoFrameBuffer> _videoBuffer;
|
||||||
|
|||||||
@ -23,7 +23,7 @@
|
|||||||
#include "webrtc/base/checks.h"
|
#include "webrtc/base/checks.h"
|
||||||
#include "webrtc/base/logging.h"
|
#include "webrtc/base/logging.h"
|
||||||
#include "webrtc/base/thread.h"
|
#include "webrtc/base/thread.h"
|
||||||
#include "webrtc/common_video/include/corevideo_frame_buffer.h"
|
#include "webrtc/sdk/objc/Framework/Classes/corevideo_frame_buffer.h"
|
||||||
|
|
||||||
namespace webrtc {
|
namespace webrtc {
|
||||||
|
|
||||||
|
|||||||
@ -8,7 +8,7 @@
|
|||||||
* be found in the AUTHORS file in the root of the source tree.
|
* be found in the AUTHORS file in the root of the source tree.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "webrtc/common_video/include/corevideo_frame_buffer.h"
|
#include "webrtc/sdk/objc/Framework/Classes/corevideo_frame_buffer.h"
|
||||||
|
|
||||||
#include "libyuv/convert.h"
|
#include "libyuv/convert.h"
|
||||||
#include "webrtc/base/checks.h"
|
#include "webrtc/base/checks.h"
|
||||||
@ -20,7 +20,7 @@
|
|||||||
#include "webrtc/api/video/video_frame.h"
|
#include "webrtc/api/video/video_frame.h"
|
||||||
#include "webrtc/base/checks.h"
|
#include "webrtc/base/checks.h"
|
||||||
#include "webrtc/base/logging.h"
|
#include "webrtc/base/logging.h"
|
||||||
#include "webrtc/common_video/include/corevideo_frame_buffer.h"
|
#include "webrtc/sdk/objc/Framework/Classes/corevideo_frame_buffer.h"
|
||||||
#include "webrtc/sdk/objc/Framework/Classes/h264_video_toolbox_nalu.h"
|
#include "webrtc/sdk/objc/Framework/Classes/h264_video_toolbox_nalu.h"
|
||||||
#include "webrtc/video_frame.h"
|
#include "webrtc/video_frame.h"
|
||||||
|
|
||||||
|
|||||||
@ -23,7 +23,7 @@
|
|||||||
#include "webrtc/base/checks.h"
|
#include "webrtc/base/checks.h"
|
||||||
#include "webrtc/base/logging.h"
|
#include "webrtc/base/logging.h"
|
||||||
#include "webrtc/common_video/h264/profile_level_id.h"
|
#include "webrtc/common_video/h264/profile_level_id.h"
|
||||||
#include "webrtc/common_video/include/corevideo_frame_buffer.h"
|
#include "webrtc/sdk/objc/Framework/Classes/corevideo_frame_buffer.h"
|
||||||
#include "webrtc/sdk/objc/Framework/Classes/h264_video_toolbox_nalu.h"
|
#include "webrtc/sdk/objc/Framework/Classes/h264_video_toolbox_nalu.h"
|
||||||
#include "webrtc/system_wrappers/include/clock.h"
|
#include "webrtc/system_wrappers/include/clock.h"
|
||||||
|
|
||||||
|
|||||||
@ -12,7 +12,7 @@
|
|||||||
|
|
||||||
#import "RTCVideoFrame+Private.h"
|
#import "RTCVideoFrame+Private.h"
|
||||||
|
|
||||||
#include "webrtc/common_video/include/corevideo_frame_buffer.h"
|
#include "webrtc/sdk/objc/Framework/Classes/corevideo_frame_buffer.h"
|
||||||
|
|
||||||
namespace webrtc {
|
namespace webrtc {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user