You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
496B

  1. #ifndef RTJPEG_H
  2. #define RTJPEG_H
  3. typedef struct {
  4. int w, h;
  5. DSPContext *dsp;
  6. DCTELEM block[64];
  7. uint8_t scan[64];
  8. uint32_t lquant[64];
  9. uint32_t cquant[64];
  10. } RTJpegContext;
  11. void rtjpeg_decode_init(RTJpegContext *c, DSPContext *dsp,
  12. int width, int height,
  13. uint32_t *lquant, uint32_t *cquant);
  14. int rtjpeg_decode_frame_yuv420(RTJpegContext *c, AVFrame *f,
  15. uint8_t *buf, int buf_size);
  16. #endif