Remove color space enum value kInvalid
kInvalid does not have a corresponding entry in the standard is therefore removed. kUNSPECIFIED should be used instead. Bug: webrtc:8651 Change-Id: Iee8cd85830aedaa4a9102251121b9975d40fa5e2 Reviewed-on: https://webrtc-review.googlesource.com/c/112421 Reviewed-by: Erik Språng <sprang@webrtc.org> Reviewed-by: Niels Moller <nisse@webrtc.org> Commit-Queue: Johannes Kron <kron@webrtc.org> Cr-Commit-Position: refs/heads/master@{#25871}
This commit is contained in:

committed by
Commit Bot

parent
93dac8ec36
commit
3b923d95d5
@ -67,9 +67,9 @@ int GetCpuSpeed(int width, int height) {
|
||||
ColorSpace ExtractVP9ColorSpace(vpx_color_space_t space_t,
|
||||
vpx_color_range_t range_t,
|
||||
unsigned int bit_depth) {
|
||||
ColorSpace::PrimaryID primaries = ColorSpace::PrimaryID::kInvalid;
|
||||
ColorSpace::TransferID transfer = ColorSpace::TransferID::kInvalid;
|
||||
ColorSpace::MatrixID matrix = ColorSpace::MatrixID::kInvalid;
|
||||
ColorSpace::PrimaryID primaries = ColorSpace::PrimaryID::kUNSPECIFIED;
|
||||
ColorSpace::TransferID transfer = ColorSpace::TransferID::kUNSPECIFIED;
|
||||
ColorSpace::MatrixID matrix = ColorSpace::MatrixID::kUNSPECIFIED;
|
||||
switch (space_t) {
|
||||
case VPX_CS_BT_601:
|
||||
case VPX_CS_SMPTE_170:
|
||||
|
Reference in New Issue
Block a user