Home
last modified time | relevance | path

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

12345678910>>...15

/ohos5.0/drivers/peripheral/codec/test/demo/v2.0/src/
H A Dcommand_parse.cpp38 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()
85 ParseCodingType(index, opt); in Parse()
[all …]
/ohos5.0/foundation/multimedia/av_codec/test/unittest/hcodec_test/helper/
H A Dcommand_parser.cpp168 CommandOpt opt; in Parse() local
179 opt.dispW = stol(optarg); in Parse()
182 opt.dispH = stol(optarg); in Parse()
209 opt.timeout = stol(optarg); in Parse()
243 opt.profile = stol(optarg); in Parse()
249 opt.bitRate = stol(optarg); in Parse()
252 opt.quality = stol(optarg); in Parse()
259 opt.qpRange = range; in Parse()
275 opt.ParseWaterMark(optarg); in Parse()
282 opt.render = stol(optarg); in Parse()
[all …]
/ohos5.0/drivers/peripheral/codec/test/demo/idl/src/
H A Dcommand_parse.cpp42 bool CommandParse::Parse(int argc, char *argv[], CommandOpt &opt) in Parse() argument
54 opt.useBufferHandle = true; in Parse()
57 opt.useDMABuffer = true; in Parse()
60 opt.codec = codecMime::HEVC; in Parse()
66 opt.fileInput = optarg; in Parse()
69 opt.fileOutput = optarg; in Parse()
72 opt.width = atoi(optarg); in Parse()
75 opt.height = atoi(optarg); in Parse()
82 if (opt.fileInput.empty() || opt.fileOutput.empty() || opt.width == 0 || opt.height == 0) { in Parse()
/ohos5.0/foundation/multimedia/av_codec/test/unittest/hcodec_test/unittest/
H A Dhencoder_buffer_unit_test.cpp74 CommandOpt opt = { variable
87 bool ret = TesterCommon::Run(opt);
94 CommandOpt opt = { variable
114 CommandOpt opt = { variable
137 CommandOpt opt = { variable
156 CommandOpt opt = { variable
175 CommandOpt opt = { variable
194 CommandOpt opt = { variable
219 CommandOpt opt = { variable
238 CommandOpt opt = { variable
[all …]
H A Dhdecoder_buffer_unit_test.cpp29 CommandOpt opt = { variable
41 bool ret = TesterCommon::Run(opt);
49 CommandOpt opt = { variable
61 bool ret = TesterCommon::Run(opt);
68 CommandOpt opt = { variable
80 bool ret = TesterCommon::Run(opt);
87 CommandOpt opt = { variable
99 bool ret = TesterCommon::Run(opt);
106 CommandOpt opt = { variable
125 CommandOpt opt = { variable
[all …]
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/composer/vsync/src/
H A Dvsync_connection_proxy.cpp34 MessageOption opt(MessageOption::TF_ASYNC); in RequestNextVSync() local
39 int res = Remote()->SendRequest(IVSYNC_CONNECTION_REQUEST_NEXT_VSYNC, arg, ret, opt); in RequestNextVSync()
49 MessageOption opt(MessageOption::TF_ASYNC); in SetUiDvsyncSwitch() local
65 MessageOption opt(MessageOption::TF_ASYNC); in SetNativeDVSyncSwitch() local
92 MessageOption opt(MessageOption::TF_ASYNC); in SetUiDvsyncConfig() local
110 MessageOption opt; in GetReceiveFd() local
115 int res = Remote()->SendRequest(IVSYNC_CONNECTION_GET_RECEIVE_FD, arg, ret, opt); in GetReceiveFd()
133 MessageOption opt; in SetVSyncRate() local
139 int res = Remote()->SendRequest(IVSYNC_CONNECTION_SET_RATE, arg, ret, opt); in SetVSyncRate()
148 MessageOption opt; in Destroy() local
[all …]
/ohos5.0/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/medialibrary_tool/src/utils/
H A Ddatabase_utils.cpp46 int32_t err = GetColumnInfo(opt, resultSet, columnInfos); in Dump()
50 if (opt.isPrintFormTitle) { in Dump()
53 if (opt.count <= 0) { in Dump()
61 for (int32_t row = 0; row < opt.count; row++) { in Dump()
68 ret = RowToStr(opt, resultSet, columnInfos, str); in Dump()
83 std::string split = (index == 0) ? "" : opt.split; in TitleToStr()
103 std::string split = (index == 0) ? "" : opt.split; in RowToStr()
185 …value = (columnInfo.type == ResultSetDataType::TYPE_STRING) ? opt.delimiter + strValue + opt.delim… in FieldToStr()
189 int32_t DatabaseUtils::GetColumnInfo(const DumpOpt &opt, in GetColumnInfo() argument
196 if (opt.columns.empty()) { in GetColumnInfo()
[all …]
/ohos5.0/foundation/window/window_manager/test/common/utils/src/
H A Dcommon_test_utils.cpp34 Media::InitializationOptions opt; in CreatePixelMap() local
35 opt.size.width = TEST_IMAGE_WIDTH; in CreatePixelMap()
36 opt.size.height = TEST_IMAGE_HEIGHT; in CreatePixelMap()
37 opt.pixelFormat = Media::PixelFormat::RGBA_8888; in CreatePixelMap()
38 opt.alphaType = Media::AlphaType::IMAGE_ALPHA_TYPE_OPAQUE; in CreatePixelMap()
39 opt.scaleMode = Media::ScaleMode::FIT_TARGET_SIZE; in CreatePixelMap()
40 opt.editable = false; in CreatePixelMap()
41 opt.useSourceIfMatch = false; in CreatePixelMap()
47 const int voulumeSize = opt.size.width * opt.size.height * bpp; in CreatePixelMap()
60 auto pixelMap = Media::PixelMap::Create(data, colorLen, opt); in CreatePixelMap()
/ohos5.0/drivers/peripheral/codec/test/demo/jpeg/src/
H A 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()
/ohos5.0/drivers/peripheral/codec/test/demo/heif/src/
H A Dcommand_parser.cpp75 CommandOpt opt; in Parse() local
83 opt.primaryImgPath = string(optarg); in Parse()
86 opt.auxiliaryImgPath = string(optarg); in Parse()
89 opt.thumbnailImgPath = string(optarg); in Parse()
92 opt.gainMapPath = string(optarg); in Parse()
95 opt.exifDataPath = string(optarg); in Parse()
98 opt.userDataPath = string(optarg); in Parse()
101 opt.iccProfilePath = string(optarg); in Parse()
104 opt.it35Path = string(optarg); in Parse()
113 opt.outputPath = string(optarg); in Parse()
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/
H A Djs_view_stack_processor.cpp66 MethodOptions opt = MethodOptions::NONE; in JSBind() local
69 …cateNewElmetIdForNextComponent", &JSViewStackProcessor::JsAllocateNewElmetIdForNextComponent, opt); in JSBind()
71 "StartGetAccessRecordingFor", &JSViewStackProcessor::JsStartGetAccessRecordingFor, opt); in JSBind()
73 "SetElmtIdToAccountFor", &JSViewStackProcessor::JsSetElmtIdToAccountFor, opt); in JSBind()
75 "GetElmtIdToAccountFor", &JSViewStackProcessor::JsGetElmtIdToAccountFor, opt); in JSBind()
77 "StopGetAccessRecording", &JSViewStackProcessor::JsStopGetAccessRecording, opt); in JSBind()
79 "ImplicitPopBeforeContinue", &JSViewStackProcessor::JsImplicitPopBeforeContinue, opt); in JSBind()
80 JSClass<JSViewStackProcessor>::StaticMethod("visualState", JSVisualState, opt); in JSBind()
81 …ss<JSViewStackProcessor>::StaticMethod("MakeUniqueId", &JSViewStackProcessor::JSMakeUniqueId, opt); in JSBind()
82 …iewStackProcessor>::StaticMethod("UsesNewPipeline", &JSViewStackProcessor::JsUsesNewPipeline, opt); in JSBind()
[all …]
H A Djs_row.cpp119 MethodOptions opt = MethodOptions::NONE; in JSBind() local
120 JSClass<JSRow>::StaticMethod("create", &JSRow::Create, opt); in JSBind()
121 JSClass<JSRow>::StaticMethod("createWithWrap", &JSRow::CreateWithWrap, opt); in JSBind()
122 JSClass<JSRow>::StaticMethod("fillParent", &JSFlex::SetFillParent, opt); in JSBind()
123 JSClass<JSRow>::StaticMethod("wrapContent", &JSFlex::SetWrapContent, opt); in JSBind()
125 JSClass<JSRow>::StaticMethod("alignItems", &JSRow::SetAlignItems, opt); in JSBind()
126 JSClass<JSRow>::StaticMethod("reverse", &JSRow::SetReverse, opt); in JSBind()
127 JSClass<JSRow>::StaticMethod("alignContent", &JSFlex::SetAlignContent, opt); in JSBind()
128 JSClass<JSRow>::StaticMethod("height", &JSFlex::JsHeight, opt); in JSBind()
129 JSClass<JSRow>::StaticMethod("width", &JSFlex::JsWidth, opt); in JSBind()
[all …]
H A Djs_column.cpp128 MethodOptions opt = MethodOptions::NONE; in JSBind() local
129 JSClass<JSColumn>::StaticMethod("create", &JSColumn::Create, opt); in JSBind()
130 JSClass<JSColumn>::StaticMethod("createWithWrap", &JSColumn::CreateWithWrap, opt); in JSBind()
131 JSClass<JSColumn>::StaticMethod("fillParent", &JSFlex::SetFillParent, opt); in JSBind()
132 JSClass<JSColumn>::StaticMethod("wrapContent", &JSFlex::SetWrapContent, opt); in JSBind()
134 JSClass<JSColumn>::StaticMethod("alignItems", &JSColumn::SetAlignItems, opt); in JSBind()
135 JSClass<JSColumn>::StaticMethod("reverse", &JSColumn::SetReverse, opt); in JSBind()
136 JSClass<JSColumn>::StaticMethod("alignContent", &JSFlex::SetAlignContent, opt); in JSBind()
137 JSClass<JSColumn>::StaticMethod("height", &JSFlex::JsHeight, opt); in JSBind()
138 JSClass<JSColumn>::StaticMethod("width", &JSFlex::JsWidth, opt); in JSBind()
[all …]
H A Djs_ability_component.cpp56 MethodOptions opt = MethodOptions::NONE; in JSBind() local
57 JSClass<JSAbilityComponent>::StaticMethod("create", &JSAbilityComponent::Create, opt); in JSBind()
58 JSClass<JSAbilityComponent>::StaticMethod("onReady", &JSAbilityComponent::JsOnReady, opt); in JSBind()
59 JSClass<JSAbilityComponent>::StaticMethod("onDestroy", &JSAbilityComponent::JsOnDestroy, opt); in JSBind()
60 …SAbilityComponent>::StaticMethod("onAbilityCreated", &JSAbilityComponent::JsOnAbilityCreated, opt); in JSBind()
61 …yComponent>::StaticMethod("onAbilityMoveToFront", &JSAbilityComponent::JsOnAbilityMovedFront, opt); in JSBind()
62 …tyComponent>::StaticMethod("onAbilityWillRemove", &JSAbilityComponent::JsOnAbilityWillRemove, opt); in JSBind()
63 JSClass<JSAbilityComponent>::StaticMethod("onConnect", &JSAbilityComponent::JsOnConnect, opt); in JSBind()
64 …SClass<JSAbilityComponent>::StaticMethod("onDisconnect", &JSAbilityComponent::JsOnDisconnect, opt); in JSBind()
65 JSClass<JSAbilityComponent>::StaticMethod("width", &JSAbilityComponent::Width, opt); in JSBind()
[all …]
H A Djs_image_animator.cpp61 MethodOptions opt = MethodOptions::NONE; in JSBind() local
62 JSClass<JSImageAnimator>::StaticMethod("create", &JSImageAnimator::Create, opt); in JSBind()
63 JSClass<JSImageAnimator>::StaticMethod("images", &JSImageAnimator::SetImages, opt); in JSBind()
64 JSClass<JSImageAnimator>::StaticMethod("state", &JSImageAnimator::SetState, opt); in JSBind()
65 JSClass<JSImageAnimator>::StaticMethod("duration", &JSImageAnimator::SetDuration, opt); in JSBind()
67 JSClass<JSImageAnimator>::StaticMethod("reverse", &JSImageAnimator::SetIsReverse, opt); in JSBind()
72 JSClass<JSImageAnimator>::StaticMethod("onStart", &JSImageAnimator::OnStart, opt); in JSBind()
73 JSClass<JSImageAnimator>::StaticMethod("onPause", &JSImageAnimator::OnPause, opt); in JSBind()
74 JSClass<JSImageAnimator>::StaticMethod("onRepeat", &JSImageAnimator::OnRepeat, opt); in JSBind()
75 JSClass<JSImageAnimator>::StaticMethod("onCancel", &JSImageAnimator::OnCancel, opt); in JSBind()
[all …]
H A Djs_span.cpp345 MethodOptions opt = MethodOptions::NONE; in JSBind() local
346 JSClass<JSSpan>::StaticMethod("create", &JSSpan::Create, opt); in JSBind()
347 JSClass<JSSpan>::StaticMethod("font", &JSSpan::SetFont, opt); in JSBind()
348 JSClass<JSSpan>::StaticMethod("fontColor", &JSSpan::SetTextColor, opt); in JSBind()
349 JSClass<JSSpan>::StaticMethod("fontSize", &JSSpan::SetFontSize, opt); in JSBind()
350 JSClass<JSSpan>::StaticMethod("fontWeight", &JSSpan::SetFontWeight, opt); in JSBind()
351 JSClass<JSSpan>::StaticMethod("fontStyle", &JSSpan::SetFontStyle, opt); in JSBind()
352 JSClass<JSSpan>::StaticMethod("fontFamily", &JSSpan::SetFontFamily, opt); in JSBind()
355 JSClass<JSSpan>::StaticMethod("textCase", &JSSpan::SetTextCase, opt); in JSBind()
356 JSClass<JSSpan>::StaticMethod("textShadow", &JSSpan::SetTextShadow, opt); in JSBind()
[all …]
H A Djs_symbol_span.cpp113 MethodOptions opt = MethodOptions::NONE; in JSBind() local
114 JSClass<JSSymbolSpan>::StaticMethod("create", &JSSymbolSpan::Create, opt); in JSBind()
115 JSClass<JSSymbolSpan>::StaticMethod("fontSize", &JSSymbolSpan::SetFontSize, opt); in JSBind()
116 JSClass<JSSymbolSpan>::StaticMethod("fontWeight", &JSSymbolSpan::SetFontWeight, opt); in JSBind()
117 JSClass<JSSymbolSpan>::StaticMethod("fontColor", &JSSymbolSpan::SetFontColor, opt); in JSBind()
118 …s<JSSymbolSpan>::StaticMethod("renderingStrategy", &JSSymbolSpan::SetSymbolRenderingStrategy, opt); in JSBind()
119 JSClass<JSSymbolSpan>::StaticMethod("effectStrategy", &JSSymbolSpan::SetSymbolEffect, opt); in JSBind()
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/jpeg_hw_decode/common/
H A Dmock_jpeg_hw_decode_flow.cpp137 bool JpegHwDecoderFlow::Run(const CommandOpt& opt, bool needDumpOutput) in Run() argument
140 std::optional<PixelFormat> colorFmt = UserColorFmtToPixelFmt(opt.colorFmt); in Run()
145 inputFile_ = opt.inputFile; in Run()
146 outputPath_ = opt.outputPath; in Run()
148 orgImgSize_.width = opt.width; in Run()
149 orgImgSize_.height = opt.height; in Run()
150 sampleSize_ = opt.sampleSize; in Run()
151 scaledImgSize_.width = static_cast<int32_t>(AlignUp(opt.width / opt.sampleSize, ALIGN_8)); in Run()
152 scaledImgSize_.height = static_cast<int32_t>(AlignUp(opt.height / opt.sampleSize, ALIGN_8)); in Run()
H A Dcommand_parser.cpp58 CommandOpt opt; in Parse() local
66 opt.inputFile = string(optarg); in Parse()
69 opt.outputPath = string(optarg); in Parse()
72 opt.width = static_cast<uint32_t>(stol(optarg)); in Parse()
75 opt.height = static_cast<uint32_t>(stol(optarg)); in Parse()
78 opt.colorFmt = static_cast<UserColorFormat>(stol(optarg)); in Parse()
81 opt.sampleSize = static_cast<uint32_t>(stol(optarg)); in Parse()
87 return opt; in Parse()
/ohos5.0/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/medialibrary_tool/include/utils/
H A Ddatabase_utils.h30 static bool Dump(const DumpOpt &opt, const std::shared_ptr<FetchResult<FileAsset>> &resultSet);
31 …static bool Dump(const DumpOpt &opt, const std::shared_ptr<DataShare::DataShareResultSet> &resultS…
32 static std::string TitleToStr(const DumpOpt &opt, const std::vector<ColumnInfo> &columnInfos);
33 …static int RowToStr(const DumpOpt &opt, const std::shared_ptr<DataShare::DataShareResultSet> &resu…
35 static int FieldToStr(const DumpOpt &opt, const ColumnInfo &columnInfo,
37 …static int32_t GetColumnInfo(const DumpOpt &opt, const std::shared_ptr<DataShare::DataShareResultS…
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/jpeg_hw_decode/demo/
H A Djpeg_hw_decoder_demo.cpp22 CommandOpt opt = Parse(argc, argv); in main() local
23 if (opt.width > 0 && opt.height > 0) { in main()
24 opt.Print(); in main()
26 (void)demo.Run(opt, true); in main()
/ohos5.0/drivers/peripheral/display/hal/default_standard/src/display_device/composer/
H A 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 …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/common/properties/
H A Dinvert.h28 bool operator==(const InvertOption& opt) const
30 …return NearEqual(high_, opt.high_) && NearEqual(low_, opt.high_) && NearEqual(threshold_, opt.thre…
31 NearEqual(thresholdRange_, opt.thresholdRange_);
/ohos5.0/drivers/peripheral/display/composer/vdi_base/src/
H A Dhdi_gfx_composition.cpp153 GfxOpt opt = { 0 }; in BlitLayer() local
168 opt.blendType = src.GetLayerBlenType(); in BlitLayer()
169 DISPLAY_LOGD("blendType %{public}d", opt.blendType); in BlitLayer()
170 opt.enPixelAlpha = true; in BlitLayer()
171 opt.enableScale = true; in BlitLayer()
174 opt.enGlobalAlpha = true; in BlitLayer()
178 opt.rotateType = src.GetTransFormType(); in BlitLayer()
179 DISPLAY_LOGD(" the roate type is %{public}d", opt.rotateType); in BlitLayer()
186 return mGfxFuncs->Blit(&srcSurface, &crop, &dstSurface, &displayRect, &opt); in BlitLayer()
192 GfxOpt opt = { 0 }; in ClearRect() local
[all …]
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/jpeg_hw_decode/unittest/
H A Djpeg_hw_decoder_test.cpp79 CommandOpt opt; variable
80 opt.width = 1280;
81 opt.height = 768;
82 opt.sampleSize = 1;
83 opt.inputFile = TEST_JPEG_IMG;
87 ret = demo.Run(opt, false);

12345678910>>...15