Move enum VideoType out of common_types.h
New location is common_video/libyuv/include/webrtc_libyuv.h. Bug: webrtc:5876 Change-Id: Ied439a83417008a086bd496a8d13042398ff1e99 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/131330 Reviewed-by: Karl Wiberg <kwiberg@webrtc.org> Commit-Queue: Niels Moller <nisse@webrtc.org> Cr-Commit-Position: refs/heads/master@{#27478}
This commit is contained in:
@ -142,27 +142,6 @@ enum { kRtpCsrcSize = 15 }; // RFC 3550 page 13
|
||||
// Video specific types
|
||||
// ==================================================================
|
||||
|
||||
// TODO(nisse): Delete, and switch to fourcc values everywhere?
|
||||
// Supported video types.
|
||||
enum class VideoType {
|
||||
kUnknown,
|
||||
kI420,
|
||||
kIYUV,
|
||||
kRGB24,
|
||||
kABGR,
|
||||
kARGB,
|
||||
kARGB4444,
|
||||
kRGB565,
|
||||
kARGB1555,
|
||||
kYUY2,
|
||||
kYV12,
|
||||
kUYVY,
|
||||
kMJPEG,
|
||||
kNV21,
|
||||
kNV12,
|
||||
kBGRA,
|
||||
};
|
||||
|
||||
// TODO(magjed): Move this and other H264 related classes out to their own file.
|
||||
namespace H264 {
|
||||
|
||||
|
@ -39,7 +39,6 @@ rtc_static_library("common_video") {
|
||||
]
|
||||
|
||||
deps = [
|
||||
"..:webrtc_common",
|
||||
"../api:scoped_refptr",
|
||||
"../api/task_queue",
|
||||
"../api/video:encoded_image",
|
||||
|
@ -22,10 +22,28 @@
|
||||
#include "api/scoped_refptr.h"
|
||||
#include "api/video/video_frame.h"
|
||||
#include "api/video/video_frame_buffer.h"
|
||||
#include "common_types.h" // NOLINT(build/include)
|
||||
|
||||
namespace webrtc {
|
||||
|
||||
enum class VideoType {
|
||||
kUnknown,
|
||||
kI420,
|
||||
kIYUV,
|
||||
kRGB24,
|
||||
kABGR,
|
||||
kARGB,
|
||||
kARGB4444,
|
||||
kRGB565,
|
||||
kARGB1555,
|
||||
kYUY2,
|
||||
kYV12,
|
||||
kUYVY,
|
||||
kMJPEG,
|
||||
kNV21,
|
||||
kNV12,
|
||||
kBGRA,
|
||||
};
|
||||
|
||||
// This is the max PSNR value our algorithms can return.
|
||||
const double kPerfectPSNR = 48.0f;
|
||||
|
||||
|
@ -12,6 +12,7 @@
|
||||
#define MODULES_VIDEO_CAPTURE_VIDEO_CAPTURE_DEFINES_H_
|
||||
|
||||
#include "api/video/video_frame.h"
|
||||
#include "common_video/libyuv/include/webrtc_libyuv.h"
|
||||
#include "modules/include/module_common_types.h"
|
||||
|
||||
namespace webrtc {
|
||||
|
Reference in New Issue
Block a user