| OLD | NEW |
| 1 # Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 # | 4 # |
| 5 # Functions from avcodec used in chromium code. | 5 # Functions from avcodec used in chromium code. |
| 6 | 6 |
| 7 AVCodecContext *avcodec_alloc_context(void); | 7 AVCodecContext *avcodec_alloc_context(void); |
| 8 AVCodec *avcodec_find_decoder(enum CodecID id); | 8 AVCodec *avcodec_find_decoder(enum CodecID id); |
| 9 AVFrame *avcodec_alloc_frame(void); | 9 AVFrame *avcodec_alloc_frame(void); |
| 10 int av_get_bits_per_sample_fmt(enum SampleFormat sample_fmt); | 10 int av_get_bits_per_sample_fmt(enum SampleFormat sample_fmt); |
| 11 int av_new_packet(AVPacket *pkt, int size); | 11 int av_new_packet(AVPacket *pkt, int size); |
| (...skipping 11 matching lines...) Expand all Loading... |
| 23 AVBitStreamFilterContext *av_bitstream_filter_init(const char *name); | 23 AVBitStreamFilterContext *av_bitstream_filter_init(const char *name); |
| 24 int av_bitstream_filter_filter(AVBitStreamFilterContext *bsfc, AVCodecContext *a
vctx, const char *args, uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf
, int buf_size, int keyframe); | 24 int av_bitstream_filter_filter(AVBitStreamFilterContext *bsfc, AVCodecContext *a
vctx, const char *args, uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf
, int buf_size, int keyframe); |
| 25 void av_bitstream_filter_close(AVBitStreamFilterContext *bsf); | 25 void av_bitstream_filter_close(AVBitStreamFilterContext *bsf); |
| 26 void av_destruct_packet(AVPacket *pkt); | 26 void av_destruct_packet(AVPacket *pkt); |
| 27 int av_lockmgr_register(AVLockMgrOperation cb); | 27 int av_lockmgr_register(AVLockMgrOperation cb); |
| 28 | 28 |
| 29 # RDFT functions. | 29 # RDFT functions. |
| 30 RDFTContext *av_rdft_init(int nbits, enum RDFTransformType trans); | 30 RDFTContext *av_rdft_init(int nbits, enum RDFTransformType trans); |
| 31 void av_rdft_calc(RDFTContext *s, FFTSample *data); | 31 void av_rdft_calc(RDFTContext *s, FFTSample *data); |
| 32 void av_rdft_end(RDFTContext *s); | 32 void av_rdft_end(RDFTContext *s); |
| 33 | |
| 34 # Export symbols for libvpx since Chromium is also using libvpx directly. | |
| 35 vpx_codec_err_t vpx_codec_enc_config_default(vpx_codec_iface_t *iface, vpx_codec
_enc_cfg_t *cfg, unsigned int usage); | |
| 36 vpx_codec_err_t vpx_codec_enc_init_ver(vpx_codec_ctx_t *ctx, vpx_codec_iface_t *
iface, vpx_codec_enc_cfg_t *cfg, vpx_codec_flags_t flags, int ver); | |
| 37 vpx_codec_err_t vpx_codec_encode(vpx_codec_ctx_t *ctx, const vpx_image_t *img, v
px_codec_pts_t pts, unsigned long duration, vpx_enc_frame_flags_t flags, unsigne
d long deadline); | |
| 38 const char *vpx_codec_error_detail(vpx_codec_ctx_t *ctx); | |
| 39 const char *vpx_codec_error(vpx_codec_ctx_t *ctx); | |
| 40 const char *vpx_codec_err_to_string(vpx_codec_err_t err); | |
| 41 const vpx_codec_cx_pkt_t *vpx_codec_get_cx_data(vpx_codec_ctx_t *ctx, vpx_codec_
iter_t *iter); | |
| 42 vpx_codec_err_t vpx_codec_destroy(vpx_codec_ctx_t *ctx); | |
| 43 vpx_codec_err_t vpx_codec_control_(vpx_codec_ctx_t *ctx, int ctrl_id, ...); | |
| 44 vpx_codec_err_t vpx_codec_dec_init_ver(vpx_codec_ctx_t *ctx, vpx_codec_iface_t *
iface, vpx_codec_dec_cfg_t *cfg, vpx_codec_flags_t flags, int ver); | |
| 45 vpx_codec_err_t vpx_codec_decode(vpx_codec_ctx_t *ctx, const uint8_t *data, unsi
gned int data_sz, void *user_priv, long deadline); | |
| 46 vpx_image_t *vpx_codec_get_frame(vpx_codec_ctx_t *ctx, vpx_codec_iter_t *iter); | |
| 47 vpx_codec_iface_t* vpx_codec_vp8_cx(void); | |
| 48 vpx_codec_iface_t* vpx_codec_vp8_dx(void); | |
| 49 vpx_image_t *vpx_img_alloc(vpx_image_t *img, vpx_img_fmt_t fmt, unsigned int d_w
,unsigned int d_h, unsigned int align); | |
| 50 void vpx_img_free(vpx_image_t *img); | |
| 51 vpx_codec_err_t vpx_codec_enc_config_set(vpx_codec_ctx_t *ctx, const vpx_codec_e
nc_cfg_t *cfg); | |
| OLD | NEW |