Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(36)

Unified Diff: webrtc/sdk/objc/Framework/Classes/corevideo_frame_buffer.h

Issue 2911083003: Reland of Split iOS sdk in to separate targets (Closed)
Patch Set: adding backward compatibility header Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webrtc/sdk/objc/Framework/Classes/corevideo_frame_buffer.h
diff --git a/webrtc/sdk/objc/Framework/Classes/corevideo_frame_buffer.h b/webrtc/sdk/objc/Framework/Classes/corevideo_frame_buffer.h
index 3bf6498f32e8d559cb05b7ce307ec0f46a2bdd33..0d72781d9660f8a732d6c44eebfb2fc2a64818bf 100644
--- a/webrtc/sdk/objc/Framework/Classes/corevideo_frame_buffer.h
+++ b/webrtc/sdk/objc/Framework/Classes/corevideo_frame_buffer.h
@@ -11,49 +11,10 @@
#ifndef WEBRTC_SDK_OBJC_FRAMEWORK_CLASSES_COREVIDEO_FRAME_BUFFER_H_
#define WEBRTC_SDK_OBJC_FRAMEWORK_CLASSES_COREVIDEO_FRAME_BUFFER_H_
-#include <CoreVideo/CoreVideo.h>
+// TOBO(mbonadei): remove me!
+// This is a backward compatibility header. It will be removed as soon as
+// dowstream projects will be updated.
-#include <vector>
-
-#include "webrtc/common_video/include/video_frame_buffer.h"
-
-namespace webrtc {
-
-class CoreVideoFrameBuffer : public NativeHandleBuffer {
- public:
- explicit CoreVideoFrameBuffer(CVPixelBufferRef pixel_buffer);
- CoreVideoFrameBuffer(CVPixelBufferRef pixel_buffer,
- int adapted_width,
- int adapted_height,
- int crop_width,
- int crop_height,
- int crop_x,
- int crop_y);
- ~CoreVideoFrameBuffer() override;
-
- rtc::scoped_refptr<VideoFrameBuffer> NativeToI420Buffer() override;
- // Returns true if the internal pixel buffer needs to be cropped.
- bool RequiresCropping() const;
- // Crop and scales the internal pixel buffer to the output pixel buffer. The
- // tmp buffer is used for intermediary splitting the UV channels. This
- // function returns true if successful.
- bool CropAndScaleTo(std::vector<uint8_t>* tmp_buffer,
- CVPixelBufferRef output_pixel_buffer) const;
-
- private:
- CVPixelBufferRef pixel_buffer_;
- // buffer_width/height is the actual pixel buffer resolution. The width/height
- // in NativeHandleBuffer, i.e. width()/height(), is the resolution we will
- // scale to in NativeToI420Buffer(). Cropping happens before scaling, so:
- // buffer_width >= crop_width >= width().
- const int buffer_width_;
- const int buffer_height_;
- const int crop_width_;
- const int crop_height_;
- const int crop_x_;
- const int crop_y_;
-};
-
-} // namespace webrtc
+#include "webrtc/sdk/objc/Framework/Classes/Video/corevideo_frame_buffer.h"
#endif // WEBRTC_SDK_OBJC_FRAMEWORK_CLASSES_COREVIDEO_FRAME_BUFFER_H_

Powered by Google App Engine
This is Rietveld 408576698