diff options
author | Dmitry Kovalev <dkovalev@google.com> | 2013-07-03 11:15:58 -0700 |
---|---|---|
committer | Dmitry Kovalev <dkovalev@google.com> | 2013-07-03 11:15:58 -0700 |
commit | 2ad62c93129e363a6c7a916f656d807dfefce8e6 (patch) | |
tree | a16a1d940047ffb3c17bd4b45159d7df4af567b0 /vp9/encoder/vp9_bitstream.c | |
parent | 60198a595d53b34139c3e7e6c9d8f7d4ab69db7c (diff) | |
download | libvpx-2ad62c93129e363a6c7a916f656d807dfefce8e6.tar libvpx-2ad62c93129e363a6c7a916f656d807dfefce8e6.tar.gz libvpx-2ad62c93129e363a6c7a916f656d807dfefce8e6.tar.bz2 libvpx-2ad62c93129e363a6c7a916f656d807dfefce8e6.zip |
Calling set_partition_seg_context() instead of code duplication.
Change-Id: I65be6acc54c99688fd1f0c946cec3511514b8555
Diffstat (limited to 'vp9/encoder/vp9_bitstream.c')
-rw-r--r-- | vp9/encoder/vp9_bitstream.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/vp9/encoder/vp9_bitstream.c b/vp9/encoder/vp9_bitstream.c index a8fadd1cb..a80adc1c4 100644 --- a/vp9/encoder/vp9_bitstream.c +++ b/vp9/encoder/vp9_bitstream.c @@ -656,9 +656,8 @@ static void write_modes_sb(VP9_COMP *cpi, MODE_INFO *m, vp9_writer *bc, if (bsize >= BLOCK_SIZE_SB8X8) { int pl; - int idx = check_bsize_coverage(cm, xd, mi_row, mi_col, bsize); - xd->left_seg_context = cm->left_seg_context + (mi_row & MI_MASK); - xd->above_seg_context = cm->above_seg_context + mi_col; + const int idx = check_bsize_coverage(cm, xd, mi_row, mi_col, bsize); + set_partition_seg_context(cm, xd, mi_row, mi_col); pl = partition_plane_context(xd, bsize); // encode the partition information if (idx == 0) |