diff options
author | arpi_esp <arpi_esp@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-03-05 23:02:30 +0000 |
---|---|---|
committer | arpi_esp <arpi_esp@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-03-05 23:02:30 +0000 |
commit | f0aac7185fbe0a46d1635d56341818a33fb8c033 (patch) | |
tree | a64e9817db0bd7eaa5ead815d9b40d543f3b371c /libmpeg2/slice.c | |
parent | d37f8c9c8f15ad25017cb91fc2a5fd59c7cf81e8 (diff) | |
download | mpv-f0aac7185fbe0a46d1635d56341818a33fb8c033.tar.bz2 mpv-f0aac7185fbe0a46d1635d56341818a33fb8c033.tar.xz |
added mpeg 1/2 postprocessing
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@42 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpeg2/slice.c')
-rw-r--r-- | libmpeg2/slice.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/libmpeg2/slice.c b/libmpeg2/slice.c index 5c235d86ca..04728cda36 100644 --- a/libmpeg2/slice.c +++ b/libmpeg2/slice.c @@ -1488,7 +1488,7 @@ do { \ dest[1] += 4 * stride; \ dest[2] += 4 * stride; \ } while (0); \ - offset = 0; \ + offset = 0; ++code; \ } \ } while (0) @@ -1739,6 +1739,9 @@ int slice_process (picture_t * picture, uint8_t code, uint8_t * buffer) picture->dc_dct_pred[2] = 1 << (picture->intra_dc_precision+7); } +#ifdef MPEG12_POSTPROC + quant_store[code][(offset>>4)+1] = picture->quantizer_scale; +#endif offset += 16; CHECK_DISPLAY; @@ -1769,6 +1772,10 @@ int slice_process (picture_t * picture, uint8_t code, uint8_t * buffer) else MOTION (motion_fi_zero, MACROBLOCK_MOTION_FORWARD); +#ifdef MPEG12_POSTPROC + quant_store[code][(offset>>4)+1] = picture->quantizer_scale; +#endif + offset += 16; CHECK_DISPLAY; } while (--mba_inc); @@ -1781,6 +1788,10 @@ int slice_process (picture_t * picture, uint8_t code, uint8_t * buffer) else MOTION (motion_fi_reuse, macroblock_modes); +#ifdef MPEG12_POSTPROC + quant_store[code][(offset>>4)+1] = picture->quantizer_scale; +#endif + offset += 16; CHECK_DISPLAY; } while (--mba_inc); |