[FFmpeg-cvslog] Merge commit 'ad8aa8e6c648b61f01b9f106f27b9d4f3d094345'
Derek Buitenhuis
git at videolan.org
Sun Apr 17 20:30:16 CEST 2016
ffmpeg | branch: master | Derek Buitenhuis <derek.buitenhuis at gmail.com> | Sun Apr 17 19:30:01 2016 +0100| [c29ac4abb8183513555ff2ee90666c6eac7cbf4f] | committer: Derek Buitenhuis
Merge commit 'ad8aa8e6c648b61f01b9f106f27b9d4f3d094345'
* commit 'ad8aa8e6c648b61f01b9f106f27b9d4f3d094345':
intrax8: Move documentation from implementation to header file
Merged-by: Derek Buitenhuis <derek.buitenhuis at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c29ac4abb8183513555ff2ee90666c6eac7cbf4f
---
libavcodec/intrax8.c | 21 ---------------------
libavcodec/intrax8.h | 23 +++++++++++++++++++++++
2 files changed, 23 insertions(+), 21 deletions(-)
diff --git a/libavcodec/intrax8.c b/libavcodec/intrax8.c
index a7f615d..e655c6e 100644
--- a/libavcodec/intrax8.c
+++ b/libavcodec/intrax8.c
@@ -738,12 +738,6 @@ static void x8_init_block_index(MpegEncContext *s)
s->dest[2] += (s->mb_y & (~1)) * uvlinesize << 2;
}
-/**
- * Initialize IntraX8 frame decoder.
- * Requires valid MpegEncContext with valid s->mb_width before calling.
- * @param w pointer to IntraX8Context
- * @param s pointer to MpegEncContext of the parent codec
- */
av_cold void ff_intrax8_common_init(IntraX8Context *w, MpegEncContext *const s)
{
w->s = s;
@@ -768,26 +762,11 @@ av_cold void ff_intrax8_common_init(IntraX8Context *w, MpegEncContext *const s)
ff_intrax8dsp_init(&w->dsp);
}
-/**
- * Destroy IntraX8 frame structure.
- * @param w pointer to IntraX8Context
- */
av_cold void ff_intrax8_common_end(IntraX8Context *w)
{
av_freep(&w->prediction_table);
}
-/**
- * Decode single IntraX8 frame.
- * The parent codec must fill s->loopfilter and s->gb (bitstream).
- * The parent codec must call ff_mpv_frame_start() before calling this function.
- * The parent codec must call ff_mpv_frame_end() after calling this function.
- * This function does not use ff_mpv_decode_mb().
- * lowres decoding is theoretically impossible.
- * @param w pointer to IntraX8Context
- * @param dquant doubled quantizer, it would be odd in case of VC-1 halfpq==1.
- * @param quant_offset offset away from zero
- */
int ff_intrax8_decode_picture(IntraX8Context *const w, int dquant,
int quant_offset)
{
diff --git a/libavcodec/intrax8.h b/libavcodec/intrax8.h
index 8792996..4d99c8d 100644
--- a/libavcodec/intrax8.h
+++ b/libavcodec/intrax8.h
@@ -59,8 +59,31 @@ typedef struct IntraX8Context {
int est_run;
} IntraX8Context;
+/**
+ * Initialize IntraX8 frame decoder.
+ * Requires valid MpegEncContext with valid s->mb_width before calling.
+ * @param w pointer to IntraX8Context
+ * @param s pointer to MpegEncContext of the parent codec
+ */
void ff_intrax8_common_init(IntraX8Context *w, MpegEncContext *const s);
+
+/**
+ * Destroy IntraX8 frame structure.
+ * @param w pointer to IntraX8Context
+ */
void ff_intrax8_common_end(IntraX8Context *w);
+
+/**
+ * Decode single IntraX8 frame.
+ * The parent codec must fill s->loopfilter and s->gb (bitstream).
+ * The parent codec must call ff_mpv_frame_start() before calling this function.
+ * The parent codec must call ff_mpv_frame_end() after calling this function.
+ * This function does not use ff_mpv_decode_mb().
+ * lowres decoding is theoretically impossible.
+ * @param w pointer to IntraX8Context
+ * @param dquant doubled quantizer, it would be odd in case of VC-1 halfpq==1.
+ * @param quant_offset offset away from zero
+ */
int ff_intrax8_decode_picture(IntraX8Context *w, int quant, int halfpq);
#endif /* AVCODEC_INTRAX8_H */
======================================================================
diff --cc libavcodec/intrax8.h
index 8792996,3339bc6..4d99c8d
--- a/libavcodec/intrax8.h
+++ b/libavcodec/intrax8.h
@@@ -59,8 -56,30 +59,31 @@@ typedef struct IntraX8Context
int est_run;
} IntraX8Context;
+ /**
+ * Initialize IntraX8 frame decoder.
+ * Requires valid MpegEncContext with valid s->mb_width before calling.
+ * @param w pointer to IntraX8Context
+ * @param s pointer to MpegEncContext of the parent codec
+ */
void ff_intrax8_common_init(IntraX8Context *w, MpegEncContext *const s);
+
+ /**
+ * Destroy IntraX8 frame structure.
+ * @param w pointer to IntraX8Context
+ */
void ff_intrax8_common_end(IntraX8Context *w);
+
+ /**
+ * Decode single IntraX8 frame.
+ * The parent codec must fill s->loopfilter and s->gb (bitstream).
+ * The parent codec must call ff_mpv_frame_start() before calling this function.
+ * The parent codec must call ff_mpv_frame_end() after calling this function.
+ * This function does not use ff_mpv_decode_mb().
++ * lowres decoding is theoretically impossible.
+ * @param w pointer to IntraX8Context
+ * @param dquant doubled quantizer, it would be odd in case of VC-1 halfpq==1.
+ * @param quant_offset offset away from zero
+ */
int ff_intrax8_decode_picture(IntraX8Context *w, int quant, int halfpq);
#endif /* AVCODEC_INTRAX8_H */
More information about the ffmpeg-cvslog
mailing list