Home
last modified time | relevance | path

Searched refs:byte (Results 1 - 25 of 71) sorted by relevance

123

/foundation/multimedia/image_framework/frameworks/innerkitsimpl/accessor/src/
H A Ddata_buf.cpp58 DataBuf::DataBuf(const byte *pData, size_t size) : pData_(size) in DataBuf()
128 byte *DataBuf::Data(size_t offset) in Data()
130 return const_cast<byte *>(CData(offset)); in Data()
133 const byte *DataBuf::CData(size_t offset) const in CData()
147 uint16_t GetUShort(const byte *buf, ByteOrder byteOrder) in GetUShort()
150 return static_cast<byte>(buf[1]) << DATA_BUF_BYTE_SIZE | static_cast<byte>(buf[0]); in GetUShort()
152 return static_cast<byte>(buf[0]) << DATA_BUF_BYTE_SIZE | static_cast<byte>(buf[1]); in GetUShort()
155 void US2Data(byte *bu
[all...]
H A Djpeg_exif_metadata_accessor.cpp35 using uint_8 = byte;
36 constexpr byte JPEG_MARKER_APP0 = 0xe0;
37 constexpr byte JPEG_MARKER_APP1 = 0xe1;
38 constexpr byte JPEG_MARKER_SOI = 0xd8;
39 constexpr byte JPEG_MARKER_EOI = 0xd9;
40 constexpr byte JPEG_MARKER_RST1 = 0xd0;
41 constexpr byte JPEG_MARKER_SOS = 0xda;
143 byte *dataBlob = nullptr; in WriteBlob()
173 bool HasLength(byte marker) in HasLength()
181 std::pair<std::array<byte,
[all...]
H A Dmetadata_accessor_factory.cpp39 const byte jpegHeader[] = { 0xff, 0xd8, 0xff };
40 const byte pngHeader[] = { 0x89, 0x50, 0x4E, 0x47, 0x0D, 0x0A, 0x1A, 0x0A };
41 const byte webpHeader[] = { 0x57, 0x45, 0x42, 0x50 };
42 const byte riffHeader[] = { 0x52, 0x49, 0x46, 0x46 };
43 const byte heifHeader[] = { 0x66, 0x74, 0x79, 0x70 };
44 const byte DNG_LITTLE_ENDIAN_HEADER[] = { 0x49, 0x49, 0x2A, 0x00 };
45 const byte DNG_BIG_ENDIAN_HEADER[] = { 0x4D, 0x4D, 0x00, 0x2A };
125 byte buff[IMAGE_HEADER_SIZE] = {0}; in GetImageType()
126 auto byteSize = static_cast<uint32_t>(sizeof(byte)); in GetImageType()
H A Dbuffer_metadata_stream.cpp49 BufferMetadataStream::BufferMetadataStream(byte *originData, size_t size, MemoryMode mode, in BufferMetadataStream()
89 byte *newBuffer = new (std::nothrow) byte[newCapacity]; in Write()
234 byte *BufferMetadataStream::GetAddr(bool isWriteable) in GetAddr()
266 buffer_ = new (std::nothrow) byte[estimatedSize]; in CopyFrom()
291 byte *tempBuffer = new (std::nothrow) byte[buffer_size]; in ReadAndWriteData()
327 byte *BufferMetadataStream::Release() in Release()
329 byte *ret = buffer_; in Release()
H A Dfile_metadata_stream.cpp103 ssize_t FileMetadataStream::Write(byte *data, ssize_t size) in Write()
119 ssize_t FileMetadataStream::Read(byte *buf, ssize_t size) in Read()
145 int byte = fgetc(fp_); in ReadByte() local
146 if (byte == EOF) { in ReadByte()
147 HandleFileError("ReadByte", filePath_, (initPath_ == INIT_FROM_FD) ? dupFD_ : -1, byte, 1); in ReadByte()
151 return byte; in ReadByte()
326 byte *FileMetadataStream::GetAddr(bool isWriteable) in GetAddr()
331 return (byte *)mappedMemory_; in GetAddr()
356 return (byte *)mappedMemory_; in GetAddr()
414 byte *tempBuffe in CopyDataFromSource()
[all...]
H A Dtiff_parser.cpp36 static const std::array<byte, TIFF_BYTEORDER_SIZE> tiffByteOrderII { 0x49, 0x49, 0x2a, 0x00 };
37 static const std::array<byte, TIFF_BYTEORDER_SIZE> tiffByteOrderMM { 0x4d, 0x4d, 0x00, 0x2a };
84 size_t TiffParser::FindTiffPos(const byte *dataBuf, size_t bufLength) in FindTiffPos()
H A Dwebp_exif_metadata_accessor.cpp34 byte WEBP_PAD_ODD = 0x00;
156 byte chunkSize[WEBP_CHUNK_ID_SIZE]; in CheckChunkVp8x()
179 byte reserved = chunkData.Data()[0]; in CheckChunkVp8x()
228 byte *dataBlob = nullptr; in WriteBlob()
245 *dataBlob = const_cast<byte *>(blob.CData()); in GetExifBlob()
344 static byte exifChunckId[] = { 0x45, 0x58, 0x49, 0x46 }; in InsertExifMetadata()
399 static const byte offset3 = 3; in GetWidthAndHeightFormChunk()
400 static const byte offset2 = 2; in GetWidthAndHeightFormChunk()
402 byte sizeBuf[WEBP_BUF_SIZE]; in GetWidthAndHeightFormChunk()
412 byte bufWidt in GetWidthAndHeightFormChunk()
[all...]
H A Ddng_exif_metadata_accessor.cpp32 using uint_8 = byte;
51 byte *byteStream = imageStream_->GetAddr(); in Read()
H A Dpng_image_chunk_utils.cpp119 const byte *compressedText = chunkData.CData(keySize + NULL_CHAR_AMOUNT); in GetRawTextFromZtxtChunk()
134 const byte *textPosition = chunkData.CData(keySize + 1); in GetRawTextFromTextChunk()
156 const byte compressionFlag = chunkData.ReadUInt8(keySize + 1); in CheckChunkData()
157 const byte compressionMethod = chunkData.ReadUInt8(keySize + 2); in CheckChunkData()
192 const byte compressionFlag = chunkData.ReadUInt8(keySize + 1); in GetRawTextFromItxtChunk()
211 const byte *textPtr = chunkData.CData(textPosition); in GetRawTextFromItxtChunk()
243 bool PngImageChunkUtils::FindExifKeyword(const byte *keyword, size_t size) in FindExifKeyword()
273 static const std::array<byte, EXIF_HEADER_SIZE> exifIdCode { 0x45, 0x78, 0x69, 0x66, 0x00, 0x00 }; in VerifyExifIdCode()
318 int PngImageChunkUtils::DecompressText(const byte *sourceData, unsigned int sourceDataLen, DataBuf &textOut) in DecompressText()
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/accessor/include/
H A Ddata_buf.h27 using byte = uint8_t;
32 // Type to express the byte order (little or big endian)
40 using Blob = std::vector<byte>;
49 using ByteVector = std::vector<byte>;
65 * Constructor to create a buffer from a byte array
66 * @param pData Pointer to the byte array
67 * @param size Size of the byte array
69 DataBuf(const byte *pData, size_t size);
144 * @param byteOrder The byte order to use when reading the value
153 * @param byteOrder The byte orde
[all...]
H A Dbuffer_metadata_stream.h61 BufferMetadataStream(byte *originData, size_t size, MemoryMode mode,
89 * @brief Reads a byte from the BufferMetadataStream.
90 * @return The byte read.
153 virtual byte *GetAddr(bool isWriteable = false) override;
180 byte *Release();
232 byte *buffer_;
238 byte *originData_;
H A Dmetadata_stream.h36 using byte = uint8_t;
114 virtual ssize_t Write(byte *data, ssize_t size) = 0;
122 virtual ssize_t Read(byte *buf, ssize_t size) = 0;
125 * @brief Reads a byte from the image stream and moves the pointer to the next position.
126 * @return The byte read from the stream as a uint8_t. Returns -1 if an error occurred.
158 virtual byte *GetAddr(bool isWriteable = false) = 0;
H A Dfile_metadata_stream.h99 virtual ssize_t Write(byte *data, ssize_t size) override;
108 virtual ssize_t Read(byte *buf, ssize_t size) override;
111 * @brief Reads a byte from the FileMetadataStream.
112 * @return The byte read.
170 virtual byte *GetAddr(bool isWriteable = false) override;
254 bool ReadFromSourceAndWriteToFile(MetadataStream &src, byte *tempBuffer, ssize_t buffer_size,
H A Dtiff_parser.h34 using uint_8 = byte;
50 static size_t FindTiffPos(const byte *dataBuf, size_t bufLength);
H A Djpeg_exif_metadata_accessor.h40 std::pair<std::array<byte, 2>, uint16_t> ReadSegmentLength(uint8_t marker) const;
41 DataBuf ReadNextSegment(byte marker);
/foundation/ability/ability_base/test/unittest/base/
H A Dbyte_wrapper_test.cpp45 byte value = 0x00; in HWTEST_F()
58 byte value = 0x00; in HWTEST_F()
70 byte value = 0x00; in HWTEST_F()
72 byte result = by.Unbox(by.Box(value)); in HWTEST_F()
83 byte value = 0x00; in HWTEST_F()
85 byte result = by.Unbox(by.Parse("0x00")); in HWTEST_F()
96 byte value = 0x01; in HWTEST_F()
98 byte result = by.Unbox(by.Parse("0x01")); in HWTEST_F()
/foundation/ability/ability_base/interfaces/inner_api/base/include/
H A Dbyte_wrapper.h25 Byte(byte value) : value_(value) in Byte()
33 ErrCode GetValue(byte &value) override; /* [out] */
39 static sptr<IByte> Box(byte value); /* [in] */
41 static byte Unbox(IByte *object); /* [in] */
49 byte value_;
/foundation/ability/ability_base/interfaces/inner_api/base/src/
H A Dbyte_wrapper.cpp22 ErrCode Byte::GetValue(byte &value) /* [out] */ in GetValue()
41 sptr<IByte> Byte::Box(byte value) /* [in] */ in Box()
47 byte Byte::Unbox(IByte *object) /* [in] */ in Unbox()
49 byte value; in Unbox()
58 byte value = (byte)std::stoi(str, &idx); in Parse()
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/image_source_test/
H A Dmetadata_stream_test.cpp304 byte data[SIZE_10] = {0}; in HWTEST_F()
322 byte buffer[SIZE_10]; in HWTEST_F()
344 byte data[SIZE_10] = {0}; in HWTEST_F()
366 byte buffer[SIZE_1024]; in HWTEST_F()
384 byte buffer[METADATA_STREAM_PAGE_SIZE]; in HWTEST_F()
389 byte *buf = new byte[stream1.GetSize()]; in HWTEST_F()
421 byte *buf = new byte[sourceStream.GetSize()]; in HWTEST_F()
446 ASSERT_EQ(stream.Write((byte *)dat in HWTEST_F()
[all...]
H A Ddata_buf_test.cpp51 byte buf[2] = {0x01, 0x02}; in HWTEST_F()
70 byte buf[2]; in HWTEST_F()
92 byte buf[4]; in HWTEST_F()
118 byte buf[4] = {0x01, 0x02, 0x03, 0x04}; in HWTEST_F()
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_toolkit/utils/
H A Dwifi_randommac_helper.cpp166 unsigned long long WifiRandomMacHelper::BytesToLonglong(const std::vector<uint8_t> &byte) in BytesToLonglong() argument
168 if (byte.size() != LONG_TO_BYTE_SIZE) { in BytesToLonglong()
169 WIFI_LOGI("%{public}s byte size is invalid :%{public}zu", __func__, byte.size()); in BytesToLonglong()
174 (((unsigned long long)byte[OFFSET_VALUE_0] << OFFSET_VALUE_56) & 0xFF00000000000000L) | in BytesToLonglong()
175 (((unsigned long long)byte[OFFSET_VALUE_1] << OFFSET_VALUE_48) & 0xFF000000000000L) | in BytesToLonglong()
176 (((unsigned long long)byte[OFFSET_VALUE_2] << OFFSET_VALUE_40) & 0xFF0000000000L) | in BytesToLonglong()
177 (((unsigned long long)byte[OFFSET_VALUE_3] << OFFSET_VALUE_32) & 0xFF00000000L) | in BytesToLonglong()
178 (((unsigned long long)byte[OFFSET_VALUE_4] << OFFSET_VALUE_24) & 0xFF000000L)| in BytesToLonglong()
179 (((unsigned long long)byte[OFFSET_VALUE_ in BytesToLonglong()
[all...]
/foundation/graphic/graphic_3d/lume/LumeBase/api/base/util/
H A Dutf8_decode.h48 constexpr inline uint32_t decode(uint32_t* state, uint32_t* codep, unsigned char byte) in decode() argument
50 uint32_t type = utf8d[byte]; in decode()
52 *codep = (*state != UTF8_ACCEPT) ? (byte & 0x3fu) | (*codep << 6) : (0xff >> type) & (byte); in decode()
/foundation/CastEngine/castengine_wifi_display/tests/demo/rtp/
H A Dh264_rtp_dec_demo.cpp57 int byte = 0; in StartRtpServer() local
69 byte = recvfrom(listenfd, buf, BUF_SIZE, 0, (struct sockaddr *)&clientaddr, &len); in StartRtpServer()
70 if (byte == 0) { in StartRtpServer()
74 if (byte < 0) { in StartRtpServer()
79 byte, buf); in StartRtpServer()
80 cb(buf, byte); in StartRtpServer()
H A Dts_rtp_dec_demo.cpp56 int byte = 0; in StartRtpServer() local
68 byte = recvfrom(listenfd, buf, BUF_SIZE, 0, (struct sockaddr *)&clientaddr, &len); in StartRtpServer()
69 if (byte == 0) { in StartRtpServer()
73 if (byte < 0) { in StartRtpServer()
77 cb(buf, byte); in StartRtpServer()
/foundation/multimedia/image_framework/plugins/common/libs/image/libextplugin/src/
H A Dext_wstream.cpp66 OHOS::Media::byte* bytePtr = reinterpret_cast<OHOS::Media::byte*>(const_cast<void*>(buffer)); in write()

Completed in 12 milliseconds

123