Home
last modified time | relevance | path

Searched refs:pos_ (Results 1 - 25 of 42) sorted by relevance

12

/foundation/multimedia/av_codec/services/media_engine/modules/muxer/
H A Ddata_sink_file.cpp28 DataSinkFile::DataSinkFile(FILE *file) : file_(file), pos_(0), end_(-1), isCanRead_(true) in DataSinkFile()
45 if (pos_ >= end_) { in Read()
49 FALSE_RETURN_V_MSG_E(fseek(file_, pos_, SEEK_SET) >= 0, -1, "failed to seek, %{public}s", strerror(errno)); in Read()
53 pos_ = pos_ + size; in Read()
61 FALSE_RETURN_V_MSG_E(fseek(file_, pos_, SEEK_SET) >= 0, -1, "failed to seek, %{public}s", strerror(errno)); in Write()
65 pos_ = pos_ + size; in Write()
66 end_ = pos_ > end_ ? pos_ in Write()
[all...]
H A Ddata_sink_fd.cpp29 DataSinkFd::DataSinkFd(int32_t fd) : fd_(dup(fd)), pos_(0), end_(-1) in DataSinkFd()
52 if (pos_ >= end_) { in Read()
55 FALSE_RETURN_V_MSG_E(lseek(fd_, pos_, SEEK_SET) >= 0, -1, "failed to seek, %{public}s, fd is %{public}d", in Read()
59 pos_ = pos_ + size; in Read()
66 FALSE_RETURN_V_MSG_E(lseek(fd_, pos_, SEEK_SET) >= 0, -1, "failed to seek, %{public}s, fd is %{public}d", in Write()
70 pos_ = pos_ + size; in Write()
71 end_ = pos_ > end_ ? pos_ in Write()
[all...]
H A Ddata_sink_file.h39 int64_t pos_; member in OHOS::Media::DataSinkFile
H A Ddata_sink_fd.h38 int64_t pos_; member in OHOS::Media::DataSinkFd
/foundation/window/window_manager/test/fuzztest/window_scene/
H A Ddata_source.h27 DataSource(const std::uint8_t* data, size_t size) : data_(data), size_(size), pos_(0) {} in DataSource()
34 if (!data_ || (objSize > size_ - pos_)) { in GetObject()
37 auto ret = memcpy_s(&object, objSize, data_ + pos_, objSize); in GetObject()
41 pos_ += objSize; in GetObject()
47 if (!data_ || (rawSize > size_ - pos_)) { in GetRaw()
50 auto current = pos_; in GetRaw()
51 pos_ += rawSize; in GetRaw()
70 size_t pos_; member in OHOS::Rosen::DataSource
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/model/
H A Dmodel_position.h31 pos_ = Vec3(src.GetX(), src.GetY(), src.GetZ(), src.GetPosition().GetAnimationOption()); in ModelPosition()
41 pos_.SetContextAndCallbacks(context, std::forward<RenderNodeAnimationCallback>(callback)); in SetContextAndCallbacks()
47 pos_ = pos; in Set()
54 pos_ = pos; in SetPosition()
69 return pos_; in GetPosition()
74 return pos_.GetX(); in GetX()
79 return pos_.GetY(); in GetY()
84 return pos_.GetZ(); in GetZ()
98 Vec3 pos_ { 0.0f, 0.0f, 4.0f };
/foundation/graphic/graphic_3d/3d_widget_adapter/include/data_type/
H A Dposition.h29 pos_ = vec; in SetPosition()
44 return pos_; in GetPosition()
49 return pos_.GetX(); in GetX()
54 return pos_.GetY(); in GetY()
59 return pos_.GetZ(); in GetZ()
73 OHOS::Render3D::Vec3 pos_ { 0.0f, 0.0f, 4.0f };
/foundation/ai/ai_engine/services/common/utils/encdec/source/
H A Ddata_encoder.cpp47 DataEncoder::DataEncoder() : buffer_(nullptr), pos_(0), allocSuccess_(false) in DataEncoder()
68 CHK_RET(EncodeOneParameter(pos_) != RETCODE_SUCCESS, RETCODE_FAILURE); in GetSerializedData()
69 CHK_RET(buffer_ == nullptr || pos_ == 0, RETCODE_FAILURE); in GetSerializedData()
70 if (pos_ > INT_MAX) { // pos_ is unsigned but data.length is signed, avoid implicit conversion. in GetSerializedData()
74 dataInfo.length = pos_; in GetSerializedData()
79 errno_t res = memcpy_s(dataInfo.data, dataInfo.length, buffer_->data, pos_); in GetSerializedData()
88 pos_ = 0; in GetSerializedData()
96 if (buffer_->blockSize >= pos_ + incSize) { in Ensure()
113 size_t leftSize = pos_; in ReallocBuffer()
[all...]
H A Ddata_decoder.cpp35 val.assign(buffer_ + pos_, buffer_ + pos_ + len); in DecodeOneParameter()
37 pos_ += len; in DecodeOneParameter()
/foundation/ai/ai_engine/services/common/utils/encdec/include/
H A Ddata_decoder.h31 explicit DataDecoder(const DataInfo dataInfo) : buffer_(dataInfo.data), size_(dataInfo.length), pos_(0) in DataDecoder()
75 if ((pos_ != size_) || (pos_ != dataSize + sizeof(dataSize))) { in CheckDataEnd()
77 pos_, dataSize, size_); in CheckDataEnd()
110 if (memcpy_s(&val, sizeof(val), buffer_ + pos_, sizeof(val)) != EOK) { in DecodeOneParameter()
114 pos_ += sizeof(T); in DecodeOneParameter()
125 return (size <= size_ && (pos_ + size) <= size_); in Ensure()
141 size_t pos_ {0};
H A Ddata_encoder.h133 if (memcpy_s(buffer_->data + pos_, len, &val, sizeof(val)) != EOK) { in EncodeOneParameter()
137 pos_ += len; in EncodeOneParameter()
157 size_t pos_ {0};
/foundation/graphic/graphic_3d/lume/metaobject/src/loaders/
H A Dcsv_parser.cpp33 pos_ = 0; in Reset()
83 while (pos_ < csv_.size()) { in ParseRow()
84 auto c = csv_[pos_++]; in ParseRow()
89 if (state == IN_QUOTE && pos_ < csv_.size() - 1 && csv_[pos_] == '"') { in ParseRow()
92 pos_++; in ParseRow()
112 if (c == '\\' && pos_ < csv_.size() - 1) { in ParseRow()
113 if (auto esc = HandleEscaped(csv_[pos_]); esc.first) { in ParseRow()
115 pos_++; in ParseRow()
H A Dcsv_parser.h66 size_t pos_ {};
/foundation/graphic/graphic_3d/lume/metaobject/test/src/
H A Dserialisation_utils.cpp42 size_t read = std::min<size_t>(count, data_.size() - pos_); in Read()
43 pos_ += read; in Read()
48 if (data_.size() < pos_ + count) { in Write()
49 data_.resize(pos_ + count); in Write()
51 pos_ += count; in Write()
62 pos_ = offset; in Seek()
68 return pos_;
H A Dserialisation_utils.h43 size_t pos_ {};
/foundation/multimedia/image_framework/plugins/common/libs/image/libextplugin/src/heif_impl/heif_parser/
H A Dheif_stream.cpp30 : length_(size), pos_(0), copied_(needCopy) in HeifBufferInputStream()
50 return pos_; in Tell()
61 auto end_pos = static_cast<size_t>(pos_) + size; in Read()
66 if (memcpy_s(data, size, &data_[pos_], size) != EOK) { in Read()
69 pos_ = pos_ + static_cast<int64_t>(size); in Read()
79 pos_ = position; in Seek()
/foundation/multimedia/player_framework/frameworks/native/player/test/unittest/src/data_source/
H A Dmedia_data_source_test_noseek.cpp72 pos_ = 0; in Reset()
93 realLen = static_cast<int32_t>(fixedSize_ - pos_); in ReadAt()
99 pos_ += realLen; in ReadAt()
H A Dmedia_data_source_test_noseek.h41 int64_t pos_ = 0; member in OHOS::Media::MediaDataSourceTestNoSeek
/foundation/multimedia/image_framework/plugins/common/libs/image/libextplugin/src/heif_impl/heif_parser/box/
H A Ditem_property_hvcc_box.cpp175 for (int i = 0; i < length && pos_ < boxBitLength_; ++i, ++pos_) { in GetWord()
176 int32_t bit = ((nalu[pos_ / BIT_DEPTH_DIFF] >> in GetWord()
177 (BIT_DEPTH_DIFF - BIT_SHIFT - (pos_ % BIT_DEPTH_DIFF))) in GetWord()
188 while (pos_ < boxBitLength_ && ((nalu[pos_ / ONE_BYTE_SHIFT] >> in GetGolombCode()
189 (ONE_BYTE_SHIFT - BIT_SHIFT - (pos_ % ONE_BYTE_SHIFT))) & in GetGolombCode()
192 pos_++; in GetGolombCode()
194 pos_++; in GetGolombCode()
/foundation/multimedia/media_foundation/engine/plugin/plugins/ffmpeg_adapter/muxer/
H A Dffmpeg_muxer_plugin.cpp380 ioContext.pos_ = 0; in ResetIoCtx()
530 auto res = ioCtx->dataSink_->WriteAt(ioCtx->pos_, buffer); in IoWrite()
532 ioCtx->pos_ += bufferMem->GetSize(); in IoWrite()
533 if (ioCtx->pos_ > ioCtx->end_) { in IoWrite()
534 ioCtx->end_ = ioCtx->pos_; in IoWrite()
550 ioContext->pos_ = newPos; in IoSeek()
555 newPos = ioContext->pos_ + offset; in IoSeek()
569 ioContext->pos_ = newPos; in IoSeek()
571 MEDIA_LOG_DD("current offset: " PUBLIC_LOG_D64 ", new pos: " PUBLIC_LOG_U64, ioContext->pos_, newPos); in IoSeek()
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/
H A Dheif_parser_test.cpp43 heifBuffer.pos_ = 1; in HWTEST_F()
45 ASSERT_TRUE((heifBuffer.pos_ + size) > heifBuffer.length_); in HWTEST_F()
75 inputStream->pos_ = 1; in HWTEST_F()
88 inputStream->pos_ = 16; in HWTEST_F()
119 inputStream->pos_ = 1; in HWTEST_F()
139 inputStream->pos_ = 1; in HWTEST_F()
/foundation/arkui/ace_engine/test/mock/core/rosen/
H A Dtesting_typography_properties.h89 const size_t pos_; member
91 PositionAndAffinity(size_t pos, Affinity affinity) : pos_(pos), affinity_(affinity) {} in PositionAndAffinity()
/foundation/multimedia/player_framework/frameworks/js/metadatahelper/
H A Dhelper_data_source_callback.h34 :callbackName_(callbackName), memory_(mem), length_(length), pos_(pos) { in HelperDataSourceJsCallback()
42 int64_t pos_; member
/foundation/multimedia/player_framework/frameworks/js/avplayer/
H A Dmedia_data_source_callback.h34 :callbackName_(callbackName), memory_(mem), length_(length), pos_(pos) { in MediaDataSourceJsCallback()
42 int64_t pos_; member
/foundation/communication/bluetooth_service/services/bluetooth/service/src/obex/
H A Dobex_session.cpp188 : paths_(paths), pos_(0) in ObexSetPathObject()
193 if (pos_ >= paths_.size()) { in GetNextPath()
196 return paths_.at(pos_++); in GetNextPath()
201 return pos_ >= paths_.size(); in IsDone()

Completed in 11 milliseconds

12