| 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 |
| 11 | 11 |
| 12 #include "vpx_rtcd.h" | 12 #include "vp8_rtcd.h" |
| 13 #include "vpx/vpx_codec.h" | 13 #include "vpx/vpx_codec.h" |
| 14 #include "vpx/internal/vpx_codec_internal.h" | 14 #include "vpx/internal/vpx_codec_internal.h" |
| 15 #include "vpx_version.h" | 15 #include "vpx_version.h" |
| 16 #include "vp8/encoder/onyx_int.h" | 16 #include "vp8/encoder/onyx_int.h" |
| 17 #include "vpx/vp8cx.h" | 17 #include "vpx/vp8cx.h" |
| 18 #include "vp8/encoder/firstpass.h" | 18 #include "vp8/encoder/firstpass.h" |
| 19 #include "vp8/common/onyx.h" | 19 #include "vp8/common/onyx.h" |
| 20 #include <stdlib.h> | 20 #include <stdlib.h> |
| 21 #include <string.h> | 21 #include <string.h> |
| 22 | 22 |
| (...skipping 552 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 575 static vpx_codec_err_t vp8e_init(vpx_codec_ctx_t *ctx, | 575 static vpx_codec_err_t vp8e_init(vpx_codec_ctx_t *ctx, |
| 576 vpx_codec_priv_enc_mr_cfg_t *mr_cfg) | 576 vpx_codec_priv_enc_mr_cfg_t *mr_cfg) |
| 577 { | 577 { |
| 578 vpx_codec_err_t res = VPX_CODEC_OK; | 578 vpx_codec_err_t res = VPX_CODEC_OK; |
| 579 struct vpx_codec_alg_priv *priv; | 579 struct vpx_codec_alg_priv *priv; |
| 580 vpx_codec_enc_cfg_t *cfg; | 580 vpx_codec_enc_cfg_t *cfg; |
| 581 unsigned int i; | 581 unsigned int i; |
| 582 | 582 |
| 583 struct VP8_COMP *optr; | 583 struct VP8_COMP *optr; |
| 584 | 584 |
| 585 vpx_rtcd(); | 585 vp8_rtcd(); |
| 586 | 586 |
| 587 if (!ctx->priv) | 587 if (!ctx->priv) |
| 588 { | 588 { |
| 589 priv = calloc(1, sizeof(struct vpx_codec_alg_priv)); | 589 priv = calloc(1, sizeof(struct vpx_codec_alg_priv)); |
| 590 | 590 |
| 591 if (!priv) | 591 if (!priv) |
| 592 { | 592 { |
| 593 return VPX_CODEC_MEM_ERROR; | 593 return VPX_CODEC_MEM_ERROR; |
| 594 } | 594 } |
| 595 | 595 |
| (...skipping 712 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1308 { | 1308 { |
| 1309 vp8e_usage_cfg_map, /* vpx_codec_enc_cfg_map_t peek_si; */ | 1309 vp8e_usage_cfg_map, /* vpx_codec_enc_cfg_map_t peek_si; */ |
| 1310 vp8e_encode, /* vpx_codec_encode_fn_t encode; */ | 1310 vp8e_encode, /* vpx_codec_encode_fn_t encode; */ |
| 1311 vp8e_get_cxdata, /* vpx_codec_get_cx_data_fn_t frame_get; */ | 1311 vp8e_get_cxdata, /* vpx_codec_get_cx_data_fn_t frame_get; */ |
| 1312 vp8e_set_config, | 1312 vp8e_set_config, |
| 1313 NOT_IMPLEMENTED, | 1313 NOT_IMPLEMENTED, |
| 1314 vp8e_get_preview, | 1314 vp8e_get_preview, |
| 1315 vp8e_mr_alloc_mem, | 1315 vp8e_mr_alloc_mem, |
| 1316 } /* encoder functions */ | 1316 } /* encoder functions */ |
| 1317 }; | 1317 }; |
| OLD | NEW |