diff options
author | Vittorio Giovara <vittorio.giovara@gmail.com> | 2016-02-20 01:34:18 -0500 |
---|---|---|
committer | Vittorio Giovara <vittorio.giovara@gmail.com> | 2016-03-22 17:33:28 -0400 |
commit | ad8aa8e6c648b61f01b9f106f27b9d4f3d094345 (patch) | |
tree | 003cc84d1fdf9ca5a469081d30a12f923ff91eb1 /libavcodec/intrax8.h | |
parent | 2ade1cdafb96bf47e77f7ed74731d78a30aae950 (diff) | |
download | ffmpeg-ad8aa8e6c648b61f01b9f106f27b9d4f3d094345.tar.gz |
intrax8: Move documentation from implementation to header file
Diffstat (limited to 'libavcodec/intrax8.h')
-rw-r--r-- | libavcodec/intrax8.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/libavcodec/intrax8.h b/libavcodec/intrax8.h index 83e984bbef..3339bc6cfd 100644 --- a/libavcodec/intrax8.h +++ b/libavcodec/intrax8.h @@ -56,8 +56,30 @@ 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(). + * @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 */ |