Home
last modified time | relevance | path

Searched refs:text_ptr (Results 1 – 15 of 15) sorted by relevance

/external/libpng/
Dexample.c881 png_text text_ptr[3];
885 text_ptr[0].key = key0;
886 text_ptr[0].text = text0;
887 text_ptr[0].compression = PNG_TEXT_COMPRESSION_NONE;
888 text_ptr[0].itxt_length = 0;
889 text_ptr[0].lang = NULL;
890 text_ptr[0].lang_key = NULL;
894 text_ptr[1].key = key1;
895 text_ptr[1].text = text1;
896 text_ptr[1].compression = PNG_TEXT_COMPRESSION_NONE;
[all …]
Dpngset.c763 png_const_textp text_ptr, int num_text) in png_set_text() argument
766 ret = png_set_text_2(png_ptr, info_ptr, text_ptr, num_text); in png_set_text()
774 png_const_textp text_ptr, int num_text) in png_set_text_2() argument
781 if (png_ptr == NULL || info_ptr == NULL || num_text <= 0 || text_ptr == NULL) in png_set_text_2()
840 if (text_ptr[i].key == NULL) in png_set_text_2()
843 if (text_ptr[i].compression < PNG_TEXT_COMPRESSION_NONE || in png_set_text_2()
844 text_ptr[i].compression >= PNG_TEXT_COMPRESSION_LAST) in png_set_text_2()
851 key_len = strlen(text_ptr[i].key); in png_set_text_2()
853 if (text_ptr[i].compression <= 0) in png_set_text_2()
864 if (text_ptr[i].lang != NULL) in png_set_text_2()
[all …]
Dpngtest.c815 pngtest_check_text_support(png_structp png_ptr, png_textp text_ptr, in pngtest_check_text_support() argument
820 switch (text_ptr[--num_text].compression) in pngtest_check_text_support()
829 text_ptr[num_text].compression = PNG_TEXT_COMPRESSION_NONE; in pngtest_check_text_support()
837 text_ptr[num_text].compression = PNG_TEXT_COMPRESSION_NONE; in pngtest_check_text_support()
1315 png_textp text_ptr; in test_one_file() local
1318 if (png_get_text(read_ptr, read_info_ptr, &text_ptr, &num_text) > 0) in test_one_file()
1322 pngtest_check_text_support(read_ptr, text_ptr, num_text); in test_one_file()
1332 i, text_ptr[i].compression); in test_one_file()
1336 png_set_text(write_ptr, write_info_ptr, text_ptr, num_text); in test_one_file()
1535 png_textp text_ptr; in test_one_file() local
[all …]
Dpngget.c1049 png_textp *text_ptr, int *num_text) in png_get_text() argument
1056 if (text_ptr != NULL) in png_get_text()
1057 *text_ptr = info_ptr->text; in png_get_text()
Dlibpng-manual.txt1490 &text_ptr, &num_text);
1494 text_ptr - array of png_text holding image
1497 text_ptr[i].compression - type of compression used
1503 text_ptr[i].key - keyword for comment. Must contain
1506 text_ptr[i].text - text comments for current
1509 text_ptr[i].text_length - length of text string,
1512 text_ptr[i].itxt_length - length of itxt string,
1515 text_ptr[i].lang - language of comment (empty
1518 text_ptr[i].lang_key - keyword in UTF-8
1522 members of the text_ptr structure only exist when the
[all …]
Dpng.h2145 png_inforp info_ptr, png_textp *text_ptr, int *num_text));
2157 png_inforp info_ptr, png_const_textp text_ptr, int num_text));
Dpngpriv.h1200 png_inforp info_ptr, png_const_textp text_ptr, int num_text),PNG_EMPTY);
DCHANGES555 text_ptr structure. Instead, it makes its own copy.
/external/pdfium/third_party/libpng16/
Dpngset.c714 png_const_textp text_ptr, int num_text) in png_set_text() argument
717 ret = png_set_text_2(png_ptr, info_ptr, text_ptr, num_text); in png_set_text()
725 png_const_textp text_ptr, int num_text) in png_set_text_2() argument
732 if (png_ptr == NULL || info_ptr == NULL || num_text <= 0 || text_ptr == NULL) in png_set_text_2()
791 if (text_ptr[i].key == NULL) in png_set_text_2()
794 if (text_ptr[i].compression < PNG_TEXT_COMPRESSION_NONE || in png_set_text_2()
795 text_ptr[i].compression >= PNG_TEXT_COMPRESSION_LAST) in png_set_text_2()
802 key_len = strlen(text_ptr[i].key); in png_set_text_2()
804 if (text_ptr[i].compression <= 0) in png_set_text_2()
815 if (text_ptr[i].lang != NULL) in png_set_text_2()
[all …]
Dpngget.c1020 png_textp *text_ptr, int *num_text) in png_get_text() argument
1027 if (text_ptr != NULL) in png_get_text()
1028 *text_ptr = info_ptr->text; in png_get_text()
Dpng.h2139 png_inforp info_ptr, png_textp *text_ptr, int *num_text));
2151 png_inforp info_ptr, png_const_textp text_ptr, int num_text));
Dpngpriv.h1121 png_inforp info_ptr, png_const_textp text_ptr, int num_text),PNG_EMPTY);
/external/honggfuzz/examples/libpng/
Dpersistent-png.c117 png_textp text_ptr; in LLVMFuzzerTestOneInput() local
126 ret = png_get_text(png_ptr, info_ptr, &text_ptr, &num_text); in LLVMFuzzerTestOneInput()
/external/tensorflow/tensorflow/core/lib/png/
Dpng_io.cc187 png_textp text_ptr = nullptr; in DecodeHeader() local
189 png_get_text(context.png_ptr, context.info_ptr, &text_ptr, &num_text); in DecodeHeader()
191 const png_text& text = text_ptr[i]; in DecodeHeader()
/external/libpng/contrib/tools/
Dpngcp.c410 png_textp text_ptr; /* stash of text chunks */ member
499 dp->text_ptr = NULL; in display_init()
548 free(dp->text_ptr); in display_clean()
549 dp->text_ptr = NULL; in display_clean()
669 dp->text_ptr = voidcast(png_textp, malloc(dp->num_text * sizeof *chunks)); in text_stash()
671 if (dp->text_ptr == NULL) in text_stash()
675 memcpy(dp->text_ptr, chunks, dp->num_text * sizeof *chunks); in text_stash()
687 if (dp->text_ptr != NULL) in text_restore()
688 png_set_text(dp->write_pp, dp->ip, dp->text_ptr, dp->num_text); in text_restore()