Michael Niedermayer
ca28cb5f83
examples: fix doxy so they appear on the example page
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Stefano Sabatini
33c4535db7
examples/decoding_encoding: add and use the decode_write_frame function
...
Allow to factorize code in video_decode_example(), simplify.
12 years ago
Stefano Sabatini
d3b8d56e06
examples/decoding_encoding: prefer 'frame' over 'picture' for an AVFrame
...
Decrease confusion.
12 years ago
Stefano Sabatini
7b116a94af
examples/decoding_encoding: fix misc typos in the usage text
12 years ago
Stefano Sabatini
8c4753f7f5
examples/decoding_encoding: remove misplaced and confusing comment
12 years ago
Stefano Sabatini
6d6ccbae4c
examples/decoding_encoding: add missing checks on avcodec_alloc_context3()
12 years ago
Stefano Sabatini
51fa653829
examples/decoding_encoding: clarify operations in the usage message
12 years ago
Stefano Sabatini
bcf93f78a5
examples/decoding_encoding: replace "picture" with "frame" in encode_example()
...
The use of "picture" in place of "frame" is confusing.
12 years ago
Stefano Sabatini
70b671a283
examples/decoding_encoding: apply various message log fixes
12 years ago
Stefano Sabatini
60924dfe55
examples/decoding_encoding: make operation logic more self-evident / predictable
...
Add a switch which controls which operation to perform. Useful to test
only a single feature. Also the new behavior is more self-consistent.
12 years ago
Stefano Sabatini
c0bca6425d
examples/decoding_encoding: store temporary files in current dir
...
Do not clutter the temporary directory with files, also "/tmp" is not
always available, e.g. in Windows.
Also add the clean-test Makefile rule, which will clean the generated
files.
12 years ago
Stefano Sabatini
fef9e84114
examples/decoding_encoding.c: tell where the decoding output files are printed
12 years ago
Stefano Sabatini
a7219529d1
examples/decoding_encoding: flush audio frames in the encoder
12 years ago
Stefano Sabatini
535df748c5
examples/decoding_encoding: re-organize frame configuration code
...
Put the relevant code in one chunk, also check for frame allocation
failures.
12 years ago
Clément Bœsch
50df68fd50
doc/examples: print operation filename in decoding_encoding.
13 years ago
Clément Bœsch
6c211085bb
doc/examples: use system headers in decoding_encoding and muxing.
...
All the other examples already use the system installed headers.
13 years ago
Clément Bœsch
072c2c08bf
doc/examples: add missing math.h include in decoding/encoding example.
...
The header is required for the sin() function.
13 years ago
Michael Niedermayer
28d37f7160
examples/decoding_encoding: fix encoding when all frames got buffered.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Stefano Sabatini
e21dac3a4f
examples/decoding_encoding: remove unused variable "size"
...
Remove unused variable size from video_encode_example() function.
Fix GCC warning:
decoding_encoding.c:214:22: warning: unused variable ‘size’ [-Wunused-variable]
13 years ago
Michael Niedermayer
eb9841297a
doc/examples/decoding_encoding: make the buffer bigger.
...
This should be converted to the new API
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
cb73e35660
example: Update decoding/encoding example to the new API.
...
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
0e187fd13c
decoding example: reset pts/dts after subpacket.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
107460c1e9
examples/decoding_encoding.c: test mpeg1 and h264
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
65e32eea73
examples/decoding_encoding.c: silence compiler warning
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
98140abe85
examples/decoding_encoding.c: set a codec private option to demonstrate how to do that
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
82d9fafbb8
examples/decoding_encoding.c: switch to h264
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
be5ac961e0
examples/encoding: rename to decoding_encoding.c as the file is an example for both.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
f8e98061ec
examples/encoding: List more formats to make it more clear to the reader what is not handled in libavcodec.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Stefano Sabatini
00a9ac424e
examples/encoding.c: adopt a less restrictive license
...
Adopt ISC (Internet Systems Consortium) license in place of LGPL,
consistent with the other examples.
Fabrice explicitely approved the relicensing.
14 years ago
Stefano Sabatini
c762f9fa2d
examples/encoding.c: remove unnecessary includes
...
Simplify.
14 years ago
Stefano Sabatini
2e5a9e580c
examples/encoding.c: use av_image_alloc() for allocating an image buffer
...
Simplify.
14 years ago
Stefano Sabatini
a7aabda267
examples/encoding.c: replace "this library" with "libavcodec" in doxy
...
So it is more clear the context of the sentence.
14 years ago
Stefano Sabatini
ffe3856de7
examples/encoding.c: remove reference to unexisting file
14 years ago
Stefano Sabatini
26f373988d
examples/muxing.c: set sample format for encoding
...
This is required, or avcodec_open() will abort because of invalid
sample format.
14 years ago
Stefano Sabatini
79f3384ce1
examples: rename "-example" suffix from examples files
...
The suffix is redundant since the containing directory itself is
called "examples". Simplify.
14 years ago
Stefano Sabatini
ca858ab77d
doc/examples: give meaningful names to the example files
...
Rename:
api-example.c -> encoding-example.c
output-example.c -> muxing-example.c
14 years ago
Stefano Sabatini
c328122a8d
api-example: uppercase first letter in "copyright"
...
Improve consistency.
14 years ago
Stefano Sabatini
9362b50941
examples: move API examples to a dedicated dir in doc
14 years ago
Mans Rullgard
2912e87a6c
Replace FFmpeg with Libav in licence headers
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Martin Storsjö
8ac942d8f5
Cosmetics: reindent after the previous commit
...
Originally committed as revision 23324 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Martin Storsjö
11f6181af1
api-example: Try to avoid decoding incomplete frames
...
Use a larger input audio buffer, refill it when it has less than 4 KB data
left.
Originally committed as revision 23323 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Diego Biurrun
ba87f0801d
Remove explicit filename from Doxygen @file commands.
...
Passing an explicit filename to this command is only necessary if the
documentation in the @file block refers to a file different from the
one the block resides in.
Originally committed as revision 22921 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Jai Menon
1c38da85e6
Allow building api-example from outside of libavcodec and also
...
make it more consistent with libavformat/output-example.
Originally committed as revision 20176 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Thilo Borgmann
4f313925ec
Use the new avcodec_decode_* API.
...
Patch by Thilo Borgmann name.surname AT googlemail.com.
Originally committed as revision 18409 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Diego Biurrun
504ffed19f
Mark non-exported functions in test and example programs as static.
...
Originally committed as revision 18259 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Diego Biurrun
7c17abaf9d
Rename apiexample.c --> api-example.c to be consistent with other example files.
...
Originally committed as revision 18216 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Robert Swain
29e455081f
Update apiexample.c to use the newer avcodec_decode_audio2() API. This also
...
fixes compilation.
Originally committed as revision 18176 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Diego Biurrun
bad5537e2c
Use full internal pathname in doxygen @file directives.
...
Otherwise doxygen complains about ambiguous filenames when files exist
under the same name in different subdirectories.
Originally committed as revision 16912 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Reimar Döffinger
14660b0814
Use M_PI from libavutil/mathematics.h instead of defining PI ourselves
...
in libavcodec/apiexample.c.
Originally committed as revision 15520 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Carl Eugen Hoyos
c9823f0577
Improve understanding ofavcodec_find_decoder()
...
patch by Carl Eugen Hoyos: ! cehoyos ag or at !
Originally committed as revision 9301 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago