| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2010 The WebM project authors. All Rights Reserved. | 2 * Copyright (c) 2010 The WebM project authors. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| (...skipping 682 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 693 MODE_INFO *mi = cm->mi; | 693 MODE_INFO *mi = cm->mi; |
| 694 | 694 |
| 695 y_ptr = post->y_buffer + 4 * post->y_stride + 4; | 695 y_ptr = post->y_buffer + 4 * post->y_stride + 4; |
| 696 | 696 |
| 697 /* vp9_filter each macro block */ | 697 /* vp9_filter each macro block */ |
| 698 for (i = 0; i < mb_rows; i++) { | 698 for (i = 0; i < mb_rows; i++) { |
| 699 for (j = 0; j < mb_cols; j++) { | 699 for (j = 0; j < mb_cols; j++) { |
| 700 char zz[4]; | 700 char zz[4]; |
| 701 int dc_diff = !(mi[mb_index].mbmi.mode != I4X4_PRED && | 701 int dc_diff = !(mi[mb_index].mbmi.mode != I4X4_PRED && |
| 702 mi[mb_index].mbmi.mode != SPLITMV && | 702 mi[mb_index].mbmi.mode != SPLITMV && |
| 703 mi[mb_index].mbmi.skip_coeff); | 703 mi[mb_index].mbmi.skip); |
| 704 | 704 |
| 705 if (cm->frame_type == KEY_FRAME) | 705 if (cm->frame_type == KEY_FRAME) |
| 706 snprintf(zz, sizeof(zz) - 1, "a"); | 706 snprintf(zz, sizeof(zz) - 1, "a"); |
| 707 else | 707 else |
| 708 snprintf(zz, sizeof(zz) - 1, "%c", dc_diff + '0'); | 708 snprintf(zz, sizeof(zz) - 1, "%c", dc_diff + '0'); |
| 709 | 709 |
| 710 vp9_blit_text(zz, y_ptr, post->y_stride); | 710 vp9_blit_text(zz, y_ptr, post->y_stride); |
| 711 mb_index++; | 711 mb_index++; |
| 712 y_ptr += 16; | 712 y_ptr += 16; |
| 713 } | 713 } |
| (...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 968 *dest = *ppbuf; | 968 *dest = *ppbuf; |
| 969 | 969 |
| 970 /* handle problem with extending borders */ | 970 /* handle problem with extending borders */ |
| 971 dest->y_width = cm->width; | 971 dest->y_width = cm->width; |
| 972 dest->y_height = cm->height; | 972 dest->y_height = cm->height; |
| 973 dest->uv_width = dest->y_width >> cm->subsampling_x; | 973 dest->uv_width = dest->y_width >> cm->subsampling_x; |
| 974 dest->uv_height = dest->y_height >> cm->subsampling_y; | 974 dest->uv_height = dest->y_height >> cm->subsampling_y; |
| 975 | 975 |
| 976 return 0; | 976 return 0; |
| 977 } | 977 } |
| OLD | NEW |