summaryrefslogtreecommitdiff
path: root/libavcodec/rtjpeg.h
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2006-03-27 22:22:50 +0000
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2006-03-27 22:22:50 +0000
commitdfca23e361cfcd557a0ec65ee0469e11bfc70f3a (patch)
tree088799aaad7540193b8d7bc9e5f4c3b8db88feb2 /libavcodec/rtjpeg.h
parent4f6a6e1f81b555bd20f13132bd91f421e3d98452 (diff)
NuppelVideo/MythTVVideo support, including rtjpeg decoder
Originally committed as revision 5232 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/rtjpeg.h')
-rw-r--r--libavcodec/rtjpeg.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/libavcodec/rtjpeg.h b/libavcodec/rtjpeg.h
new file mode 100644
index 0000000000..1fc2fc934a
--- /dev/null
+++ b/libavcodec/rtjpeg.h
@@ -0,0 +1,19 @@
+#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