summaryrefslogtreecommitdiff
path: root/vp9/common/vp9_idctllm.c
diff options
context:
space:
mode:
authorYaowu Xu <yaowu@google.com>2013-02-11 21:14:46 -0800
committerYaowu Xu <yaowu@google.com>2013-02-13 09:24:39 -0800
commit17db5d00be2f005f11428edf0fd23265d04d100f (patch)
treef6f0890b6c3351dcfcb030fdd86491dfc16a9489 /vp9/common/vp9_idctllm.c
parent16f25f9dc83a37f2a16c7652445b6a6ecf8034af (diff)
downloadlibvpx-17db5d00be2f005f11428edf0fd23265d04d100f.tar
libvpx-17db5d00be2f005f11428edf0fd23265d04d100f.tar.gz
libvpx-17db5d00be2f005f11428edf0fd23265d04d100f.tar.bz2
libvpx-17db5d00be2f005f11428edf0fd23265d04d100f.zip
enable bitstream lossless support
1. Added a bit in frame header to to indicate if a frame is encoded in lossless mode, so decoder does not make the decision based on Q0 2. Minor changes to make sure that lossy coding works same as when the lossless experiment is not enabled. 3. Renamed function pointers for transforms to be consistent, using prefix fwd_txm and inv_txm for forward and inverse respectively To encode in lossless mode, using "--lossless=1 --min-q=0 --max-q=0" with vpxenc. Change-Id: Ifae53b26d2ffbe378d707e29d96817b8a5e6c068
Diffstat (limited to 'vp9/common/vp9_idctllm.c')
-rw-r--r--vp9/common/vp9_idctllm.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/vp9/common/vp9_idctllm.c b/vp9/common/vp9_idctllm.c
index b27b34cf2..5afce6ee4 100644
--- a/vp9/common/vp9_idctllm.c
+++ b/vp9/common/vp9_idctllm.c
@@ -476,12 +476,13 @@ void vp9_short_inv_walsh4x4_1_x8_c(int16_t *in, int16_t *out, int pitch) {
}
}
-void vp9_dc_only_inv_walsh_add_c(short input_dc, uint8_t *pred_ptr,
+void vp9_dc_only_inv_walsh_add_c(int input_dc, uint8_t *pred_ptr,
uint8_t *dst_ptr,
int pitch, int stride) {
int r, c;
- short tmp[16];
- vp9_short_inv_walsh4x4_1_x8_c(&input_dc, tmp, 4 << 1);
+ int16_t dc = input_dc;
+ int16_t tmp[16];
+ vp9_short_inv_walsh4x4_1_x8_c(&dc, tmp, 4 << 1);
for (r = 0; r < 4; r++) {
for (c = 0; c < 4; c++) {