Home
last modified time | relevance | path

Searched refs:read_ptr (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/libs/androidfw/
DPngCrunch.cpp34 PngReadStructDeleter(png_structp read_ptr, png_infop info_ptr) in PngReadStructDeleter() argument
35 : read_ptr_(read_ptr), info_ptr_(info_ptr) { in PngReadStructDeleter()
170 png_structp read_ptr = png_create_read_struct(PNG_LIBPNG_VER_STRING, nullptr, nullptr, nullptr); in ReadPng() local
171 if (read_ptr == nullptr) { in ReadPng()
177 png_infop info_ptr = png_create_info_struct(read_ptr); in ReadPng()
180 png_destroy_read_struct(&read_ptr, nullptr, nullptr); in ReadPng()
185 PngReadStructDeleter png_read_deleter(read_ptr, info_ptr); in ReadPng()
190 if (setjmp(png_jmpbuf(read_ptr))) { in ReadPng()
195 png_set_error_fn(read_ptr, (png_voidp)&diag, LogError, LogWarning); in ReadPng()
198 png_set_read_fn(read_ptr, (png_voidp)in, ReadDataFromStream); in ReadPng()
[all …]
/frameworks/base/tools/aapt/
DImages.cpp101 png_structp read_ptr, png_infop read_info, in read_png() argument
108 png_set_error_fn(read_ptr, const_cast<char*>(imageName), in read_png()
110 png_read_info(read_ptr, read_info); in read_png()
112 png_get_IHDR(read_ptr, read_info, &outImageInfo->width, in read_png()
121 png_set_palette_to_rgb(read_ptr); in read_png()
124 png_set_expand_gray_1_2_4_to_8(read_ptr); in read_png()
126 if (png_get_valid(read_ptr, read_info, PNG_INFO_tRNS)) { in read_png()
128 png_set_tRNS_to_alpha(read_ptr); in read_png()
132 png_set_strip_16(read_ptr); in read_png()
135 png_set_add_alpha(read_ptr, 0xFF, PNG_FILLER_AFTER); in read_png()
[all …]
/frameworks/native/libs/tracing_perfetto/tests/
Dutils.h129 decoder.read_ptr = read_ptr_;
140 decoder.read_ptr = read_ptr_;
143 read_ptr_ = decoder.read_ptr;
161 Iterator(const uint8_t* read_ptr, const uint8_t* end_ptr, in Iterator() argument
163 : read_ptr_(read_ptr), end_ptr_(end_ptr), skipper_(skipper) { in Iterator()
168 decoder.read_ptr = read_ptr_; in AdvanceToFirstInterestingField()
173 prev_read_ptr = decoder.read_ptr; in AdvanceToFirstInterestingField()
180 read_ptr_ = decoder.read_ptr; in AdvanceToFirstInterestingField()