| 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 555 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 566 va_list args) { | 566 va_list args) { |
| 567 | 567 |
| 568 vpx_ref_frame_t *data = va_arg(args, vpx_ref_frame_t *); | 568 vpx_ref_frame_t *data = va_arg(args, vpx_ref_frame_t *); |
| 569 | 569 |
| 570 if (data) { | 570 if (data) { |
| 571 vpx_ref_frame_t *frame = (vpx_ref_frame_t *)data; | 571 vpx_ref_frame_t *frame = (vpx_ref_frame_t *)data; |
| 572 YV12_BUFFER_CONFIG sd; | 572 YV12_BUFFER_CONFIG sd; |
| 573 | 573 |
| 574 image2yuvconfig(&frame->img, &sd); | 574 image2yuvconfig(&frame->img, &sd); |
| 575 | 575 |
| 576 return vp9_set_reference_dec(ctx->pbi, frame->frame_type, &sd); | 576 return vp9_set_reference_dec(ctx->pbi, (VP9_REFFRAME)frame->frame_type, &sd)
; |
| 577 } else | 577 } else |
| 578 return VPX_CODEC_INVALID_PARAM; | 578 return VPX_CODEC_INVALID_PARAM; |
| 579 | 579 |
| 580 } | 580 } |
| 581 | 581 |
| 582 static vpx_codec_err_t vp9_get_reference(vpx_codec_alg_priv_t *ctx, | 582 static vpx_codec_err_t vp9_get_reference(vpx_codec_alg_priv_t *ctx, |
| 583 int ctr_id, | 583 int ctr_id, |
| 584 va_list args) { | 584 va_list args) { |
| 585 | 585 |
| 586 vpx_ref_frame_t *data = va_arg(args, vpx_ref_frame_t *); | 586 vpx_ref_frame_t *data = va_arg(args, vpx_ref_frame_t *); |
| 587 | 587 |
| 588 if (data) { | 588 if (data) { |
| 589 vpx_ref_frame_t *frame = (vpx_ref_frame_t *)data; | 589 vpx_ref_frame_t *frame = (vpx_ref_frame_t *)data; |
| 590 YV12_BUFFER_CONFIG sd; | 590 YV12_BUFFER_CONFIG sd; |
| 591 | 591 |
| 592 image2yuvconfig(&frame->img, &sd); | 592 image2yuvconfig(&frame->img, &sd); |
| 593 | 593 |
| 594 return vp9_get_reference_dec(ctx->pbi, frame->frame_type, &sd); | 594 return vp9_get_reference_dec(ctx->pbi, (VP9_REFFRAME)frame->frame_type, &sd)
; |
| 595 } else | 595 } else |
| 596 return VPX_CODEC_INVALID_PARAM; | 596 return VPX_CODEC_INVALID_PARAM; |
| 597 | 597 |
| 598 } | 598 } |
| 599 | 599 |
| 600 static vpx_codec_err_t vp8_set_postproc(vpx_codec_alg_priv_t *ctx, | 600 static vpx_codec_err_t vp8_set_postproc(vpx_codec_alg_priv_t *ctx, |
| 601 int ctr_id, | 601 int ctr_id, |
| 602 va_list args) { | 602 va_list args) { |
| 603 #if CONFIG_POSTPROC | 603 #if CONFIG_POSTPROC |
| 604 vp8_postproc_cfg_t *data = va_arg(args, vp8_postproc_cfg_t *); | 604 vp8_postproc_cfg_t *data = va_arg(args, vp8_postproc_cfg_t *); |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 705 { | 705 { |
| 706 /* encoder functions */ | 706 /* encoder functions */ |
| 707 NOT_IMPLEMENTED, | 707 NOT_IMPLEMENTED, |
| 708 NOT_IMPLEMENTED, | 708 NOT_IMPLEMENTED, |
| 709 NOT_IMPLEMENTED, | 709 NOT_IMPLEMENTED, |
| 710 NOT_IMPLEMENTED, | 710 NOT_IMPLEMENTED, |
| 711 NOT_IMPLEMENTED, | 711 NOT_IMPLEMENTED, |
| 712 NOT_IMPLEMENTED | 712 NOT_IMPLEMENTED |
| 713 } | 713 } |
| 714 }; | 714 }; |
| OLD | NEW |