forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change ffmpeg.gyp over to use generate_stubs.py.
Also reimplement media_posix.cc to call into the generated stub functions instead of having its own hacked together version. Review URL: http://codereview.chromium.org/118046 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17819 0039d316-1c4b-4281-b951-d872f2087c98
- Loading branch information
ajwong@chromium.org
committed
Jun 6, 2009
1 parent
f093af6
commit 9393266
Showing
8 changed files
with
170 additions
and
316 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
include_rules = [ | ||
"+third_party/ffmpeg/include", | ||
"+third_party/ffmpeg", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Copyright (c) 2009 The Chromium Authors. All rights reserved. | ||
# Use of this source code is governed by a BSD-style license that can be | ||
# found in the LICENSE file. | ||
# | ||
# Functions from avcodec used in chromium code. | ||
|
||
AVCodec *avcodec_find_decoder(enum CodecID id); | ||
AVFrame *avcodec_alloc_frame(void); | ||
int av_get_bits_per_sample_format(enum SampleFormat sample_fmt); | ||
int av_new_packet(AVPacket *pkt, int size); | ||
int avcodec_decode_audio3(AVCodecContext *avctx, int16_t *samples, int *frame_size_ptr, AVPacket *avpkt); | ||
int avcodec_decode_video2(AVCodecContext *avctx, AVFrame *picture, int *got_picture_ptr, AVPacket *avpkt); | ||
int avcodec_open(AVCodecContext *avctx, AVCodec *codec); | ||
int avcodec_thread_init(AVCodecContext *s, int thread_count); | ||
void av_free_packet(AVPacket *pkt); | ||
void av_init_packet(AVPacket *pkt); | ||
void avcodec_flush_buffers(AVCodecContext *avctx); | ||
void avcodec_init(void); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Copyright (c) 2009 The Chromium Authors. All rights reserved. | ||
# Use of this source code is governed by a BSD-style license that can be | ||
# found in the LICENSE file. | ||
# | ||
# Functions from avformat used in chromium code. | ||
|
||
int av_find_stream_info(AVFormatContext *ic); | ||
int av_open_input_file(AVFormatContext **ic_ptr, const char *filename, AVInputFormat *fmt, int buf_size, AVFormatParameters *ap); | ||
int av_read_frame(AVFormatContext *s, AVPacket *pkt); | ||
int av_register_protocol(URLProtocol *protocol); | ||
int av_seek_frame(AVFormatContext *s, int stream_index, int64_t timestamp, int flags); | ||
void av_register_all(void); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Copyright (c) 2009 The Chromium Authors. All rights reserved. | ||
# Use of this source code is governed by a BSD-style license that can be | ||
# found in the LICENSE file. | ||
# | ||
# Functions from avutil used in chromium code. | ||
# | ||
|
||
int64_t av_rescale_q(int64_t a, AVRational bq, AVRational cq); | ||
void *av_malloc(unsigned int size); | ||
void av_free(void *ptr); |
Oops, something went wrong.