Home
last modified time | relevance | path

Searched refs:opt (Results 1 – 25 of 34) sorted by relevance

12

/drivers/peripheral/codec/test/demo/v2.0/src/
Dcommand_parse.cpp33 void CommandParse::ParseCodingType(const MyOptIndex index, CommandOpt &opt) in ParseCodingType() argument
38 opt.codec = CodecMime::HEVC; in ParseCodingType()
41 opt.codec = CodecMime::VP9; in ParseCodingType()
44 opt.codec = CodecMime::MPEG4; in ParseCodingType()
51 bool CommandParse::Parse(int argc, char *argv[], CommandOpt &opt) in Parse() argument
62 opt.useBuffer = true; in Parse()
68 opt.fileInput = optarg; in Parse()
71 opt.fileOutput = optarg; in Parse()
74 opt.width = std::stoi(optarg); in Parse()
77 opt.height = std::stoi(optarg); in Parse()
[all …]
Dcodec_hdi_decode.cpp82 bool CodecHdiDecode::Init(CommandOpt &opt) in Init() argument
84 this->width_ = opt.width; in Init()
85 this->height_ = opt.height; in Init()
86 this->codecMime_ = opt.codec; in Init()
87 this->stride_ = AlignUp(opt.width); in Init()
88 this->useBufferHandle_ = opt.useBuffer; in Init()
89 color_ = opt.colorForamt; in Init()
96 height_, stride_, opt.fileInput.c_str(), opt.fileOutput.c_str()); in Init()
100 reader_ = CodecPacketReader::GetPacketReader(opt.codec); in Init()
101 ioIn_.open(opt.fileInput, std::ios_base::binary); in Init()
[all …]
Dcodec_hdi_encode.cpp87 bool CodecHdiEncode::Init(CommandOpt &opt) in Init() argument
89 this->width_ = opt.width; in Init()
90 this->height_ = opt.height; in Init()
92 this->useBufferHandle_ = opt.useBuffer; in Init()
95 codecMime_ = opt.codec; in Init()
98 color_ = opt.colorForamt; in Init()
104 ioIn_.open(opt.fileInput, std::ios_base::binary); in Init()
105 ioOut_.open(opt.fileOutput, std::ios_base::binary | std::ios_base::trunc); in Init()
107 …HDF_LOGE("%{public}s:failed to open file %{public}s or %{public}s", __func__, opt.fileInput.c_str(… in Init()
108 opt.fileOutput.c_str()); in Init()
[all …]
/drivers/peripheral/codec/test/demo/adapter/src/
Dcommand_adapter_parse.cpp32 bool CommandAdapterParse::Parse(int argc, char *argv[], CommandOpt &opt) in Parse() argument
51 opt.useBuffer = true; in Parse()
54 opt.codec = codecMime::HEVC; in Parse()
60 opt.fileInput = optarg; in Parse()
63 opt.fileOutput = optarg; in Parse()
66 opt.width = std::stoi(optarg); in Parse()
69 opt.height = std::stoi(optarg); in Parse()
76 if (opt.fileInput.empty() || opt.fileOutput.empty() || opt.width == 0 || opt.height == 0) { in Parse()
Dcodec_hdi_adapter_decode.cpp146 bool CodecHdiAdapterDecode::Init(CommandOpt &opt) in Init() argument
148 this->width_ = opt.width; in Init()
149 this->height_ = opt.height; in Init()
150 this->codecMime_ = opt.codec; in Init()
151 this->stride_ = AlignUp(opt.width); in Init()
152 this->useBufferHandle_ = opt.useBuffer; in Init()
154 width_, height_, stride_, opt.fileInput.c_str(), opt.fileOutput.c_str()); in Init()
157 stat(opt.fileInput.c_str(), &fileStat); in Init()
159 fpIn_ = fopen(opt.fileInput.c_str(), "rb"); in Init()
160 fpOut_ = fopen(opt.fileOutput.c_str(), "wb+"); in Init()
[all …]
Dcodec_hdi_adapter_encode.cpp97 bool CodecHdiAdapterEncode::Init(CommandOpt &opt) in Init() argument
99 this->width_ = opt.width; in Init()
100 this->height_ = opt.height; in Init()
102 this->useBufferHandle_ = opt.useBuffer; in Init()
108 stat(opt.fileInput.c_str(), &fileStat); in Init()
111 fpIn_ = fopen(opt.fileInput.c_str(), "rb"); in Init()
112 fpOut_ = fopen(opt.fileOutput.c_str(), "wb+"); in Init()
114 …HDF_LOGE("%{public}s:failed to open file %{public}s or %{public}s", __func__, opt.fileInput.c_str(… in Init()
115 opt.fileOutput.c_str()); in Init()
768 CommandOpt opt; in main() local
[all …]
/drivers/peripheral/codec/test/demo/idl/src/
Dcommand_parse.cpp28 bool CommandParse::Parse(int argc, char *argv[], CommandOpt &opt) in Parse() argument
49 opt.useBuffer = true; in Parse()
52 opt.codec = codecMime::HEVC; in Parse()
58 opt.fileInput = optarg; in Parse()
61 opt.fileOutput = optarg; in Parse()
64 opt.width = atoi(optarg); in Parse()
67 opt.height = atoi(optarg); in Parse()
74 if (opt.fileInput.empty() || opt.fileOutput.empty() || opt.width == 0 || opt.height == 0) { in Parse()
Dcodec_hdi_decode.cpp126 bool CodecHdiDecode::Init(const CommandOpt &opt) in Init() argument
128 this->width_ = opt.width; in Init()
129 this->height_ = opt.height; in Init()
130 this->codecMime_ = opt.codec; in Init()
131 this->stride_ = AlignUp(opt.width); in Init()
132 this->useBufferHandle_ = opt.useBuffer; in Init()
134 height_, stride_, opt.fileInput.c_str(), opt.fileOutput.c_str()); in Init()
138 fpIn_ = fopen(opt.fileInput.c_str(), "rb"); in Init()
139 fpOut_ = fopen(opt.fileOutput.c_str(), "wb+"); in Init()
141 …HDF_LOGE("%{public}s failed to open file %{public}s or %{public}s", __func__, opt.fileInput.c_str(… in Init()
[all …]
Dcodec_hdi_encode.cpp93 bool CodecHdiEncode::Init(const CommandOpt &opt) in Init() argument
95 this->width_ = opt.width; in Init()
96 this->height_ = opt.height; in Init()
98 this->useBufferHandle_ = opt.useBuffer; in Init()
102 fpIn_ = fopen(opt.fileInput.c_str(), "rb"); in Init()
103 fpOut_ = fopen(opt.fileOutput.c_str(), "wb+"); in Init()
105 …HDF_LOGE("%{public}s:failed to open file %{public}s or %{public}s", __func__, opt.fileInput.c_str(… in Init()
106 opt.fileOutput.c_str()); in Init()
793 CommandOpt opt; in main() local
795 if (!parse.Parse(argc, argv, opt)) { in main()
[all …]
/drivers/peripheral/codec/test/demo/jpeg/src/
Dcommand_parse.cpp29 bool CommandParse::Parse(int argc, char *argv[], CommandOpt &opt) in Parse() argument
40 opt.fileInput = optarg; in Parse()
43 opt.fileOutput = optarg; in Parse()
46 opt.width = std::stoi(optarg); in Parse()
49 opt.height = std::stoi(optarg); in Parse()
56 if (opt.fileInput == "" || opt.fileOutput == "" || opt.width == 0 || opt.height == 0) { in Parse()
Djpeg_decoder.cpp199 int32_t JpegDecoder::Decode(CommandOpt opt) in Decode() argument
201 auto ret = PrepareData(opt.fileInput, opt.fileOutput); in Decode()
206 ret = decoder->AllocBuffer(opt.width, opt.height); in Decode()
232 CommandOpt opt; in main() local
234 if (!parse.Parse(argc, argv, opt)) { in main()
245 ret = decoder->Decode(opt); in main()
/drivers/peripheral/codec/test/demo/v1.0/
Dcodec_utils.c69 static int32_t ParseCmdOption(CodecCmd* cmd, const char *opt, const char *next) in ParseCmdOption() argument
72 if (cmd == NULL || opt == NULL || next == NULL) { in ParseCmdOption()
75 switch (*opt) { in ParseCmdOption()
130 const char *opt = (const char*)argv[optindex++]; in ParseArguments() local
135 if ((opt[optMark] == '-') && (opt[optName] != '\0')) { in ParseArguments()
138 if ((opt[optMark] == '-') && (opt[optName] != '\0')) { in ParseArguments()
139 opt++; in ParseArguments()
141 if ((opt[optMark] == '-') && (opt[optName] == '\0')) { in ParseArguments()
146 opt++; in ParseArguments()
147 if (ParseCmdOption(cmd, opt, next) == HDF_FAILURE) { in ParseArguments()
/drivers/peripheral/display/interfaces/include/
Ddisplay_gfx.h85 int32_t (*FillRect)(ISurface *surface, IRect *rect, uint32_t color, GfxOpt *opt);
100 int32_t (*DrawRectangle)(ISurface *surface, Rectangle *rect, uint32_t color, GfxOpt *opt);
114 int32_t (*DrawLine)(ISurface *surface, ILine *line, GfxOpt *opt);
128 int32_t (*DrawCircle)(ISurface *surface, ICircle *circle, GfxOpt *opt);
146 …t (*Blit)(ISurface *srcSurface, IRect *srcRect, ISurface *dstSurface, IRect *dstRect, GfxOpt *opt);
/drivers/peripheral/display/hal/default_standard/src/display_device/
Ddisplay_gfx.h55 int32_t (*FillRect)(ISurface *surface, IRect *rect, uint32_t color, GfxOpt *opt);
68 int32_t (*DrawRectangle)(ISurface *surface, Rectangle *rect, uint32_t color, GfxOpt *opt);
80 int32_t (*DrawLine)(ISurface *surface, ILine *line, GfxOpt *opt);
92 int32_t (*DrawCircle)(ISurface *surface, ICircle *circle, GfxOpt *opt);
108 …t (*Blit)(ISurface *srcSurface, IRect *srcRect, ISurface *dstSurface, IRect *dstRect, GfxOpt *opt);
/drivers/peripheral/display/hal/default_standard/src/display_device/composer/
Dhdi_gfx_composition.cpp134 GfxOpt opt = { 0 }; in BlitLayer() local
146 opt.blendType = src.GetLayerBlenType(); in BlitLayer()
147 DISPLAY_LOGD("blendType %{public}d", opt.blendType); in BlitLayer()
148 opt.enPixelAlpha = true; in BlitLayer()
149 opt.enableScale = true; in BlitLayer()
152 opt.enGlobalAlpha = true; in BlitLayer()
156 opt.rotateType = src.GetTransFormType(); in BlitLayer()
157 DISPLAY_LOGD(" the roate type is %{public}d", opt.rotateType); in BlitLayer()
164 return mGfxFuncs->Blit(&srcSurface, &crop, &dstSurface, &displayRect, &opt); in BlitLayer()
170 GfxOpt opt = { 0 }; in ClearRect() local
[all …]
/drivers/peripheral/codec/test/demo/v2.0/include/
Dcommand_parse.h50 bool Parse(int argc, char *argv[], CommandOpt &opt);
54 void ParseCodingType(const MyOptIndex index, CommandOpt &opt);
/drivers/peripheral/codec/test/demo/adapter/include/
Dcommand_adapter_parse.h35 bool Parse(int argc, char *argv[], CommandOpt &opt);
Dcodec_hdi_adapter_decode.h69 bool Init(CommandOpt &opt);
/drivers/peripheral/codec/test/demo/idl/include/
Dcommand_parse.h36 bool Parse(int argc, char *argv[], CommandOpt &opt);
/drivers/peripheral/codec/test/demo/jpeg/include/
Dcommand_parse.h43 bool Parse(int argc, char *argv[], CommandOpt &opt);
Djpeg_decoder.h45 int32_t Decode(CommandOpt opt);
/drivers/hdf_core/framework/tools/hc-gen/src/
Dbytecode_gen.cpp52 auto opt = Option::Instance(); in Initialize() local
53 std::string outFileName = Util::File::StripSuffix(opt.GetOutputName()); in Initialize()
55 outFileName = opt.GetSourceNameBase() + ".hcb"; in Initialize()
69 needAlign_ = opt.ShouldAlign(); in Initialize()
/drivers/hdf_core/framework/model/display/driver/lcdkit/
Dlite_lcdkit.h46 uint32_t opt; member
Dlite_lcdkit.c133 ret = GpioWrite(panelCfg->onSeq.pwCtrl[i].num, panelCfg->onSeq.pwCtrl[i].opt); in PowerOn()
152 ret = GpioWrite(panelCfg->offSeq.pwCtrl[i].num, panelCfg->offSeq.pwCtrl[i].opt); in PowerOff()
/drivers/peripheral/display/test/unittest/lite/
Ddisplay_test.c364 GfxOpt opt = {0}; in FillRectTest() local
368 opt.enGlobalAlpha = true; in FillRectTest()
369 opt.globalAlpha = MAX_GLOBLE_ALPHA; in FillRectTest()
375 ret = g_displayTest.gfxFuncs->FillRect(&dstSurface, &rect, HIFB_RED_1555, &opt); in FillRectTest()

12