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
|
// 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.
|
// TODO(magjed): Move this and other H264 related classes out to their own file.
|
||||||
namespace H264 {
|
namespace H264 {
|
||||||
|
|
||||||
|
@ -39,7 +39,6 @@ rtc_static_library("common_video") {
|
|||||||
]
|
]
|
||||||
|
|
||||||
deps = [
|
deps = [
|
||||||
"..:webrtc_common",
|
|
||||||
"../api:scoped_refptr",
|
"../api:scoped_refptr",
|
||||||
"../api/task_queue",
|
"../api/task_queue",
|
||||||
"../api/video:encoded_image",
|
"../api/video:encoded_image",
|
||||||
|
@ -22,10 +22,28 @@
|
|||||||
#include "api/scoped_refptr.h"
|
#include "api/scoped_refptr.h"
|
||||||
#include "api/video/video_frame.h"
|
#include "api/video/video_frame.h"
|
||||||
#include "api/video/video_frame_buffer.h"
|
#include "api/video/video_frame_buffer.h"
|
||||||
#include "common_types.h" // NOLINT(build/include)
|
|
||||||
|
|
||||||
namespace webrtc {
|
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.
|
// This is the max PSNR value our algorithms can return.
|
||||||
const double kPerfectPSNR = 48.0f;
|
const double kPerfectPSNR = 48.0f;
|
||||||
|
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
#define MODULES_VIDEO_CAPTURE_VIDEO_CAPTURE_DEFINES_H_
|
#define MODULES_VIDEO_CAPTURE_VIDEO_CAPTURE_DEFINES_H_
|
||||||
|
|
||||||
#include "api/video/video_frame.h"
|
#include "api/video/video_frame.h"
|
||||||
|
#include "common_video/libyuv/include/webrtc_libyuv.h"
|
||||||
#include "modules/include/module_common_types.h"
|
#include "modules/include/module_common_types.h"
|
||||||
|
|
||||||
namespace webrtc {
|
namespace webrtc {
|
||||||
|
Reference in New Issue
Block a user