Home
last modified time | relevance | path

Searched refs:twoImageLength (Results 1 – 7 of 7) sorted by relevance

/ohos5.0/foundation/multimedia/av_session/services/session/ipc/proxy/
H A Davcontroller_callback_proxy.cpp107 int twoImageLength = mediaImageLength + avQueueImageLength; in GetPixelMapBuffer() local
108 if (twoImageLength == 0) { in GetPixelMapBuffer()
112 unsigned char *buffer = new (std::nothrow) unsigned char[twoImageLength]; in GetPixelMapBuffer()
114 SLOGE("new buffer failed of length = %{public}d", twoImageLength); in GetPixelMapBuffer()
122 for (int j = mediaImageLength, k = 0; j < twoImageLength && k < avQueueImageLength; j++, k++) { in GetPixelMapBuffer()
132 int32_t retForWriteRawData = parcel.WriteRawData(buffer, twoImageLength); in GetPixelMapBuffer()
136 return twoImageLength; in GetPixelMapBuffer()
155 int twoImageLength = GetPixelMapBuffer(metaData, parcel); in OnMetaDataChange() local
156 if (twoImageLength == 0) { in OnMetaDataChange()
157 CHECK_AND_RETURN_LOG(parcel.WriteInt32(twoImageLength), "write twoImageLength failed"); in OnMetaDataChange()
[all …]
H A Davsession_proxy.cpp195 int twoImageLength = mediaImageLength + avQueueImageLength; in GetPixelMapBuffer() local
196 if (twoImageLength == 0) { in GetPixelMapBuffer()
200 unsigned char *buffer = new (std::nothrow) unsigned char[twoImageLength]; in GetPixelMapBuffer()
202 SLOGE("new buffer failed of length = %{public}d", twoImageLength); in GetPixelMapBuffer()
210 for (int j = mediaImageLength, k = 0; j < twoImageLength && k < avQueueImageLength; j++, k++) { in GetPixelMapBuffer()
214 if (!data.WriteInt32(twoImageLength) || !AVMetaData::MarshallingExceptImg(data, metaData)) { in GetPixelMapBuffer()
219 int32_t retForWriteRawData = data.WriteRawData(buffer, twoImageLength); in GetPixelMapBuffer()
223 return twoImageLength; in GetPixelMapBuffer()
246 int twoImageLength = GetPixelMapBuffer(metaData, data); in SetAVMetaData() local
247 if (twoImageLength == 0) { in SetAVMetaData()
[all …]
H A Davsession_controller_proxy.cpp133 int twoImageLength = reply.ReadInt32(); in GetAVMetaData() local
134 if (twoImageLength == 0) { in GetAVMetaData()
143 buffer = reinterpret_cast<const char *>(reply.ReadRawData(twoImageLength)); in GetAVMetaData()
145 SLOGE("read raw data with null, length = %{public}d", twoImageLength); in GetAVMetaData()
156 if (twoImageLength > mediaImageLength) { in GetAVMetaData()
159 std::vector<uint8_t> avQueueImageBuffer(buffer + mediaImageLength, buffer + twoImageLength); in GetAVMetaData()
/ohos5.0/foundation/multimedia/av_session/services/session/ipc/stub/
H A Davcontroller_callback_stub.cpp94 int twoImageLength = data.ReadInt32(); in HandleOnMetadataChange() local
95 SLOGD("HandleOnMetadataChange read length from twoImage %{public}d", twoImageLength); in HandleOnMetadataChange()
96 if (twoImageLength <= 0 || twoImageLength > MAX_IMAGE_SIZE) { in HandleOnMetadataChange()
106 buffer = reinterpret_cast<const char *>(data.ReadRawData(twoImageLength)); in HandleOnMetadataChange()
108 if (buffer == nullptr || mediaImageLength <= 0 || mediaImageLength > twoImageLength) { in HandleOnMetadataChange()
123 if (twoImageLength > mediaImageLength) { in HandleOnMetadataChange()
126 for (int j = mediaImageLength; j < twoImageLength; j++) { in HandleOnMetadataChange()
H A Davsession_stub.cpp136 int32_t AVSessionStub::SetImageData(AVMetaData& meta, const char *buffer, int twoImageLength) in SetImageData() argument
140 …CHECK_AND_RETURN_RET_LOG(mediaImageLength <= twoImageLength, ERR_NONE, "Maybe cuase Out-of-bunds r… in SetImageData()
153 std::vector<uint8_t> avQueueImageBuffer(buffer + mediaImageLength, buffer + twoImageLength); in SetImageData()
165 int twoImageLength = data.ReadInt32(); in HandleSetAVMetaData() local
166 SLOGD("read length from twoImage %{public}d", twoImageLength); in HandleSetAVMetaData()
167 if (twoImageLength <= 0 || twoImageLength > MAX_IMAGE_SIZE) { in HandleSetAVMetaData()
182 buffer = reinterpret_cast<const char *>(data.ReadRawData(twoImageLength)); in HandleSetAVMetaData()
184 SLOGI("read raw data with null, try set without length = %{public}d", twoImageLength); in HandleSetAVMetaData()
191 …CHECK_AND_RETURN_RET_LOG(!SetImageData(meta, buffer, twoImageLength), ERR_NONE, "SetImageData fail… in HandleSetAVMetaData()
H A Davsession_controller_stub.cpp172 int twoImageLength = mediaImageLength + avQueueImageLength; in DoMetadataGetReplyInStub() local
173 if (twoImageLength == 0) { in DoMetadataGetReplyInStub()
174 CHECK_AND_PRINT_LOG(reply.WriteInt32(twoImageLength), "write twoImageLength failed"); in DoMetadataGetReplyInStub()
179 unsigned char *buffer = new (std::nothrow) unsigned char[twoImageLength]; in DoMetadataGetReplyInStub()
181 SLOGE("new buffer failed of length = %{public}d", twoImageLength); in DoMetadataGetReplyInStub()
189 for (int j = mediaImageLength, k = 0; j < twoImageLength && k < avQueueImageLength; j++, k++) { in DoMetadataGetReplyInStub()
193 if (!reply.WriteInt32(twoImageLength) || !AVMetaData::MarshallingExceptImg(reply, metaData)) { in DoMetadataGetReplyInStub()
198 int32_t retForWriteRawData = reply.WriteRawData(buffer, twoImageLength); in DoMetadataGetReplyInStub()
H A Davsession_stub.h64 int32_t SetImageData(AVMetaData& meta, const char *buffer, int twoImageLength);