123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- #ifndef RTC_TOOLS_FRAME_ANALYZER_VIDEO_GEOMETRY_ALIGNER_H_
- #define RTC_TOOLS_FRAME_ANALYZER_VIDEO_GEOMETRY_ALIGNER_H_
- #include "api/video/video_frame_buffer.h"
- #include "rtc_tools/video_file_reader.h"
- namespace webrtc {
- namespace test {
- struct CropRegion {
-
-
- int left = 0;
- int right = 0;
- int top = 0;
- int bottom = 0;
- };
- rtc::scoped_refptr<I420BufferInterface> CropAndZoom(
- const CropRegion& crop_region,
- const rtc::scoped_refptr<I420BufferInterface>& frame);
- CropRegion CalculateCropRegion(
- const rtc::scoped_refptr<I420BufferInterface>& reference_frame,
- const rtc::scoped_refptr<I420BufferInterface>& test_frame);
- rtc::scoped_refptr<I420BufferInterface> AdjustCropping(
- const rtc::scoped_refptr<I420BufferInterface>& reference_frame,
- const rtc::scoped_refptr<I420BufferInterface>& test_frame);
- rtc::scoped_refptr<Video> AdjustCropping(
- const rtc::scoped_refptr<Video>& reference_video,
- const rtc::scoped_refptr<Video>& test_video);
- }
- }
- #endif
|