Home
last modified time | relevance | path

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

/external/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 …]
/external/qemu/distrib/libpng-1.2.46/
Dpngset.c644 int num_text) in png_set_text() argument
647 ret = png_set_text_2(png_ptr, info_ptr, text_ptr, num_text); in png_set_text()
654 int num_text) in png_set_text_2() argument
662 if (png_ptr == NULL || info_ptr == NULL || num_text == 0) in png_set_text_2()
668 if (info_ptr->num_text + num_text > info_ptr->max_text) in png_set_text_2()
671 int old_num_text = info_ptr->num_text; in png_set_text_2()
677 info_ptr->max_text = info_ptr->num_text + num_text + 8; in png_set_text_2()
695 info_ptr->max_text = num_text + 8; in png_set_text_2()
696 info_ptr->num_text = 0; in png_set_text_2()
702 info_ptr->num_text = old_num_text; in png_set_text_2()
[all …]
Dpngget.c765 int *num_text) in png_get_text() argument
767 if (png_ptr != NULL && info_ptr != NULL && info_ptr->num_text > 0) in png_get_text()
776 if (num_text != NULL) in png_get_text()
777 *num_text = info_ptr->num_text; in png_get_text()
779 return ((png_uint_32)info_ptr->num_text); in png_get_text()
781 if (num_text != NULL) in png_get_text()
782 *num_text = 0; in png_get_text()
Dpng.c386 for (i = 0; i < info_ptr->num_text; i++) in png_free_data()
390 info_ptr->num_text=0; in png_free_data()
Dpngwrite.c231 for (i = 0; i < info_ptr->num_text; i++) in png_write_info()
338 for (i = 0; i < info_ptr->num_text; i++) in png_write_end()
Dpng.h911 int num_text PNG_DEPSTRUCT; /* number of comments read/to write */
2569 png_infop info_ptr, png_textp *text_ptr, int *num_text));
2582 png_infop info_ptr, png_textp text_ptr, int num_text));
3420 png_infop info_ptr, png_textp text_ptr, int num_text)) PNG_PRIVATE;
/external/libpng/
Dpngtest.c795 int num_text) in pngtest_check_text_support() argument
797 while (num_text > 0) in pngtest_check_text_support()
799 switch (text_ptr[--num_text].compression) in pngtest_check_text_support()
1249 int num_text; in test_one_file() local
1251 if (png_get_text(read_ptr, read_info_ptr, &text_ptr, &num_text) > 0) in test_one_file()
1253 pngtest_debug1("Handling %d iTXt/tEXt/zTXt chunks", num_text); in test_one_file()
1255 pngtest_check_text_support(read_ptr, text_ptr, num_text); in test_one_file()
1262 for (i=0; i<num_text; i++) in test_one_file()
1269 png_set_text(write_ptr, write_info_ptr, text_ptr, num_text); in test_one_file()
1431 int num_text; in test_one_file() local
[all …]
Dpngset.c684 png_const_textp text_ptr, int num_text) in png_set_text() argument
687 ret = png_set_text_2(png_ptr, info_ptr, text_ptr, num_text); in png_set_text()
695 png_const_textp text_ptr, int num_text) in png_set_text_2() argument
702 if (png_ptr == NULL || info_ptr == NULL || num_text <= 0 || text_ptr == NULL) in png_set_text_2()
710 if (num_text > info_ptr->max_text - info_ptr->num_text) in png_set_text_2()
712 int old_num_text = info_ptr->num_text; in png_set_text_2()
718 if (num_text <= INT_MAX - max_text) in png_set_text_2()
720 max_text += num_text; in png_set_text_2()
754 for (i = 0; i < num_text; i++) in png_set_text_2()
758 png_textp textp = &(info_ptr->text[info_ptr->num_text]); in png_set_text_2()
[all …]
Dpngget.c979 png_textp *text_ptr, int *num_text) in png_get_text() argument
981 if (png_ptr != NULL && info_ptr != NULL && info_ptr->num_text > 0) in png_get_text()
989 if (num_text != NULL) in png_get_text()
990 *num_text = info_ptr->num_text; in png_get_text()
992 return info_ptr->num_text; in png_get_text()
995 if (num_text != NULL) in png_get_text()
996 *num_text = 0; in png_get_text()
Dpnginfo.h121 int num_text; /* number of comments read or comments to write */ member
Dpngwrite.c280 for (i = 0; i < info_ptr->num_text; i++) in png_write_info()
375 for (i = 0; i < info_ptr->num_text; i++) in png_write_end()
Dpng.h2269 png_inforp info_ptr, png_textp *text_ptr, int *num_text));
2281 png_inforp info_ptr, png_const_textp text_ptr, int num_text));
Dpng.c468 for (i = 0; i < info_ptr->num_text; i++) in png_free_data()
472 info_ptr->num_text=0; in png_free_data()
Dpngpriv.h1104 png_inforp info_ptr, png_const_textp text_ptr, int num_text),PNG_EMPTY);
Dlibpng-manual.txt1449 &text_ptr, &num_text);
1489 num_text - number of comments (same as
1637 A quick word about text_ptr and num_text. PNG stores comments in
3071 png_set_text(png_ptr, info_ptr, text_ptr, num_text);
3103 num_text - number of comments
3179 A quick word about text and num_text. text is an array of png_text
3180 structures. num_text is the number of valid structures in the array.
DCHANGES379 Fixed error in example.c with png_set_text: num_text is 3, not 2 (Guido V.)
698 Return *num_text=0 from png_get_text() when appropriate, and fix documentation
/external/chromium_org/third_party/libpng/
Dpngset.c644 int num_text) in png_set_text() argument
647 ret = png_set_text_2(png_ptr, info_ptr, text_ptr, num_text); in png_set_text()
654 int num_text) in png_set_text_2() argument
662 if (png_ptr == NULL || info_ptr == NULL || num_text == 0) in png_set_text_2()
668 if (info_ptr->num_text + num_text > info_ptr->max_text) in png_set_text_2()
676 info_ptr->max_text = info_ptr->num_text + num_text + 8; in png_set_text_2()
691 info_ptr->max_text = num_text + 8; in png_set_text_2()
692 info_ptr->num_text = 0; in png_set_text_2()
704 for (i = 0; i < num_text; i++) in png_set_text_2()
708 png_textp textp = &(info_ptr->text[info_ptr->num_text]); in png_set_text_2()
[all …]
Dpngget.c765 int *num_text) in png_get_text() argument
767 if (png_ptr != NULL && info_ptr != NULL && info_ptr->num_text > 0) in png_get_text()
776 if (num_text != NULL) in png_get_text()
777 *num_text = info_ptr->num_text; in png_get_text()
779 return ((png_uint_32)info_ptr->num_text); in png_get_text()
781 if (num_text != NULL) in png_get_text()
782 *num_text = 0; in png_get_text()
Dpng.c385 for (i = 0; i < info_ptr->num_text; i++) in png_free_data()
389 info_ptr->num_text=0; in png_free_data()
Dpngwrite.c231 for (i = 0; i < info_ptr->num_text; i++) in png_write_info()
338 for (i = 0; i < info_ptr->num_text; i++) in png_write_end()
Dpng.h864 int num_text PNG_DEPSTRUCT; /* number of comments read/to write */
2497 png_infop info_ptr, png_textp *text_ptr, int *num_text));
2510 png_infop info_ptr, png_textp text_ptr, int num_text));
3336 png_infop info_ptr, png_textp text_ptr, int num_text)) PNG_PRIVATE;
/external/chromium_org/v8/src/
Dparser.cc50 int num_text = text_.length(); in FlushText() local
51 if (num_text == 0) { in FlushText()
53 } else if (num_text == 1) { in FlushText()
57 for (int i = 0; i < num_text; i++) in FlushText()
/external/libpng/contrib/libtests/
Dpngvalid.c4902 png_uint_32 num_text = png_get_text(pp, pi, &tp, NULL); in standard_text_validate() local
4904 if (num_text == 2 && tp != NULL) in standard_text_validate()
4921 (unsigned long)num_text); in standard_text_validate()