| 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 18 matching lines...) Expand all Loading... |
| 29 * extern vpx_codec_iface_t my_codec; | 29 * extern vpx_codec_iface_t my_codec; |
| 30 * { | 30 * { |
| 31 * vpx_codec_ctx_t algo; | 31 * vpx_codec_ctx_t algo; |
| 32 * res = vpx_codec_init(&algo, &my_codec); | 32 * res = vpx_codec_init(&algo, &my_codec); |
| 33 * } | 33 * } |
| 34 * </pre> | 34 * </pre> |
| 35 * | 35 * |
| 36 * Once initialized, the instance is manged using other functions from | 36 * Once initialized, the instance is manged using other functions from |
| 37 * the vpx_codec_* family. | 37 * the vpx_codec_* family. |
| 38 */ | 38 */ |
| 39 #ifndef VPX_CODEC_H |
| 40 #define VPX_CODEC_H |
| 41 |
| 39 #ifdef __cplusplus | 42 #ifdef __cplusplus |
| 40 extern "C" { | 43 extern "C" { |
| 41 #endif | 44 #endif |
| 42 | 45 |
| 43 #ifndef VPX_CODEC_H | |
| 44 #define VPX_CODEC_H | |
| 45 #include "vpx_integer.h" | 46 #include "vpx_integer.h" |
| 46 #include "vpx_image.h" | 47 #include "vpx_image.h" |
| 47 | 48 |
| 48 /*!\brief Decorator indicating a function is deprecated */ | 49 /*!\brief Decorator indicating a function is deprecated */ |
| 49 #ifndef DEPRECATED | 50 #ifndef DEPRECATED |
| 50 #if defined(__GNUC__) && __GNUC__ | 51 #if defined(__GNUC__) && __GNUC__ |
| 51 #define DEPRECATED __attribute__ ((deprecated)) | 52 #define DEPRECATED __attribute__ ((deprecated)) |
| 52 #elif defined(_MSC_VER) | 53 #elif defined(_MSC_VER) |
| 53 #define DEPRECATED | 54 #define DEPRECATED |
| 54 #else | 55 #else |
| (...skipping 488 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 543 * \retval #VPX_CODEC_MEM_ERROR | 544 * \retval #VPX_CODEC_MEM_ERROR |
| 544 * Segment base address was not set, or segment was already stored. | 545 * Segment base address was not set, or segment was already stored. |
| 545 | 546 |
| 546 */ | 547 */ |
| 547 vpx_codec_err_t vpx_codec_set_mem_map(vpx_codec_ctx_t *ctx, | 548 vpx_codec_err_t vpx_codec_set_mem_map(vpx_codec_ctx_t *ctx, |
| 548 vpx_codec_mmap_t *mmaps, | 549 vpx_codec_mmap_t *mmaps, |
| 549 unsigned int num_maps); | 550 unsigned int num_maps); |
| 550 | 551 |
| 551 /*!@} - end defgroup cap_xma*/ | 552 /*!@} - end defgroup cap_xma*/ |
| 552 /*!@} - end defgroup codec*/ | 553 /*!@} - end defgroup codec*/ |
| 553 | |
| 554 | |
| 555 #endif | |
| 556 #ifdef __cplusplus | 554 #ifdef __cplusplus |
| 557 } | 555 } |
| 558 #endif | 556 #endif |
| 557 #endif |
| 558 |
| OLD | NEW |