OLD | NEW |
1 # Copyright (c) 2011 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_new_packet(AVPacket *pkt, int size); | 10 int av_new_packet(AVPacket *pkt, int size); |
11 int avcodec_decode_audio3(AVCodecContext *avctx, int16_t *samples, int *frame_si
ze_ptr, AVPacket *avpkt); | 11 int avcodec_decode_audio3(AVCodecContext *avctx, int16_t *samples, int *frame_si
ze_ptr, AVPacket *avpkt); |
12 int avcodec_decode_video2(AVCodecContext *avctx, AVFrame *picture, int *got_pict
ure_ptr, AVPacket *avpkt); | 12 int avcodec_decode_video2(AVCodecContext *avctx, AVFrame *picture, int *got_pict
ure_ptr, const AVPacket *avpkt); |
13 int avcodec_open(AVCodecContext *avctx, AVCodec *codec); | 13 int avcodec_open2(AVCodecContext *avctx, AVCodec *codec, AVDictionary **options)
; |
14 int avcodec_close(AVCodecContext *avctx); | 14 int avcodec_close(AVCodecContext *avctx); |
15 int avcodec_thread_init(AVCodecContext *s, int thread_count); | |
16 void av_free_packet(AVPacket *pkt); | 15 void av_free_packet(AVPacket *pkt); |
17 void av_init_packet(AVPacket *pkt); | 16 void av_init_packet(AVPacket *pkt); |
18 int av_dup_packet(AVPacket *pkt); | 17 int av_dup_packet(AVPacket *pkt); |
19 void avcodec_flush_buffers(AVCodecContext *avctx); | 18 void avcodec_flush_buffers(AVCodecContext *avctx); |
20 void avcodec_init(void); | |
21 void av_register_bitstream_filter(AVBitStreamFilter *bsf); | 19 void av_register_bitstream_filter(AVBitStreamFilter *bsf); |
22 AVBitStreamFilterContext *av_bitstream_filter_init(const char *name); | 20 AVBitStreamFilterContext *av_bitstream_filter_init(const char *name); |
23 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); | 21 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 void av_bitstream_filter_close(AVBitStreamFilterContext *bsf); | 22 void av_bitstream_filter_close(AVBitStreamFilterContext *bsf); |
25 void av_destruct_packet(AVPacket *pkt); | 23 void av_destruct_packet(AVPacket *pkt); |
26 int av_lockmgr_register(AVLockMgrOperation cb); | 24 int av_lockmgr_register(AVLockMgrOperation cb); |
27 | 25 |
28 # RDFT functions. | 26 # RDFT functions. |
29 RDFTContext *av_rdft_init(int nbits, enum RDFTransformType trans); | 27 RDFTContext *av_rdft_init(int nbits, enum RDFTransformType trans); |
30 void av_rdft_calc(RDFTContext *s, FFTSample *data); | 28 void av_rdft_calc(RDFTContext *s, FFTSample *data); |
31 void av_rdft_end(RDFTContext *s); | 29 void av_rdft_end(RDFTContext *s); |
OLD | NEW |