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 #ifndef VPX_VPX_ENCODER_H_ | 10 #ifndef VPX_VPX_ENCODER_H_ |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 /* This packet size is fixed to allow codecs to extend this | 213 /* This packet size is fixed to allow codecs to extend this |
214 * interface without having to manage storage for raw packets, | 214 * interface without having to manage storage for raw packets, |
215 * i.e., if it's smaller than 128 bytes, you can store in the | 215 * i.e., if it's smaller than 128 bytes, you can store in the |
216 * packet list directly. | 216 * packet list directly. |
217 */ | 217 */ |
218 char pad[128 - sizeof(enum vpx_codec_cx_pkt_kind)]; /**< fixed sz */ | 218 char pad[128 - sizeof(enum vpx_codec_cx_pkt_kind)]; /**< fixed sz */ |
219 } data; /**< packet data */ | 219 } data; /**< packet data */ |
220 } vpx_codec_cx_pkt_t; /**< alias for struct vpx_codec_cx_pkt */ | 220 } vpx_codec_cx_pkt_t; /**< alias for struct vpx_codec_cx_pkt */ |
221 | 221 |
222 | 222 |
| 223 /*!\brief Encoder return output buffer callback |
| 224 * |
| 225 * This callback function, when registered, returns with packets when each |
| 226 * spatial layer is encoded. |
| 227 */ |
| 228 // putting the definitions here for now. (agrange: find if there |
| 229 // is a better place for this) |
| 230 typedef void (* vpx_codec_enc_output_cx_pkt_cb_fn_t)(vpx_codec_cx_pkt_t *pkt, |
| 231 void *user_data); |
| 232 |
| 233 /*!\brief Callback function pointer / user data pair storage */ |
| 234 typedef struct vpx_codec_enc_output_cx_cb_pair { |
| 235 vpx_codec_enc_output_cx_pkt_cb_fn_t output_cx_pkt; |
| 236 void *user_priv; |
| 237 } vpx_codec_priv_output_cx_pkt_cb_pair_t; |
| 238 |
223 /*!\brief Rational Number | 239 /*!\brief Rational Number |
224 * | 240 * |
225 * This structure holds a fractional value. | 241 * This structure holds a fractional value. |
226 */ | 242 */ |
227 typedef struct vpx_rational { | 243 typedef struct vpx_rational { |
228 int num; /**< fraction numerator */ | 244 int num; /**< fraction numerator */ |
229 int den; /**< fraction denominator */ | 245 int den; /**< fraction denominator */ |
230 } vpx_rational_t; /**< alias for struct vpx_rational */ | 246 } vpx_rational_t; /**< alias for struct vpx_rational */ |
231 | 247 |
232 | 248 |
(...skipping 765 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
998 */ | 1014 */ |
999 const vpx_image_t *vpx_codec_get_preview_frame(vpx_codec_ctx_t *ctx); | 1015 const vpx_image_t *vpx_codec_get_preview_frame(vpx_codec_ctx_t *ctx); |
1000 | 1016 |
1001 | 1017 |
1002 /*!@} - end defgroup encoder*/ | 1018 /*!@} - end defgroup encoder*/ |
1003 #ifdef __cplusplus | 1019 #ifdef __cplusplus |
1004 } | 1020 } |
1005 #endif | 1021 #endif |
1006 #endif // VPX_VPX_ENCODER_H_ | 1022 #endif // VPX_VPX_ENCODER_H_ |
1007 | 1023 |
OLD | NEW |