Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(590)

Side by Side Diff: source/libvpx/vp9/vp9_dx_iface.c

Issue 11974002: libvpx: Pull from upstream (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/libvpx/
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « source/libvpx/vp9/vp9_common.mk ('k') | source/libvpx/vp9/vp9cx.mk » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
11 11
12 #include <stdlib.h> 12 #include <stdlib.h>
13 #include <string.h> 13 #include <string.h>
14 #include "vpx/vpx_decoder.h" 14 #include "vpx/vpx_decoder.h"
15 #include "vpx/vp8dx.h" 15 #include "vpx/vp8dx.h"
16 #include "vpx/internal/vpx_codec_internal.h" 16 #include "vpx/internal/vpx_codec_internal.h"
17 #include "vpx_version.h" 17 #include "vpx_version.h"
18 #include "common/vp9_onyxd.h" 18 #include "decoder/vp9_onyxd.h"
19 #include "decoder/vp9_onyxd_int.h" 19 #include "decoder/vp9_onyxd_int.h"
20 20
21 #define VP8_CAP_POSTPROC (CONFIG_POSTPROC ? VPX_CODEC_CAP_POSTPROC : 0) 21 #define VP8_CAP_POSTPROC (CONFIG_POSTPROC ? VPX_CODEC_CAP_POSTPROC : 0)
22 typedef vpx_codec_stream_info_t vp8_stream_info_t; 22 typedef vpx_codec_stream_info_t vp8_stream_info_t;
23 23
24 /* Structures for handling memory allocations */ 24 /* Structures for handling memory allocations */
25 typedef enum { 25 typedef enum {
26 VP8_SEG_ALG_PRIV = 256, 26 VP8_SEG_ALG_PRIV = 256,
27 VP8_SEG_MAX 27 VP8_SEG_MAX
28 } mem_seg_id_t; 28 } mem_seg_id_t;
(...skipping 537 matching lines...) Expand 10 before | Expand all | Expand 10 after
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, (VP9_REFFRAME)frame->frame_type, &sd) ; 576 return vp9_set_reference_dec(ctx->pbi,
577 (VP9_REFFRAME)frame->frame_type, &sd);
577 } else 578 } else
578 return VPX_CODEC_INVALID_PARAM; 579 return VPX_CODEC_INVALID_PARAM;
579 580
580 } 581 }
581 582
582 static vpx_codec_err_t vp9_get_reference(vpx_codec_alg_priv_t *ctx, 583 static vpx_codec_err_t vp9_get_reference(vpx_codec_alg_priv_t *ctx,
583 int ctr_id, 584 int ctr_id,
584 va_list args) { 585 va_list args) {
585 586
586 vpx_ref_frame_t *data = va_arg(args, vpx_ref_frame_t *); 587 vpx_ref_frame_t *data = va_arg(args, vpx_ref_frame_t *);
587 588
588 if (data) { 589 if (data) {
589 vpx_ref_frame_t *frame = (vpx_ref_frame_t *)data; 590 vpx_ref_frame_t *frame = (vpx_ref_frame_t *)data;
590 YV12_BUFFER_CONFIG sd; 591 YV12_BUFFER_CONFIG sd;
591 592
592 image2yuvconfig(&frame->img, &sd); 593 image2yuvconfig(&frame->img, &sd);
593 594
594 return vp9_get_reference_dec(ctx->pbi, (VP9_REFFRAME)frame->frame_type, &sd) ; 595 return vp9_get_reference_dec(ctx->pbi,
596 (VP9_REFFRAME)frame->frame_type, &sd);
595 } else 597 } else
596 return VPX_CODEC_INVALID_PARAM; 598 return VPX_CODEC_INVALID_PARAM;
597 599
598 } 600 }
599 601
600 static vpx_codec_err_t vp8_set_postproc(vpx_codec_alg_priv_t *ctx, 602 static vpx_codec_err_t vp8_set_postproc(vpx_codec_alg_priv_t *ctx,
601 int ctr_id, 603 int ctr_id,
602 va_list args) { 604 va_list args) {
603 #if CONFIG_POSTPROC 605 #if CONFIG_POSTPROC
604 vp8_postproc_cfg_t *data = va_arg(args, vp8_postproc_cfg_t *); 606 vp8_postproc_cfg_t *data = va_arg(args, vp8_postproc_cfg_t *);
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
705 { 707 {
706 /* encoder functions */ 708 /* encoder functions */
707 NOT_IMPLEMENTED, 709 NOT_IMPLEMENTED,
708 NOT_IMPLEMENTED, 710 NOT_IMPLEMENTED,
709 NOT_IMPLEMENTED, 711 NOT_IMPLEMENTED,
710 NOT_IMPLEMENTED, 712 NOT_IMPLEMENTED,
711 NOT_IMPLEMENTED, 713 NOT_IMPLEMENTED,
712 NOT_IMPLEMENTED 714 NOT_IMPLEMENTED
713 } 715 }
714 }; 716 };
OLDNEW
« no previous file with comments | « source/libvpx/vp9/vp9_common.mk ('k') | source/libvpx/vp9/vp9cx.mk » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698