Home
last modified time | relevance | path

Searched refs:num_text (Results 1 – 25 of 38) sorted by relevance

12

/third_party/skia/third_party/externals/libpng/contrib/gregbook/
Dwritepng.c181 int num_text = 0; in writepng_init() local
184 text[num_text].compression = PNG_TEXT_COMPRESSION_NONE; in writepng_init()
185 text[num_text].key = "Title"; in writepng_init()
186 text[num_text].text = mainprog_ptr->title; in writepng_init()
187 ++num_text; in writepng_init()
190 text[num_text].compression = PNG_TEXT_COMPRESSION_NONE; in writepng_init()
191 text[num_text].key = "Author"; in writepng_init()
192 text[num_text].text = mainprog_ptr->author; in writepng_init()
193 ++num_text; in writepng_init()
196 text[num_text].compression = PNG_TEXT_COMPRESSION_NONE; in writepng_init()
[all …]
/third_party/libpng/contrib/gregbook/
Dwritepng.c181 int num_text = 0; in writepng_init() local
184 text[num_text].compression = PNG_TEXT_COMPRESSION_NONE; in writepng_init()
185 text[num_text].key = "Title"; in writepng_init()
186 text[num_text].text = mainprog_ptr->title; in writepng_init()
187 ++num_text; in writepng_init()
190 text[num_text].compression = PNG_TEXT_COMPRESSION_NONE; in writepng_init()
191 text[num_text].key = "Author"; in writepng_init()
192 text[num_text].text = mainprog_ptr->author; in writepng_init()
193 ++num_text; in writepng_init()
196 text[num_text].compression = PNG_TEXT_COMPRESSION_NONE; in writepng_init()
[all …]
/third_party/libpng/
Dpngtest.c816 int num_text) in pngtest_check_text_support() argument
818 while (num_text > 0) in pngtest_check_text_support()
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()
1318 int num_text; in test_one_file() local
1320 if (png_get_text(read_ptr, read_info_ptr, &text_ptr, &num_text) > 0) in test_one_file()
1322 pngtest_debug1("Handling %d iTXt/tEXt/zTXt chunks", num_text); in test_one_file()
1324 pngtest_check_text_support(read_ptr, text_ptr, num_text); in test_one_file()
1331 for (i=0; i<num_text; i++) in test_one_file()
[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()
789 if (num_text > info_ptr->max_text - info_ptr->num_text) in png_set_text_2()
791 int old_num_text = info_ptr->num_text; in png_set_text_2()
797 if (num_text <= INT_MAX - max_text) in png_set_text_2()
799 max_text += num_text; in png_set_text_2()
834 for (i = 0; i < num_text; i++) in png_set_text_2()
838 png_textp textp = &(info_ptr->text[info_ptr->num_text]); in png_set_text_2()
[all …]
Dpngget.c1050 png_textp *text_ptr, int *num_text) in png_get_text() argument
1052 if (png_ptr != NULL && info_ptr != NULL && info_ptr->num_text > 0) in png_get_text()
1060 if (num_text != NULL) in png_get_text()
1061 *num_text = info_ptr->num_text; in png_get_text()
1063 return info_ptr->num_text; in png_get_text()
1066 if (num_text != NULL) in png_get_text()
1067 *num_text = 0; in png_get_text()
Dpnginfo.h120 int num_text; /* number of comments read or comments to write */ member
Dpngwrite.c291 for (i = 0; i < info_ptr->num_text; i++) in png_write_info()
388 for (i = 0; i < info_ptr->num_text; i++) in png_write_end()
Dpng.h2114 png_inforp info_ptr, png_textp *text_ptr, int *num_text));
2126 png_inforp info_ptr, png_const_textp text_ptr, int num_text));
Dpng.c494 for (i = 0; i < info_ptr->num_text; i++) in png_free_data()
499 info_ptr->num_text = 0; in png_free_data()
/third_party/flutter/skia/third_party/externals/libpng/
Dpngtest.c816 int num_text) in pngtest_check_text_support() argument
818 while (num_text > 0) in pngtest_check_text_support()
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()
1318 int num_text; in test_one_file() local
1320 if (png_get_text(read_ptr, read_info_ptr, &text_ptr, &num_text) > 0) in test_one_file()
1322 pngtest_debug1("Handling %d iTXt/tEXt/zTXt chunks", num_text); in test_one_file()
1324 pngtest_check_text_support(read_ptr, text_ptr, num_text); in test_one_file()
1331 for (i=0; i<num_text; i++) in test_one_file()
[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()
789 if (num_text > info_ptr->max_text - info_ptr->num_text) in png_set_text_2()
791 int old_num_text = info_ptr->num_text; in png_set_text_2()
797 if (num_text <= INT_MAX - max_text) in png_set_text_2()
799 max_text += num_text; in png_set_text_2()
834 for (i = 0; i < num_text; i++) in png_set_text_2()
838 png_textp textp = &(info_ptr->text[info_ptr->num_text]); in png_set_text_2()
[all …]
Dpngget.c1050 png_textp *text_ptr, int *num_text) in png_get_text() argument
1052 if (png_ptr != NULL && info_ptr != NULL && info_ptr->num_text > 0) in png_get_text()
1060 if (num_text != NULL) in png_get_text()
1061 *num_text = info_ptr->num_text; in png_get_text()
1063 return info_ptr->num_text; in png_get_text()
1066 if (num_text != NULL) in png_get_text()
1067 *num_text = 0; in png_get_text()
Dpnginfo.h120 int num_text; /* number of comments read or comments to write */ member
Dpng.h2114 png_inforp info_ptr, png_textp *text_ptr, int *num_text));
2126 png_inforp info_ptr, png_const_textp text_ptr, int num_text));
Dpngwrite.c291 for (i = 0; i < info_ptr->num_text; i++) in png_write_info()
388 for (i = 0; i < info_ptr->num_text; i++) in png_write_end()
/third_party/skia/third_party/externals/libpng/
Dpngtest.c816 int num_text) in pngtest_check_text_support() argument
818 while (num_text > 0) in pngtest_check_text_support()
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()
1318 int num_text; in test_one_file() local
1320 if (png_get_text(read_ptr, read_info_ptr, &text_ptr, &num_text) > 0) in test_one_file()
1322 pngtest_debug1("Handling %d iTXt/tEXt/zTXt chunks", num_text); in test_one_file()
1324 pngtest_check_text_support(read_ptr, text_ptr, num_text); in test_one_file()
1331 for (i=0; i<num_text; i++) in test_one_file()
[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()
789 if (num_text > info_ptr->max_text - info_ptr->num_text) in png_set_text_2()
791 int old_num_text = info_ptr->num_text; in png_set_text_2()
797 if (num_text <= INT_MAX - max_text) in png_set_text_2()
799 max_text += num_text; in png_set_text_2()
834 for (i = 0; i < num_text; i++) in png_set_text_2()
838 png_textp textp = &(info_ptr->text[info_ptr->num_text]); in png_set_text_2()
[all …]
Dpngget.c1050 png_textp *text_ptr, int *num_text) in png_get_text() argument
1052 if (png_ptr != NULL && info_ptr != NULL && info_ptr->num_text > 0) in png_get_text()
1060 if (num_text != NULL) in png_get_text()
1061 *num_text = info_ptr->num_text; in png_get_text()
1063 return info_ptr->num_text; in png_get_text()
1066 if (num_text != NULL) in png_get_text()
1067 *num_text = 0; in png_get_text()
Dpnginfo.h120 int num_text; /* number of comments read or comments to write */ member
Dpngwrite.c291 for (i = 0; i < info_ptr->num_text; i++) in png_write_info()
388 for (i = 0; i < info_ptr->num_text; i++) in png_write_end()
Dpng.h2114 png_inforp info_ptr, png_textp *text_ptr, int *num_text));
2126 png_inforp info_ptr, png_const_textp text_ptr, int num_text));
Dpng.c494 for (i = 0; i < info_ptr->num_text; i++) in png_free_data()
499 info_ptr->num_text = 0; in png_free_data()
/third_party/libpng/contrib/tools/
Dpngcp.c411 int num_text; member
500 dp->num_text = 0; in display_init()
547 dp->num_text = 0; in display_clean()
665 dp->num_text = png_get_text(dp->write_pp, dp->ip, &chunks, NULL); in text_stash()
667 if (dp->num_text > 0) in text_stash()
669 dp->text_ptr = voidcast(png_textp, malloc(dp->num_text * sizeof *chunks)); in text_stash()
675 memcpy(dp->text_ptr, chunks, dp->num_text * sizeof *chunks); in text_stash()
688 png_set_text(dp->write_pp, dp->ip, dp->text_ptr, dp->num_text); in text_restore()
/third_party/skia/third_party/externals/libpng/contrib/tools/
Dpngcp.c411 int num_text; member
500 dp->num_text = 0; in display_init()
547 dp->num_text = 0; in display_clean()
665 dp->num_text = png_get_text(dp->write_pp, dp->ip, &chunks, NULL); in text_stash()
667 if (dp->num_text > 0) in text_stash()
669 dp->text_ptr = voidcast(png_textp, malloc(dp->num_text * sizeof *chunks)); in text_stash()
675 memcpy(dp->text_ptr, chunks, dp->num_text * sizeof *chunks); in text_stash()
688 png_set_text(dp->write_pp, dp->ip, dp->text_ptr, dp->num_text); in text_restore()
/third_party/flutter/skia/third_party/externals/libpng/contrib/tools/
Dpngcp.c411 int num_text; member
500 dp->num_text = 0; in display_init()
547 dp->num_text = 0; in display_clean()
665 dp->num_text = png_get_text(dp->write_pp, dp->ip, &chunks, NULL); in text_stash()
667 if (dp->num_text > 0) in text_stash()
669 dp->text_ptr = voidcast(png_textp, malloc(dp->num_text * sizeof *chunks)); in text_stash()
675 memcpy(dp->text_ptr, chunks, dp->num_text * sizeof *chunks); in text_stash()
688 png_set_text(dp->write_pp, dp->ip, dp->text_ptr, dp->num_text); in text_restore()

12