/*! * \brief l_bootnum_gen2() * * \return pixa of labelled digits * * <pre> * Call this way: * PIXA *pixa = l_bootnum_gen2(); (C) * Pixa *pixa = l_bootnum_gen2(); (C++) * </pre> */ PIXA * l_bootnum_gen2(void) { l_uint8 *data1, *data2; l_int32 size1; size_t size2; PIXA *pixa; /* Unencode selected string, write to file, and read it */ data1 = decodeBase64(l_bootnum2, strlen(l_bootnum2), &size1); data2 = zlibUncompress(data1, size1, &size2); pixa = pixaReadMem(data2, size2); lept_free(data1); lept_free(data2); return pixa; }
/*! * \brief l_bootnum_gen3() * * \return pixa of labelled digits * * <pre> * Call this way: * PIXA *pixa = l_bootnum_gen3(); (C) * Pixa *pixa = l_bootnum_gen3(); (C++) * </pre> */ PIXA * l_bootnum_gen3(void) { l_uint8 *data1, *data2; l_int32 size1; size_t size2; PIXA *pixa; lept_mkdir("lept/auto"); /* Unencode selected string, uncompress it, and read it */ data1 = decodeBase64(l_strdata_0, strlen(l_strdata_0), &size1); data2 = zlibUncompress(data1, size1, &size2); pixa = pixaReadMem(data2, size2); lept_free(data1); lept_free(data2); return pixa; }