Imager-zxing

 view release on metacpan or  search on metacpan

zxing.xs  view on Meta::CPAN

ZXingDecoder::DESTROY()

std_string
ZXingDecoder::formats() const

bool
ZXingDecoder::setFormats(std_string formats)

void
ZXingDecoder::decode(Imager im) const
  PPCODE:
    auto results = THIS->decode(im);
    EXTEND(SP, results.size());
    for (auto &&r : results) {
      auto pr = new ZXingDecoderResult(std::move(r));
      SV *sv_r = sv_newmortal();
      sv_setref_pv(sv_r, "Imager::zxing::Decoder::Result", pr);
      PUSHs(sv_r);
    }

std_string
ZXingDecoder::error() const

static void
ZXingDecoder::availFormats()
  PPCODE:
    const auto &v = ZXingDecoder::availFormats();
    EXTEND(SP, v.size());
    for (auto &f : v) {
      PUSHs(string_to_SV(f, SVs_TEMP));
    }

void
ZXingDecoder::setTryHarder(bool val)
  ALIAS:
    setTryHarder = bo_tryHarder

zxing.xs  view on Meta::CPAN

ZXingDecoderResult::isInverted() const

std_string
ZXingDecoderResult::format() const

std_string
ZXingDecoderResult::contentType() const

void
ZXingDecoderResult::position() const
  PPCODE:
    auto pos = THIS->position();
    EXTEND(SP, 8);
    for (auto &f : pos) {
      PUSHs(sv_2mortal(newSViv(f.x)));
      PUSHs(sv_2mortal(newSViv(f.y)));
    }

int
ZXingDecoderResult::orientation() const

zxing.xs  view on Meta::CPAN

ZXingEncoder::encode_(SV *text_sv, int width, int height) const
  CODE:
    std::string_view text = SV_to_utf8_bytes_string_view(aTHX_ text_sv, THIS->isBytes());
    RETVAL = THIS->encode(text, width, height);
    if (!RETVAL)
      XSRETURN_EMPTY;
    OUTPUT : RETVAL

static void
ZXingEncoder::availFormats()
  PPCODE:
    const auto &v = ZXingEncoder::availFormats();
    EXTEND(SP, v.size());
    for (auto &f : v) {
      PUSHs(string_to_SV(f, SVs_TEMP));
    }
    

BOOT:
        PERL_INITIALIZE_IMAGER_CALLBACKS;



( run in 0.312 second using v1.01-cache-2.11-cpan-5511b514fd6 )