mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
20 lines
496 B
C
20 lines
496 B
C
|
#ifndef RTJPEG_H
|
||
|
#define RTJPEG_H
|
||
|
|
||
|
typedef struct {
|
||
|
int w, h;
|
||
|
DSPContext *dsp;
|
||
|
DCTELEM block[64];
|
||
|
uint8_t scan[64];
|
||
|
uint32_t lquant[64];
|
||
|
uint32_t cquant[64];
|
||
|
} RTJpegContext;
|
||
|
|
||
|
void rtjpeg_decode_init(RTJpegContext *c, DSPContext *dsp,
|
||
|
int width, int height,
|
||
|
uint32_t *lquant, uint32_t *cquant);
|
||
|
|
||
|
int rtjpeg_decode_frame_yuv420(RTJpegContext *c, AVFrame *f,
|
||
|
uint8_t *buf, int buf_size);
|
||
|
#endif
|