Home
last modified time | relevance | path

Searched refs:desiredSize (Results 1 – 25 of 97) sorted by relevance

1234

/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/stream/src/
H A Distream_source_stream.cpp64 if (desiredSize == 0) { in Read()
68 if (!GetData(desiredSize, outData)) { in Read()
78 if (desiredSize == 0) { in Peek()
82 if (!GetData(desiredSize, outData)) { in Peek()
92 if (desiredSize == 0 || outBuffer == nullptr || desiredSize > bufferSize) { in Read()
107 if (desiredSize == 0 || outBuffer == nullptr || desiredSize > bufferSize) { in Peek()
146 desiredSize = (streamSize_ - streamOffset_); in GetData()
152 readSize = desiredSize; in GetData()
164 if (desiredSize == 0 || desiredSize > MALLOC_MAX_LENTH) { in GetData()
174 outData.bufferSize = desiredSize; in GetData()
[all …]
H A Dbuffer_source_stream.cpp74 if (!Peek(desiredSize, outData)) { in Read()
84 if (desiredSize == 0) { in Peek()
95 if (desiredSize > dataSize_ - offset) { in Peek()
96 desiredSize = dataSize_ - offset; in Peek()
98 outData.dataSize = desiredSize; in Peek()
108 if (!Peek(desiredSize, outBuffer, bufferSize, readSize)) { in Read()
119 if (desiredSize == 0 || outBuffer == nullptr || desiredSize > bufferSize) { in Peek()
121 "bufferSize:%{public}u.", desiredSize, bufferSize); in Peek()
130 if (desiredSize > dataSize_ - offset) { in Peek()
131 desiredSize = dataSize_ - offset; in Peek()
[all …]
H A Dincremental_source_stream.cpp51 if (!Peek(desiredSize, outData)) { in Read()
61 if (desiredSize == 0) { in Peek()
71 if (desiredSize > dataSize_ - dataOffset_) { in Peek()
72 desiredSize = dataSize_ - dataOffset_; in Peek()
74 outData.dataSize = desiredSize; in Peek()
83 if (!Peek(desiredSize, outBuffer, bufferSize, readSize)) { in Read()
93 if (desiredSize == 0 || outBuffer == nullptr || desiredSize > bufferSize) { in Peek()
103 if (desiredSize > (dataSize_ - dataOffset_)) { in Peek()
104 desiredSize = dataSize_ - dataOffset_; in Peek()
110 desiredSize, dataSize_); in Peek()
[all …]
H A Dfile_source_stream.cpp171 if (desiredSize == 0 || filePtr_ == nullptr) { in Read()
175 if (!GetData(desiredSize, outData)) { in Read()
189 if (!GetData(desiredSize, outData)) { in Peek()
203 …if (desiredSize == 0 || outBuffer == nullptr || desiredSize > bufferSize || desiredSize > fileSize… in Read()
218 …if (desiredSize == 0 || outBuffer == nullptr || desiredSize > bufferSize || desiredSize > fileSize… in Peek()
274 desiredSize = fileSize_ - fileOffset_; in GetData()
277 if (bytesRead < desiredSize) { in GetData()
298 if (desiredSize == 0 || desiredSize > MALLOC_MAX_LENTH) { in GetData()
312 outData.bufferSize = desiredSize; in GetData()
314 desiredSize = fileSize_ - fileOffset_; in GetData()
[all …]
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/stream_test/
H A Dfile_source_stream_test.cpp128 uint32_t desiredSize = 0; variable
162 uint32_t desiredSize = 0; variable
190 uint32_t desiredSize = size; variable
221 uint32_t desiredSize = 0; variable
252 uint32_t desiredSize = size; variable
314 uint32_t desiredSize = 0; variable
485 uint32_t desiredSize = 1; variable
505 uint32_t desiredSize = 1; variable
524 uint32_t desiredSize = 0; variable
531 desiredSize = 2;
[all …]
H A Dincremental_source_stream_test.cpp69 uint32_t desiredSize = MAXSIZE; variable
70 bool ret = ins->Peek(desiredSize, outData);
87 uint32_t desiredSize = 0; variable
105 uint32_t desiredSize = MAXSIZE; variable
123 uint32_t desiredSize = 0; variable
144 uint32_t desiredSize = size; variable
166 uint32_t desiredSize = 0; variable
188 uint32_t desiredSize = size; variable
210 uint32_t desiredSize = 0; variable
396 uint32_t desiredSize = 3; variable
[all …]
H A Dbuffer_source_stream_test.cpp148 uint32_t desiredSize = MAXSIZE; variable
149 bool ret = bufferSourceStream->Peek(desiredSize, outData);
179 uint32_t desiredSize = 0; variable
180 bool ret = bufferSourceStream->Peek(desiredSize, outData);
210 uint32_t desiredSize = MAXSIZE; variable
241 uint32_t desiredSize = 0; variable
272 uint32_t desiredSize = size; variable
304 uint32_t desiredSize = 0; variable
336 uint32_t desiredSize = size; variable
368 uint32_t desiredSize = size; variable
[all …]
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/image_source_test/
H A Dimage_source_ai_sr_hdr_test.cpp121 decodeOpts.desiredSize.width = desiredWidth;
122 decodeOpts.desiredSize.height = desiredHeight;
161 decodeOpts.desiredSize.width = desiredWidth;
162 decodeOpts.desiredSize.height = desiredHeight;
201 decodeOpts.desiredSize.width = desiredWidth;
239 decodeOpts.desiredSize.width = desiredWidth;
277 decodeOpts.desiredSize.width = desiredWidth;
315 decodeOpts.desiredSize.width = desiredWidth;
353 decodeOpts.desiredSize.width = desiredWidth;
392 decodeOpts.desiredSize.width = desiredWidth;
[all …]
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/stream/include/
H A Distream_source_stream.h32 bool Read(uint32_t desiredSize, ImagePlugin::DataStreamBuffer &outData) override;
33 …bool Read(uint32_t desiredSize, uint8_t *outBuffer, uint32_t bufferSize, uint32_t &readSize) overr…
34 bool Peek(uint32_t desiredSize, ImagePlugin::DataStreamBuffer &outData) override;
35 …bool Peek(uint32_t desiredSize, uint8_t *outBuffer, uint32_t bufferSize, uint32_t &readSize) overr…
44 bool GetData(uint32_t desiredSize, uint8_t *outBuffer, uint32_t bufferSize, uint32_t &readSize);
45 bool GetData(uint32_t desiredSize, ImagePlugin::DataStreamBuffer &outData);
H A Dfile_source_stream.h40 bool Read(uint32_t desiredSize, ImagePlugin::DataStreamBuffer &outData) override;
41 …bool Read(uint32_t desiredSize, uint8_t *outBuffer, uint32_t bufferSize, uint32_t &readSize) overr…
42 bool Peek(uint32_t desiredSize, ImagePlugin::DataStreamBuffer &outData) override;
43 …bool Peek(uint32_t desiredSize, uint8_t *outBuffer, uint32_t bufferSize, uint32_t &readSize) overr…
55 bool GetData(uint32_t desiredSize, uint8_t *outBuffer, uint32_t bufferSize, uint32_t &readSize);
56 bool GetData(uint32_t desiredSize, ImagePlugin::DataStreamBuffer &outData);
H A Dbuffer_source_stream.h32 bool Read(uint32_t desiredSize, ImagePlugin::DataStreamBuffer &outData) override;
33 …bool Read(uint32_t desiredSize, uint8_t *outBuffer, uint32_t bufferSize, uint32_t &readSize) overr…
34 bool Peek(uint32_t desiredSize, ImagePlugin::DataStreamBuffer &outData) override;
35 …bool Peek(uint32_t desiredSize, uint8_t *outBuffer, uint32_t bufferSize, uint32_t &readSize) overr…
H A Dincremental_source_stream.h33 bool Read(uint32_t desiredSize, ImagePlugin::DataStreamBuffer &outData) override;
34 …bool Read(uint32_t desiredSize, uint8_t *outBuffer, uint32_t bufferSize, uint32_t &readSize) overr…
35 bool Peek(uint32_t desiredSize, ImagePlugin::DataStreamBuffer &outData) override;
36 …bool Peek(uint32_t desiredSize, uint8_t *outBuffer, uint32_t bufferSize, uint32_t &readSize) overr…
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/
H A Dpost_proc_test.cpp63 decodeOpts.desiredSize.width = 200;
64 decodeOpts.desiredSize.height = 400;
100 decodeOpts.desiredSize.width = 200;
101 decodeOpts.desiredSize.height = 400;
138 decodeOpts.desiredSize.width = 200;
139 decodeOpts.desiredSize.height = 400;
176 decodeOpts.desiredSize.width = 200;
213 decodeOpts.desiredSize.width = 200;
252 decodeOpts.desiredSize.width = 200;
291 decodeOpts.desiredSize.width = 200;
[all …]
H A Dheif_yuv_test.cpp84 decodeOpts.desiredSize.width = width; in DecodeToFormat()
85 decodeOpts.desiredSize.height = height; in DecodeToFormat()
129 decodeOpts.desiredSize.width = width; in DecodeToYuv()
130 decodeOpts.desiredSize.height = height; in DecodeToYuv()
236 decodeOpts.desiredSize.width = 0;
237 decodeOpts.desiredSize.height = 0;
257 decodeOpts.desiredSize.width = 0;
258 decodeOpts.desiredSize.height = 0;
278 decodeOpts.desiredSize.width = 0;
279 decodeOpts.desiredSize.height = 0;
[all …]
H A Djpg_yuv_test.cpp148 decodeOpts.desiredSize.width = width; in DecodeToFormat()
149 decodeOpts.desiredSize.height = height; in DecodeToFormat()
183 decodeOpts.desiredSize.width = width; in DecodeToYuv()
184 decodeOpts.desiredSize.height = height; in DecodeToYuv()
245 decodeOpts.desiredSize.width = imageSize.width; in YuvRotate()
1156 decodeOpts.desiredSize.width = 0;
1157 decodeOpts.desiredSize.height = 0;
1175 decodeOpts.desiredSize.width = 0;
1176 decodeOpts.desiredSize.height = 0;
1194 decodeOpts.desiredSize.width = 0;
[all …]
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/converter/src/
H A Dpost_proc.cpp97 if (opts.desiredSize.height > 0 && opts.desiredSize.width > 0) { in DecodePostProc()
816 if (desiredSize.width <= 0 || desiredSize.height <= 0) { in CheckPixelMapSLR()
818 desiredSize.width, desiredSize.height); in CheckPixelMapSLR()
821 if (desiredSize.width == srcWidth && desiredSize.height == srcHeight) { in CheckPixelMapSLR()
823 desiredSize.width, desiredSize.height); in CheckPixelMapSLR()
832 static_cast<uint64_t>(desiredSize.width) * static_cast<uint64_t>(desiredSize.height) * in CheckPixelMapSLR()
856 uint32_t dstBufferSize = desiredSize.height * desiredSize.width * pixelBytes; in ScalePixelMapWithSLR()
881 imgInfo.size = desiredSize; in ScalePixelMapWithSLR()
895 pixelMap.GetAllocatorType(), desiredSize.width, desiredSize.height); in ScalePixelMapEx()
911 static_cast<uint64_t>(desiredSize.width) * static_cast<uint64_t>(desiredSize.height) * in ScalePixelMapEx()
[all …]
/ohos5.0/foundation/multimedia/image_framework/frameworks/kits/js/common/ndk/
H A Dimage_source_native.cpp57 struct Image_Size desiredSize; member
164 Image_Size *desiredSize) in OH_DecodingOptions_GetDesiredSize() argument
166 if (options == nullptr || desiredSize == nullptr) { in OH_DecodingOptions_GetDesiredSize()
169 desiredSize->width = options->desiredSize.width; in OH_DecodingOptions_GetDesiredSize()
170 desiredSize->height = options->desiredSize.height; in OH_DecodingOptions_GetDesiredSize()
176 Image_Size *desiredSize) in OH_DecodingOptions_SetDesiredSize() argument
178 if (options == nullptr || desiredSize == nullptr) { in OH_DecodingOptions_SetDesiredSize()
181 options->desiredSize.width = desiredSize->width; in OH_DecodingOptions_SetDesiredSize()
182 options->desiredSize.height = desiredSize->height; in OH_DecodingOptions_SetDesiredSize()
313 decOps.desiredSize.width = static_cast<int32_t>(ops->desiredSize.width); in ParseDecodingOps()
[all …]
/ohos5.0/foundation/multimedia/image_framework/plugins/manager/include/image/
H A Dinput_data_stream.h45 virtual bool Read(uint32_t desiredSize, DataStreamBuffer &outData) = 0;
48 …virtual bool Read(uint32_t desiredSize, uint8_t *outBuffer, uint32_t bufferSize, uint32_t &readSiz…
51 virtual bool Peek(uint32_t desiredSize, DataStreamBuffer &outData) = 0;
54 …virtual bool Peek(uint32_t desiredSize, uint8_t *outBuffer, uint32_t bufferSize, uint32_t &readSiz…
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/mock/
H A Dmock_data_stream.h35 bool Read(uint32_t desiredSize, DataStreamBuffer &outData) override in Read() argument
46 …bool Read(uint32_t desiredSize, uint8_t *outBuffer, uint32_t bufferSize, uint32_t &readSize) overr… in Read() argument
51 bool Peek(uint32_t desiredSize, DataStreamBuffer &outData) override in Peek() argument
56 …bool Peek(uint32_t desiredSize, uint8_t *outBuffer, uint32_t bufferSize, uint32_t &readSize) overr… in Peek() argument
/ohos5.0/foundation/multimedia/image_framework/plugins/common/libs/image/libsvgplugin/src/
H A Dsvg_decoder.cpp211 int width = opts.desiredSize.width; in MakeImageInfo()
212 int height = opts.desiredSize.height; in MakeImageInfo()
280 …static_cast<int32_t>(opts.desiredColorSpace), opts.desiredSize.width, opts.desiredSize.height, sta… in SetDecodeOptions()
546 if (opts_.desiredSize.width && opts_.desiredSize.height) { in DoSetDecodeOptions()
547 scaleFitDesired = std::min(static_cast<float>(opts_.desiredSize.width) / svgSize.width(), in DoSetDecodeOptions()
548 static_cast<float>(opts_.desiredSize.height) / svgSize.height()); in DoSetDecodeOptions()
557 opts_.desiredSize.width = static_cast<int32_t>(Float2UInt32(svgDom_->containerSize().width())); in DoSetDecodeOptions()
558 … opts_.desiredSize.height = static_cast<int32_t>(Float2UInt32(svgDom_->containerSize().height())); in DoSetDecodeOptions()
560 info.size.width = opts_.desiredSize.width; in DoSetDecodeOptions()
561 info.size.height = opts_.desiredSize.height; in DoSetDecodeOptions()
[all …]
/ohos5.0/foundation/multimedia/image_framework/plugins/common/libs/image/libextplugin/src/
H A Dext_stream.cpp72 uint32_t desiredSize = buf.size; in read() local
73 if (stream_->GetStreamSize() != SIZE_ZERO && stream_->GetStreamSize() < desiredSize) { in read()
74 desiredSize = stream_->GetStreamSize(); in read()
76 if (!stream_->Read(desiredSize, buf.buf, buf.size, buf.resSize)) { in read()
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/common/src/
H A Dmemory_manager.cpp185 .width = data.desiredSize.width, in Create()
186 .height = data.desiredSize.height, in Create()
263 res->data.desiredSize = data.desiredSize; in CreateMemory()
268 res->extend.desiredSize = extend.desiredSize; in CreateMemory()
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/codec/src/
H A Dimage_source.cpp535 if (opts.desiredSize.width < 0 || opts.desiredSize.height < 0) { in CreatePixelMapEx()
541 opts.desiredSize.width, opts.desiredSize.height); in CreatePixelMapEx()
838 (opts_.desiredSize.width != opts.desiredSize.width || in CreatePixelMapExtended()
839 opts_.desiredSize.height != opts.desiredSize.height))) { in CreatePixelMapExtended()
840 opts_.desiredSize.width = opts.desiredSize.width; in CreatePixelMapExtended()
841 opts_.desiredSize.height = opts.desiredSize.height; in CreatePixelMapExtended()
936 if (!pixelYuv->resize(opts.desiredSize.width, opts.desiredSize.height)) { in ResizePixelMap()
2401 plOpts.desiredSize.width = opts.desiredSize.width; in CopyOptionsToPlugin()
2402 plOpts.desiredSize.height = opts.desiredSize.height; in CopyOptionsToPlugin()
2431 procOpts.desiredSize.width = opts.desiredSize.width; in CopyOptionsToProcOpts()
[all …]
/ohos5.0/foundation/multimedia/media_library/frameworks/services/media_thumbnail/include/
H A Dthumbnail_utils.h90 EXPORT static bool GenTargetPixelmap(ThumbnailData &data, const Size &desiredSize);
136 EXPORT static bool CenterScaleEx(std::shared_ptr<PixelMap> &dataSource, const Size &desiredSize,
146 EXPORT static bool LoadVideoFile(ThumbnailData &data, Size &desiredSize);
167 EXPORT static bool LoadImageFile(ThumbnailData &data, Size &desiredSize);
169 Size &desiredSize, uint32_t &errCode);
170 EXPORT static bool LoadAudioFile(ThumbnailData &data, Size &desiredSize);
/ohos5.0/foundation/multimedia/media_library/frameworks/services/media_thumbnail/src/
H A Dthumbnail_utils.cpp145 Size &desiredSize, uint32_t &errCode) in LoadAudioFileInfo() argument
173 decOpts.desiredSize = ConvertDecodeSize(data, imageInfo.size, desiredSize); in LoadAudioFileInfo()
226 param.dstWidth = desiredSize.width; in LoadVideoFile()
227 param.dstHeight = desiredSize.height; in LoadVideoFile()
293 if (!ScaleFastThumb(data, desiredSize)) { in GenTargetPixelmap()
364 SourceLoader sourceLoader(desiredSize, data); in LoadImageFile()
1486 Size desiredSize; in LoadSourceImage() local
1488 ret = LoadAudioFile(data, desiredSize); in LoadSourceImage()
1490 ret = LoadImageFile(data, desiredSize); in LoadSourceImage()
1739 decodeOpts.desiredSize.width = size.width; in ResizeImage()
[all …]

1234