OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2014 The WebM project authors. All Rights Reserved. | 2 * Copyright (c) 2014 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 #ifndef VPX_VPX_FRAME_BUFFER_H_ | 11 #ifndef VPX_VPX_FRAME_BUFFER_H_ |
12 #define VPX_VPX_FRAME_BUFFER_H_ | 12 #define VPX_VPX_FRAME_BUFFER_H_ |
13 | 13 |
14 /*!\file | 14 /*!\file |
15 * \brief Describes the decoder external frame buffer interface. | 15 * \brief Describes the decoder external frame buffer interface. |
16 */ | 16 */ |
17 | 17 |
18 #ifdef __cplusplus | 18 #ifdef __cplusplus |
19 extern "C" { | 19 extern "C" { |
20 #endif | 20 #endif |
21 | 21 |
22 #include "./vpx_integer.h" | 22 #include "./vpx_integer.h" |
23 | 23 |
24 /*!\brief The maximum number of work buffers used by libvpx. | 24 /*!\brief The maximum number of work buffers used by libvpx. |
| 25 * Support maximum 4 threads to decode video in parallel. |
| 26 * Each thread will use one work buffer. |
| 27 * TODO(hkuang): Add support to set number of worker threads dynamically. |
25 */ | 28 */ |
26 #define VPX_MAXIMUM_WORK_BUFFERS 1 | 29 #define VPX_MAXIMUM_WORK_BUFFERS 8 |
27 | 30 |
28 /*!\brief The maximum number of reference buffers that a VP9 encoder may use. | 31 /*!\brief The maximum number of reference buffers that a VP9 encoder may use. |
29 */ | 32 */ |
30 #define VP9_MAXIMUM_REF_BUFFERS 8 | 33 #define VP9_MAXIMUM_REF_BUFFERS 8 |
31 | 34 |
32 /*!\brief External frame buffer | 35 /*!\brief External frame buffer |
33 * | 36 * |
34 * This structure holds allocated frame buffers used by the decoder. | 37 * This structure holds allocated frame buffers used by the decoder. |
35 */ | 38 */ |
36 typedef struct vpx_codec_frame_buffer { | 39 typedef struct vpx_codec_frame_buffer { |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 * \param[in] fb Pointer to vpx_codec_frame_buffer_t | 74 * \param[in] fb Pointer to vpx_codec_frame_buffer_t |
72 */ | 75 */ |
73 typedef int (*vpx_release_frame_buffer_cb_fn_t)( | 76 typedef int (*vpx_release_frame_buffer_cb_fn_t)( |
74 void *priv, vpx_codec_frame_buffer_t *fb); | 77 void *priv, vpx_codec_frame_buffer_t *fb); |
75 | 78 |
76 #ifdef __cplusplus | 79 #ifdef __cplusplus |
77 } // extern "C" | 80 } // extern "C" |
78 #endif | 81 #endif |
79 | 82 |
80 #endif // VPX_VPX_FRAME_BUFFER_H_ | 83 #endif // VPX_VPX_FRAME_BUFFER_H_ |
OLD | NEW |