WPILibC++ 2025.1.1
Loading...
Searching...
No Matches
pjpeg.h File Reference
#include "image_u8.h"
#include "image_u8x3.h"

Go to the source code of this file.

Classes

struct  pjpeg_component
 
struct  pjpeg
 

Typedefs

typedef struct pjpeg_component pjpeg_component_t
 
typedef struct pjpeg pjpeg_t
 

Enumerations

enum  PJPEG_FLAGS { PJPEG_STRICT = 1 , PJPEG_MJPEG = 2 }
 
enum  PJPEG_ERROR {
  PJPEG_OKAY = 0 , PJPEG_ERR_FILE , PJPEG_ERR_DQT , PJPEG_ERR_SOF ,
  PJPEG_ERR_DHT , PJPEG_ERR_SOS , PJPEG_ERR_MISSING_DHT , PJPEG_ERR_DRI ,
  PJPEG_ERR_RESET , PJPEG_ERR_EOF , PJEPG_ERR_UNSUPPORTED
}
 

Functions

pjpeg_tpjpeg_create_from_file (const char *path, uint32_t flags, int *error)
 
pjpeg_tpjpeg_create_from_buffer (uint8_t *buf, int buflen, uint32_t flags, int *error)
 
void pjpeg_destroy (pjpeg_t *pj)
 
image_u8_tpjpeg_to_u8_baseline (pjpeg_t *pj)
 
image_u8x3_tpjpeg_to_u8x3_baseline (pjpeg_t *pj)
 

Typedef Documentation

◆ pjpeg_component_t

◆ pjpeg_t

typedef struct pjpeg pjpeg_t

Enumeration Type Documentation

◆ PJPEG_ERROR

Enumerator
PJPEG_OKAY 
PJPEG_ERR_FILE 
PJPEG_ERR_DQT 
PJPEG_ERR_SOF 
PJPEG_ERR_DHT 
PJPEG_ERR_SOS 
PJPEG_ERR_MISSING_DHT 
PJPEG_ERR_DRI 
PJPEG_ERR_RESET 
PJPEG_ERR_EOF 
PJEPG_ERR_UNSUPPORTED 

◆ PJPEG_FLAGS

Enumerator
PJPEG_STRICT 
PJPEG_MJPEG 

Function Documentation

◆ pjpeg_create_from_buffer()

pjpeg_t * pjpeg_create_from_buffer ( uint8_t * buf,
int buflen,
uint32_t flags,
int * error )

◆ pjpeg_create_from_file()

pjpeg_t * pjpeg_create_from_file ( const char * path,
uint32_t flags,
int * error )

◆ pjpeg_destroy()

void pjpeg_destroy ( pjpeg_t * pj)

◆ pjpeg_to_u8_baseline()

image_u8_t * pjpeg_to_u8_baseline ( pjpeg_t * pj)

◆ pjpeg_to_u8x3_baseline()

image_u8x3_t * pjpeg_to_u8x3_baseline ( pjpeg_t * pj)