Commit Graph

45 Commits

Author SHA1 Message Date
Stefano Sabatini e98b8e2f2f Implement av_samples_alloc() and av_samples_fill_arrays().
With minor changes by michael

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2011-02-02 03:12:47 +01:00
Janne Grunau 2c3589bfda consolidate .gitignore patters into a single file
Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
2011-01-18 21:32:05 +01:00
Janne Grunau 348b8218f7 convert svn:ignore properties to .gitignore files
Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
2011-01-17 15:50:14 +01:00
Stefano Sabatini 6cce172f27 Add avcore.h header in samplefmt.h.
Avoid the need to manually include the avcore.h header, less
error-prone.

Originally committed as revision 26333 to svn://svn.ffmpeg.org/ffmpeg/trunk
2011-01-14 20:58:43 +00:00
Stefano Sabatini 8b69c2f463 Make av_get_channel_layout_string() guess the number of channels if it
was not provided.

Originally committed as revision 26324 to svn://svn.ffmpeg.org/ffmpeg/trunk
2011-01-13 01:00:31 +00:00
Stefano Sabatini c61cdd0afb Move AV_NOPTS_VALUE, AV_TIME_BASE, AV_TIME_BASE_Q symbols from
libavcodec to libavcore.

Remove another compile-time dependancy of libavfilter on libavcodec.

Originally committed as revision 25923 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-12-09 17:27:33 +00:00
Stefano Sabatini 4da12e3b13 Implement av_image_alloc() and use it in
avfilter_default_get_video_buffer().

Originally committed as revision 25878 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-12-04 12:56:16 +00:00
Stefano Sabatini 9398024c04 Add missing overflow checks in av_image_fill_pointers() and
av_image_fill_linesizes().

Originally committed as revision 25861 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-12-02 19:49:55 +00:00
Stefano Sabatini 176a6157c0 Move audio channel API from libavcodec to libavcore.
Originally committed as revision 25787 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-11-21 19:28:52 +00:00
Aurelien Jacobs 0985e1a3ca move the av_parse_color() function from libavfilter to libavcore
Originally committed as revision 25761 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-11-17 22:58:28 +00:00
Stefano Sabatini ed5d30d91c Move internal function ff_set_systematic_pal() to libavcore, and
rename it ff_set_systematic_pal2().

Originally committed as revision 25712 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-11-09 22:22:36 +00:00
Stefano Sabatini d2af7205a1 Use hierarchic names convention (prefix them with av_expr) for the
eval API.

More grep-friendly and more consistent with the rest of the FFmpeg
API.

Originally committed as revision 25708 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-11-08 14:06:49 +00:00
Stefano Sabatini 6f84cd1279 Add av_get_bits_per_sample_fmt() to libavcore/samplefmt.h and
deprecate av_get_bits_per_sample_format().

Originally committed as revision 25654 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-11-02 22:20:49 +00:00
Stefano Sabatini d63e456a2a Implement functions:
av_get_sample_fmt_name()
av_get_sample_fmt()
av_get_sample_fmt_string()

in libavcore, and deprecate the corresponding libavcodec/audioconvert.h functions:
avcodec_get_sample_fmt_name()
avcodec_get_sample_fmt()
avcodec_sample_fmt_string()

Originally committed as revision 25653 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-11-02 22:08:02 +00:00
Stefano Sabatini 262d1c5d22 Move sample format definitions from libavcodec to libavcore.
Originally committed as revision 25652 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-11-02 20:45:46 +00:00
Stefano Sabatini 00e962a275 Add a test for av_parse_video_rate().
Originally committed as revision 25334 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-10-04 13:41:06 +00:00
Stefano Sabatini bc12b3b11b Use av_parse_and_eval_expr() in av_parse_video_rate(), simplify.
Originally committed as revision 25333 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-10-04 13:41:04 +00:00
Stefano Sabatini 6705dd5f98 Fix weird indent.
Originally committed as revision 25287 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-10-01 16:02:10 +00:00
Ramiro Polla d222e9f9da av_fill_image_linesizes -> av_image_fill_linesizes
Originally committed as revision 25083 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-09-08 23:36:14 +00:00
Stefano Sabatini 6950cca97f Add missing checks on invalid pixel format in
av_image_fill_linesizes/pointers.

Originally committed as revision 25072 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-09-07 23:41:18 +00:00
Stefano Sabatini 2b3cd04d88 Cosmetics: use plural form for *linesizes arguments of
av_image_copy(), more consistent with the rest of the API and more
semantically correct.

Originally committed as revision 25070 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-09-07 21:24:06 +00:00
Stefano Sabatini 34017fd9b2 Move av_picture_data_copy() to libavcore, and rename it
av_image_copy().

Originally committed as revision 25067 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-09-07 21:23:55 +00:00
Stefano Sabatini 9686abb826 Reimplement ff_img_copy_plane() as av_image_copy_plane() in libavcore,
and deprecate the old function.

Originally committed as revision 25064 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-09-07 21:23:45 +00:00
Stefano Sabatini 9b7269e379 Adopt a hierarchical name scheme for the imgutils.h API. Simplify
grepping and somewhat more consistent with the scheme adopted by other
FFmpeg modules API.

