view rtjpeg.h @ 3488:a647bf3a7fa8 libavcodec

replace *_dequant (2 intra, 1 inter) by qmat (3 intra, 3 inter) (needed for theora according to spec)
author michael
date Mon, 17 Jul 2006 08:09:08 +0000
parents 28aaf0a0135e
children c537a97eec66
line wrap: on
line source

#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