/drivers/peripheral/codec/test/demo/idl/src/ |
H A D | command_parse.cpp | 42 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 in Parse() [all...] |
H A D | codec_hdi_decode.cpp | 128 bool CodecHdiDecode::Init(const CommandOpt &opt) in Init() argument 130 this->width_ = opt.width; in Init() 131 this->height_ = opt.height; in Init() 132 this->codecMime_ = opt.codec; in Init() 133 this->stride_ = AlignUp(opt.width); in Init() 134 this->useBufferHandle_ = opt.useBufferHandle; in Init() 135 this->useDMABuffer_ = opt.useDMABuffer; in Init() 137 fpIn_ = fopen(opt.fileInput.c_str(), "rb"); in Init() 138 fpOut_ = fopen(opt.fileOutput.c_str(), "wb+"); in Init() 898 CommandOpt opt; in main() local [all...] |
H A D | codec_hdi_encode.cpp | 90 bool CodecHdiEncode::Init(const CommandOpt &opt) in Init() argument 92 this->width_ = opt.width; in Init() 93 this->height_ = opt.height; in Init() 95 this->useBufferHandle_ = opt.useBufferHandle; in Init() 96 this->useDMABuffer_ = opt.useDMABuffer; in Init() 100 fpIn_ = fopen(opt.fileInput.c_str(), "rb"); in Init() 101 fpOut_ = fopen(opt.fileOutput.c_str(), "wb+"); in Init() 103 HDF_LOGE("%{public}s:failed to open file %{public}s or %{public}s", __func__, opt.fileInput.c_str(), in Init() 104 opt.fileOutput.c_str()); in Init() 878 CommandOpt opt; in main() local [all...] |
/drivers/peripheral/codec/test/demo/v2.0/src/ |
H A D | command_parse.cpp | 33 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 in Parse() [all...] |
H A D | codec_hdi_decode.cpp | 82 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 in Init() 725 CommandOpt opt; main() local [all...] |
H A D | codec_hdi_encode.cpp | 87 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 in Init() 815 CommandOpt opt; main() local [all...] |
/drivers/peripheral/codec/test/demo/jpeg/src/ |
H A D | command_parse.cpp | 29 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()
|
H A D | jpeg_decoder.cpp | 193 int32_t JpegDecoder::Decode(CommandOpt opt)
in Decode() argument 195 auto ret = PrepareData(opt.fileInput, opt.fileOutput);
in Decode() 200 ret = decoder->AllocBuffer(opt.width, opt.height);
in Decode() 243 CommandOpt opt;
in main() local 245 if (!parse.Parse(argc, argv, opt)) {
in main() 256 ret = decoder->Decode(opt);
in main()
|
/drivers/peripheral/codec/test/demo/heif/src/ |
H A D | command_parser.cpp | 75 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() 107 opt in Parse() [all...] |
H A D | heif_encoder.cpp | 20 OHOS::VDI::HEIF::CommandOpt opt = OHOS::VDI::HEIF::Parse(argc, argv); in main() local 21 opt.Print(); in main() 22 OHOS::VDI::HEIF::HeifEncoderHelper obj(opt); in main()
|
/drivers/peripheral/display/composer/vdi_base/include/ |
H A D | display_gfx.h | 50 * @param opt Indicates the pointer to the hardware acceleration option. 55 int32_t (*FillRect)(ISurface *surface, IRect *rect, uint32_t color, GfxOpt *opt); 63 * @param opt Indicates the pointer to the hardware acceleration option. 68 int32_t (*DrawRectangle)(ISurface *surface, Rectangle *rect, uint32_t color, GfxOpt *opt); 75 * @param opt Indicates the pointer to the hardware acceleration option. 80 int32_t (*DrawLine)(ISurface *surface, ILine *line, GfxOpt *opt); 87 * @param opt Indicates the pointer to the hardware acceleration option. 92 int32_t (*DrawCircle)(ISurface *surface, ICircle *circle, GfxOpt *opt); 103 * @param opt Indicates the pointer to the hardware acceleration option. 108 int32_t (*Blit)(ISurface *srcSurface, IRect *srcRect, ISurface *dstSurface, IRect *dstRect, GfxOpt *opt); [all...] |
/drivers/peripheral/display/hal/default_standard/src/display_device/ |
H A D | display_gfx.h | 50 * @param opt Indicates the pointer to the hardware acceleration option. 55 int32_t (*FillRect)(ISurface *surface, IRect *rect, uint32_t color, GfxOpt *opt); 63 * @param opt Indicates the pointer to the hardware acceleration option. 68 int32_t (*DrawRectangle)(ISurface *surface, Rectangle *rect, uint32_t color, GfxOpt *opt); 75 * @param opt Indicates the pointer to the hardware acceleration option. 80 int32_t (*DrawLine)(ISurface *surface, ILine *line, GfxOpt *opt); 87 * @param opt Indicates the pointer to the hardware acceleration option. 92 int32_t (*DrawCircle)(ISurface *surface, ICircle *circle, GfxOpt *opt); 103 * @param opt Indicates the pointer to the hardware acceleration option. 108 int32_t (*Blit)(ISurface *srcSurface, IRect *srcRect, ISurface *dstSurface, IRect *dstRect, GfxOpt *opt); [all...] |
/drivers/peripheral/display/interfaces/include/ |
H A D | display_gfx.h | 78 * @param opt Indicates the pointer to the hardware acceleration option. 85 int32_t (*FillRect)(ISurface *surface, IRect *rect, uint32_t color, GfxOpt *opt); 93 * @param opt Indicates the pointer to the hardware acceleration option. 100 int32_t (*DrawRectangle)(ISurface *surface, Rectangle *rect, uint32_t color, GfxOpt *opt); 107 * @param opt Indicates the pointer to the hardware acceleration option. 114 int32_t (*DrawLine)(ISurface *surface, ILine *line, GfxOpt *opt); 121 * @param opt Indicates the pointer to the hardware acceleration option. 128 int32_t (*DrawCircle)(ISurface *surface, ICircle *circle, GfxOpt *opt); 139 * @param opt Indicates the pointer to the hardware acceleration option. 146 int32_t (*Blit)(ISurface *srcSurface, IRect *srcRect, ISurface *dstSurface, IRect *dstRect, GfxOpt *opt); [all...] |
/drivers/peripheral/display/composer/vdi_base/src/ |
H A D | hdi_gfx_composition.cpp | 153 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 in ClearRect() local [all...] |
/drivers/peripheral/display/hal/default_standard/src/display_device/composer/ |
H A D | hdi_gfx_composition.cpp | 134 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 in ClearRect() local [all...] |
/drivers/peripheral/codec/test/demo/v2.0/include/ |
H A D | command_parse.h | 50 bool Parse(int argc, char *argv[], CommandOpt &opt); 54 void ParseCodingType(const MyOptIndex index, CommandOpt &opt);
|
/drivers/peripheral/codec/test/demo/heif/include/ |
H A D | codec_heif_helper.h | 26 explicit HeifEncoderHelper(const CommandOpt& opt) : encodeOpt_(opt) {} in HeifEncoderHelper() argument
|
/drivers/peripheral/codec/test/demo/idl/include/ |
H A D | command_parse.h | 37 bool Parse(int argc, char *argv[], CommandOpt &opt);
|
H A D | codec_hdi_decode.h | 85 bool Init(const CommandOpt &opt);
|
/drivers/peripheral/codec/test/demo/jpeg/include/ |
H A D | command_parse.h | 43 bool Parse(int argc, char *argv[], CommandOpt &opt);
|
H A D | jpeg_decoder.h | 45 int32_t Decode(CommandOpt opt);
|
/drivers/hdf_core/framework/tools/hc-gen/src/ |
H A D | bytecode_gen.cpp | 52 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/ |
H A D | lite_lcdkit.h | 46 uint32_t opt; member
|
H A D | lite_lcdkit.c | 133 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/ |
H A D | display_test.c | 364 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()
|