@@ -55,21 +55,21 @@ proto::DeviceFrameFormat toProto(DeviceFrameFormat format) {
5555 switch (format) {
5656 case DeviceFrameFormat::I420 :
5757 return proto::DeviceFrameFormat::DEVICE_FRAME_FORMAT_I420 ;
58- case DeviceFrameFormat::Nv12 :
58+ case DeviceFrameFormat::NV12 :
5959 return proto::DeviceFrameFormat::DEVICE_FRAME_FORMAT_NV12 ;
60- case DeviceFrameFormat::Bgra :
60+ case DeviceFrameFormat::BGRA :
6161 return proto::DeviceFrameFormat::DEVICE_FRAME_FORMAT_BGRA ;
62- case DeviceFrameFormat::Rgb24 :
62+ case DeviceFrameFormat::RGB24 :
6363 return proto::DeviceFrameFormat::DEVICE_FRAME_FORMAT_RGB24 ;
64- case DeviceFrameFormat::Bgr24 :
64+ case DeviceFrameFormat::BGR24 :
6565 return proto::DeviceFrameFormat::DEVICE_FRAME_FORMAT_BGR24 ;
66- case DeviceFrameFormat::Yuyv :
66+ case DeviceFrameFormat::YUYV :
6767 return proto::DeviceFrameFormat::DEVICE_FRAME_FORMAT_YUYV ;
68- case DeviceFrameFormat::Uyvy :
68+ case DeviceFrameFormat::UYVY :
6969 return proto::DeviceFrameFormat::DEVICE_FRAME_FORMAT_UYVY ;
70- case DeviceFrameFormat::Grey :
70+ case DeviceFrameFormat::GREY :
7171 return proto::DeviceFrameFormat::DEVICE_FRAME_FORMAT_GREY ;
72- case DeviceFrameFormat::Mjpeg :
72+ case DeviceFrameFormat::MJPEG :
7373 return proto::DeviceFrameFormat::DEVICE_FRAME_FORMAT_MJPEG ;
7474 }
7575 return proto::DeviceFrameFormat::DEVICE_FRAME_FORMAT_I420 ;
@@ -80,21 +80,21 @@ DeviceFrameFormat fromProto(proto::DeviceFrameFormat format) {
8080 case proto::DeviceFrameFormat::DEVICE_FRAME_FORMAT_I420 :
8181 return DeviceFrameFormat::I420 ;
8282 case proto::DeviceFrameFormat::DEVICE_FRAME_FORMAT_NV12 :
83- return DeviceFrameFormat::Nv12 ;
83+ return DeviceFrameFormat::NV12 ;
8484 case proto::DeviceFrameFormat::DEVICE_FRAME_FORMAT_BGRA :
85- return DeviceFrameFormat::Bgra ;
85+ return DeviceFrameFormat::BGRA ;
8686 case proto::DeviceFrameFormat::DEVICE_FRAME_FORMAT_RGB24 :
87- return DeviceFrameFormat::Rgb24 ;
87+ return DeviceFrameFormat::RGB24 ;
8888 case proto::DeviceFrameFormat::DEVICE_FRAME_FORMAT_BGR24 :
89- return DeviceFrameFormat::Bgr24 ;
89+ return DeviceFrameFormat::BGR24 ;
9090 case proto::DeviceFrameFormat::DEVICE_FRAME_FORMAT_YUYV :
91- return DeviceFrameFormat::Yuyv ;
91+ return DeviceFrameFormat::YUYV ;
9292 case proto::DeviceFrameFormat::DEVICE_FRAME_FORMAT_UYVY :
93- return DeviceFrameFormat::Uyvy ;
93+ return DeviceFrameFormat::UYVY ;
9494 case proto::DeviceFrameFormat::DEVICE_FRAME_FORMAT_GREY :
95- return DeviceFrameFormat::Grey ;
95+ return DeviceFrameFormat::GREY ;
9696 case proto::DeviceFrameFormat::DEVICE_FRAME_FORMAT_MJPEG :
97- return DeviceFrameFormat::Mjpeg ;
97+ return DeviceFrameFormat::MJPEG ;
9898 }
9999 return DeviceFrameFormat::I420 ;
100100}
0 commit comments