Skip to main content

H264DecodeSima.h File

SimaAI H264 decode node wrapper. More...

Included Headers

#include "builder/Node.h" #include "builder/OutputSpec.h" #include <memory> #include <string> #include <vector>

Namespaces Index

namespacesimaai
namespaceneat
namespacenodes

Classes Index

classH264Decode

Description

SimaAI H264 decode node wrapper.

File Listing

The file content with the documentation metadata removed is:

1
6#pragma once
7
8#include "builder/Node.h"
9#include "builder/OutputSpec.h"
10
11#include <memory>
12#include <string>
13#include <vector>
14
15namespace simaai::neat {
16
17class H264Decode final : public Node, public OutputSpecProvider {
18public:
19 H264Decode(int sima_allocator_type = 2, std::string out_format = "NV12",
20 std::string decoder_name = {}, bool raw_output = false, std::string next_element = {},
21 int dec_width = -1, int dec_height = -1, int dec_fps = -1, int num_buffers = -1);
22 std::string kind() const override {
23 return "H264Decode";
24 }
25 NodeCapsBehavior caps_behavior() const override {
26 return NodeCapsBehavior::Dynamic;
27 }
28
29 std::string backend_fragment(int node_index) const override;
30 std::vector<std::string> element_names(int node_index) const override;
31 OutputSpec output_spec(const OutputSpec& input) const override;
32
33 int sima_allocator_type() const {
34 return sima_allocator_type_;
35 }
36 const std::string& out_format() const {
37 return out_format_;
38 }
39 const std::string& decoder_name() const {
40 return decoder_name_;
41 }
42 bool raw_output() const {
43 return raw_output_;
44 }
45 const std::string& next_element() const {
46 return next_element_;
47 }
48 int dec_width() const {
49 return dec_width_;
50 }
51 int dec_height() const {
52 return dec_height_;
53 }
54 int dec_fps() const {
55 return dec_fps_;
56 }
57 int num_buffers() const {
58 return num_buffers_;
59 }
60
61private:
62 int sima_allocator_type_ = 2;
63 std::string out_format_ = "NV12";
64 std::string decoder_name_;
65 bool raw_output_ = false;
66 std::string next_element_;
67 int dec_width_ = -1;
68 int dec_height_ = -1;
69 int dec_fps_ = -1;
70 int num_buffers_ = -1;
71};
72
73} // namespace simaai::neat
74
75namespace simaai::neat::nodes {
76std::shared_ptr<simaai::neat::Node>
77H264Decode(int sima_allocator_type = 2, std::string out_format = "NV12",
78 std::string decoder_name = {}, bool raw_output = false, std::string next_element = {},
79 int dec_width = -1, int dec_height = -1, int dec_fps = -1, int num_buffers = -1);
80} // namespace simaai::neat::nodes

Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.1.