Pharos 0.7.23
Modern Web Framework & Web App Hosting Service.
Loading...
Searching...
No Matches
pharos_zxing_reader.c File Reference
#include "pharos_zxing_reader.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ZXing/ZXingC.h>
#include "stb_image.h"

Go to the source code of this file.

Macros

#define STB_IMAGE_IMPLEMENTATION
#define STBI_NO_LINEAR
#define STBI_NO_HDR

Functions

static int pharos_zxing_copy_text (const char *source_text, char **decoded_text_out)
int pharos_zxing_decode_image_path (const char *image_path, char **decoded_text_out)
int pharos_zxing_reader_main (int argc, char **argv)

Macro Definition Documentation

◆ STB_IMAGE_IMPLEMENTATION

#define STB_IMAGE_IMPLEMENTATION

Definition at line 53 of file pharos_zxing_reader.c.

◆ STBI_NO_HDR

#define STBI_NO_HDR

Definition at line 55 of file pharos_zxing_reader.c.

◆ STBI_NO_LINEAR

#define STBI_NO_LINEAR

Definition at line 54 of file pharos_zxing_reader.c.

Function Documentation

◆ pharos_zxing_copy_text()

int pharos_zxing_copy_text ( const char * source_text,
char ** decoded_text_out )
static

Definition at line 58 of file pharos_zxing_reader.c.

Referenced by pharos_zxing_decode_image_path().

◆ pharos_zxing_decode_image_path()

int pharos_zxing_decode_image_path ( const char * image_path,
char ** decoded_text_out )

◆ pharos_zxing_reader_main()

int pharos_zxing_reader_main ( int argc,
char ** argv )

Definition at line 152 of file pharos_zxing_reader.c.

References pharos_zxing_decode_image_path().

Referenced by main().