| 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 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 252 cm->frame_to_show = &cm->yv12_fb[cm->lst_fb_idx]; | 252 cm->frame_to_show = &cm->yv12_fb[cm->lst_fb_idx]; |
| 253 } | 253 } |
| 254 else | 254 else |
| 255 cm->frame_to_show = &cm->yv12_fb[cm->new_fb_idx]; | 255 cm->frame_to_show = &cm->yv12_fb[cm->new_fb_idx]; |
| 256 | 256 |
| 257 cm->fb_idx_ref_cnt[cm->new_fb_idx]--; | 257 cm->fb_idx_ref_cnt[cm->new_fb_idx]--; |
| 258 | 258 |
| 259 return err; | 259 return err; |
| 260 } | 260 } |
| 261 | 261 |
| 262 int check_fragments_for_errors(VP8D_COMP *pbi) | 262 static int check_fragments_for_errors(VP8D_COMP *pbi) |
| 263 { | 263 { |
| 264 if (!pbi->ec_active && | 264 if (!pbi->ec_active && |
| 265 pbi->fragments.count <= 1 && pbi->fragments.sizes[0] == 0) | 265 pbi->fragments.count <= 1 && pbi->fragments.sizes[0] == 0) |
| 266 { | 266 { |
| 267 VP8_COMMON *cm = &pbi->common; | 267 VP8_COMMON *cm = &pbi->common; |
| 268 | 268 |
| 269 /* If error concealment is disabled we won't signal missing frames | 269 /* If error concealment is disabled we won't signal missing frames |
| 270 * to the decoder. | 270 * to the decoder. |
| 271 */ | 271 */ |
| 272 if (cm->fb_idx_ref_cnt[cm->lst_fb_idx] > 1) | 272 if (cm->fb_idx_ref_cnt[cm->lst_fb_idx] > 1) |
| (...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 496 remove_decompressor(pbi); | 496 remove_decompressor(pbi); |
| 497 } | 497 } |
| 498 else | 498 else |
| 499 { | 499 { |
| 500 /* TODO : remove frame threads and decoder instances for each | 500 /* TODO : remove frame threads and decoder instances for each |
| 501 * thread here */ | 501 * thread here */ |
| 502 } | 502 } |
| 503 | 503 |
| 504 return VPX_CODEC_OK; | 504 return VPX_CODEC_OK; |
| 505 } | 505 } |
| OLD | NEW |