nx_metadata_sdk  1.0
Metadata SDK
pixel_format.h
1 // Copyright 2018-present Network Optix, Inc. Licensed under MPL 2.0: www.mozilla.org/MPL/2.0/
2 
3 #pragma once
4 
5 #include <string>
6 #include <vector>
7 
8 #include <nx/sdk/analytics/i_uncompressed_video_frame.h>
9 
10 namespace nx::sdk::analytics {
11 
13 bool pixelFormatFromStdString(
14  const std::string& s, IUncompressedVideoFrame::PixelFormat* outPixelFormat);
15 
20 std::string pixelFormatToStdString(IUncompressedVideoFrame::PixelFormat pixelFormat);
21 
22 std::string allPixelFormatsToStdString(const std::string& separator);
23 
25 {
26  IUncompressedVideoFrame::PixelFormat pixelFormat;
27  std::string name;
28 
29  int planeCount;
30  int lumaBitsPerPixel;
33 };
34 
36 const PixelFormatDescriptor* getPixelFormatDescriptor(
37  IUncompressedVideoFrame::PixelFormat pixelFormat);
38 
39 std::vector<IUncompressedVideoFrame::PixelFormat> getAllPixelFormats();
40 
41 } // namespace nx::sdk::analytics
Definition: consuming_device_agent.cpp:21
int chromaWidthFactor
Definition: pixel_format.h:32
Definition: pixel_format.h:24
int chromaHeightFactor
Definition: pixel_format.h:31