Originally committed as revision 25057 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-09-07 19:15:17 +00:00
Stefano Sabatini 0f146263aa Make av_fill_image_max_pixsteps() non static non inline.
Originally committed as revision 25053 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-09-06 21:51:20 +00:00
Diego Biurrun 625bac784b Use quotes instead of angle brackets for local #includes.
Originally committed as revision 25015 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-09-01 02:12:03 +00:00
Stefano Sabatini be7110cded Cosmetics: if( -> if (.
Originally committed as revision 24859 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-08-21 15:18:52 +00:00
Stefano Sabatini e34433612f Rename av_fill_image_max_pixstep() to av_fill_image_max_pixsteps().
The plural form is preferred as it is more consistent with the other functions:
av_fill_image_linesizes()
av_fill_image_pointers()

and looks semantically more correct as it fills an array of elements.

Originally committed as revision 24851 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-08-20 16:52:38 +00:00
Stefano Sabatini d1a991f23d Add missing period in av_fill_image_max_pixstep() doxy.
Originally committed as revision 24850 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-08-20 16:34:41 +00:00
Stefano Sabatini a6ddf8bf0f Implement inline function av_fill_image_max_pixstep() and use it for
factorizing code.

Originally committed as revision 24827 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-08-18 21:02:38 +00:00
Stefano Sabatini 7906e2b974 Implement av_get_image_linesize() and use it in
ff_get_plane_bytewidth().

The new implementation is more generic, more compact and more correct.

Originally committed as revision 24786 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-08-12 15:05:58 +00:00
Stefano Sabatini 899a507fa6 Clarify av_check_image_size() log message.
Originally committed as revision 24710 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-08-06 09:36:50 +00:00
Stefano Sabatini bf176f58b7 Deprecate avcodec_check_dimensions() in favor of the new function
av_check_image_size() declared in libavcore/imgutils.h.

Originally committed as revision 24709 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-08-06 09:36:45 +00:00
Stefano Sabatini ecc7bfe30c Rename the av_fill_image_linesize() formal parameter linesize to
linesizes, for consistency with the function declaration.

Originally committed as revision 24591 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-07-30 08:42:22 +00:00
Stefano Sabatini 7d8d18de2c Reimplement av_fill_image_pointers() using the information stored in
the pixdescs.

The new implementation is more compact, and does not need to be
updated at each pixel format addition.

Originally committed as revision 24590 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-07-30 08:42:19 +00:00
Stefano Sabatini 46b1d17a6f Make av_fill_image_linesizes() return a meaningful error core rather
than -1.

Originally committed as revision 24589 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-07-30 08:42:15 +00:00
Stefano Sabatini 7860b43651 Rename av_fill_image_linesizes() internal variables max_plane_step and
max_plane_step_comp by removing the "plane_" word, and add a comment
for explaining what they represent.

Increase readability.

Originally committed as revision 24588 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-07-30 08:42:12 +00:00
Stefano Sabatini e7bd48a6ae Move fill_image_linesize() and fill_image_data_ptr() from
libavcodec/imgconvert.c and make them public in libavcore/imgutils.h,
with the names av_fill_image_linesizes() and av_fill_image_pointers().

Originally committed as revision 24583 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-07-29 23:44:57 +00:00
Måns Rullgård 54d1d1ba17 libavcore needs libavutil
Originally committed as revision 24532 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-07-27 06:58:42 +00:00
Stefano Sabatini ea35e3c61e Avoid the use of an intermediary variable in
av_parse_video_rate(). Simplify.

Originally committed as revision 24524 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-07-26 23:12:48 +00:00
Stefano Sabatini c90c80ac28 Make VideoFrameRateAbbr contain a rational rather than two ints for
num and den. Simplify.

Originally committed as revision 24523 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-07-26 23:12:45 +00:00
Stefano Sabatini dc4a50a073 Remove reference to the "frame" term in variable names. Simpler and
more consistent with the function names.

Originally committed as revision 24522 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-07-26 23:12:41 +00:00
Stefano Sabatini afead10638 Make av_parse_video_size() and av_parse_video_rate() return
AVERROR(EINVAL) rather than -1 in case of unsuccess.

Originally committed as revision 24521 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-07-26 23:12:38 +00:00
Stefano Sabatini 126b638ea0 Deprecate av_parse_video_frame_size() and av_parse_video_frame_rate()
in favor of the newly added corresponding functions
av_parse_video_size() and av_parse_video_rate() defined in
libavcore/parseutils.h.

This change also adds a linking-time dependency of libavcodec and of
libavfilter on libavcore.

Originally committed as revision 24518 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-07-26 23:12:28 +00:00
Stefano Sabatini aac6ca6978 Add libavcore.
The new library is meant to contain the core multimedia utilities for
FFmpeg, to make them shareable between more libav* libraries.

See thread:
Subject: [FFmpeg-devel] [RFC] New library for shared non-generic libav* utils
Date: Fri, 9 Jul 2010 01:07:40 +0200

Originally committed as revision 24393 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-07-21 18:28:42 +00:00