Home
last modified time | relevance | path

Searched refs:num_text (Results 1 – 20 of 20) 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/libpng/
Dpngtest.c815 int num_text) in pngtest_check_text_support() argument
817 while (num_text > 0) in pngtest_check_text_support()
819 switch (text_ptr[--num_text].compression) in pngtest_check_text_support()
828 text_ptr[num_text].compression = PNG_TEXT_COMPRESSION_NONE; in pngtest_check_text_support()
836 text_ptr[num_text].compression = PNG_TEXT_COMPRESSION_NONE; in pngtest_check_text_support()
1282 int num_text; in test_one_file() local
1284 if (png_get_text(read_ptr, read_info_ptr, &text_ptr, &num_text) > 0) in test_one_file()
1286 pngtest_debug1("Handling %d iTXt/tEXt/zTXt chunks", num_text); in test_one_file()
1288 pngtest_check_text_support(read_ptr, text_ptr, num_text); in test_one_file()
1295 for (i=0; i<num_text; i++) in test_one_file()
[all …]
Dpngset.c702 png_const_textp text_ptr, int num_text) in png_set_text() argument
705 ret = png_set_text_2(png_ptr, info_ptr, text_ptr, num_text); in png_set_text()
713 png_const_textp text_ptr, int num_text) in png_set_text_2() argument
720 if (png_ptr == NULL || info_ptr == NULL || num_text <= 0 || text_ptr == NULL) in png_set_text_2()
728 if (num_text > info_ptr->max_text - info_ptr->num_text) in png_set_text_2()
730 int old_num_text = info_ptr->num_text; in png_set_text_2()
736 if (num_text <= INT_MAX - max_text) in png_set_text_2()
738 max_text += num_text; in png_set_text_2()
773 for (i = 0; i < num_text; i++) in png_set_text_2()
777 png_textp textp = &(info_ptr->text[info_ptr->num_text]); in png_set_text_2()
[all …]
Dpngget.c1020 png_textp *text_ptr, int *num_text) in png_get_text() argument
1022 if (png_ptr != NULL && info_ptr != NULL && info_ptr->num_text > 0) in png_get_text()
1030 if (num_text != NULL) in png_get_text()
1031 *num_text = info_ptr->num_text; in png_get_text()
1033 return info_ptr->num_text; in png_get_text()
1036 if (num_text != NULL) in png_get_text()
1037 *num_text = 0; in png_get_text()
Dpnginfo.h120 int num_text; /* number of comments read or comments to write */ member
Dpngwrite.c286 for (i = 0; i < info_ptr->num_text; i++) in png_write_info()
383 for (i = 0; i < info_ptr->num_text; i++) in png_write_end()
Dpng.h2128 png_inforp info_ptr, png_textp *text_ptr, int *num_text));
2140 png_inforp info_ptr, png_const_textp text_ptr, int num_text));
Dpng.c474 for (i = 0; i < info_ptr->num_text; i++) in png_free_data()
479 info_ptr->num_text = 0; in png_free_data()
Dpngpriv.h1085 png_inforp info_ptr, png_const_textp text_ptr, int num_text),PNG_EMPTY);
Dlibpng-manual.txt1453 &text_ptr, &num_text);
1493 num_text - number of comments (same as
1641 A quick word about text_ptr and num_text. PNG stores comments in
3078 png_set_text(png_ptr, info_ptr, text_ptr, num_text);
3110 num_text - number of comments
3186 A quick word about text and num_text. text is an array of png_text
3187 structures. num_text is the number of valid structures in the array.
DCHANGES386 Fixed error in example.c with png_set_text: num_text is 3, not 2 (Guido V.)
706 Return *num_text=0 from png_get_text() when appropriate, and fix documentation
/external/pdfium/samples/fx_lpng/lpng_v163/
Dfx_pngset.c683 png_const_textp text_ptr, int num_text) in png_set_text() argument
686 ret = png_set_text_2(png_ptr, info_ptr, text_ptr, num_text); in png_set_text()
694 png_const_textp text_ptr, int num_text) in png_set_text_2() argument
701 if (png_ptr == NULL || info_ptr == NULL || num_text <= 0 || text_ptr == NULL) in png_set_text_2()
709 if (num_text > info_ptr->max_text - info_ptr->num_text) in png_set_text_2()
711 int old_num_text = info_ptr->num_text; in png_set_text_2()
717 if (num_text <= INT_MAX - max_text) in png_set_text_2()
719 max_text += num_text; in png_set_text_2()
753 for (i = 0; i < num_text; i++) in png_set_text_2()
757 png_textp textp = &(info_ptr->text[info_ptr->num_text]); in png_set_text_2()
[all …]
Dfx_pngget.c978 png_textp *text_ptr, int *num_text) in png_get_text() argument
980 if (png_ptr != NULL && info_ptr != NULL && info_ptr->num_text > 0) in png_get_text()
988 if (num_text != NULL) in png_get_text()
989 *num_text = info_ptr->num_text; in png_get_text()
991 return info_ptr->num_text; in png_get_text()
994 if (num_text != NULL) in png_get_text()
995 *num_text = 0; in png_get_text()
Dpnginfo.h121 int num_text; /* number of comments read or comments to write */ member
Dfx_pngwrite.c279 for (i = 0; i < info_ptr->num_text; i++) in png_write_info()
374 for (i = 0; i < info_ptr->num_text; i++) in png_write_end()
Dpng.h2559 png_inforp info_ptr, png_textp *text_ptr, int *num_text));
2571 png_inforp info_ptr, png_const_textp text_ptr, int num_text));
Dfx_png.c462 for (i = 0; i < info_ptr->num_text; i++) in png_free_data()
466 info_ptr->num_text=0; in png_free_data()
Dpngpriv.h1057 png_inforp info_ptr, png_const_textp text_ptr, int num_text),PNG_EMPTY);
/external/v8/src/
Dparser.cc51 int num_text = text_.length(); in FlushText() local
52 if (num_text == 0) { in FlushText()
54 } else if (num_text == 1) { in FlushText()
58 for (int i = 0; i < num_text; i++) in FlushText()
/external/libpng/contrib/libtests/
Dpngvalid.c5158 png_uint_32 num_text = png_get_text(pp, pi, &tp, NULL); in standard_text_validate() local
5160 if (num_text == 2 && tp != NULL) in standard_text_validate()
5177 (unsigned long)num_text); in standard_text_validate()