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 580 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
591 #endif | 591 #endif |
592 } | 592 } |
593 | 593 |
594 pbi->common.error.setjmp = 0; | 594 pbi->common.error.setjmp = 0; |
595 | 595 |
596 /* required to get past the first get_free_fb() call */ | 596 /* required to get past the first get_free_fb() call */ |
597 ctx->pbi->common.fb_idx_ref_cnt[0] = 0; | 597 ctx->pbi->common.fb_idx_ref_cnt[0] = 0; |
598 } | 598 } |
599 | 599 |
600 /* update the pbi fragment data */ | 600 /* update the pbi fragment data */ |
601 ctx->pbi->num_fragments = ctx->fragments.count; | 601 ctx->pbi->fragments = ctx->fragments; |
602 ctx->pbi->input_fragments = ctx->fragments.enabled; | |
603 vpx_memcpy(ctx->pbi->fragments, ctx->fragments.ptrs, | |
604 sizeof(ctx->fragments.ptrs)); | |
605 vpx_memcpy(ctx->pbi->fragment_sizes, ctx->fragments.sizes, | |
606 sizeof(ctx->fragments.sizes)); | |
607 | |
608 | 602 |
609 ctx->user_priv = user_priv; | 603 ctx->user_priv = user_priv; |
610 if (vp8dx_receive_compressed_data(ctx->pbi, data_sz, data, deadline)) | 604 if (vp8dx_receive_compressed_data(ctx->pbi, data_sz, data, deadline)) |
611 { | 605 { |
612 VP8D_COMP *pbi = (VP8D_COMP *)ctx->pbi; | 606 VP8D_COMP *pbi = (VP8D_COMP *)ctx->pbi; |
613 res = update_error_state(ctx, &pbi->common.error); | 607 res = update_error_state(ctx, &pbi->common.error); |
614 } | 608 } |
615 | 609 |
616 /* get ready for the next series of fragments */ | 610 /* get ready for the next series of fragments */ |
617 ctx->fragments.count = 0; | 611 ctx->fragments.count = 0; |
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
958 }, | 952 }, |
959 { /* encoder functions */ | 953 { /* encoder functions */ |
960 NOT_IMPLEMENTED, | 954 NOT_IMPLEMENTED, |
961 NOT_IMPLEMENTED, | 955 NOT_IMPLEMENTED, |
962 NOT_IMPLEMENTED, | 956 NOT_IMPLEMENTED, |
963 NOT_IMPLEMENTED, | 957 NOT_IMPLEMENTED, |
964 NOT_IMPLEMENTED, | 958 NOT_IMPLEMENTED, |
965 NOT_IMPLEMENTED | 959 NOT_IMPLEMENTED |
966 } | 960 } |
967 }; | 961 }; |
OLD | NEW |