Statistics
| Branch: | Revision:

ffmpeg / libavcodec / dv.c @ 2912e87a

History | View | Annotate | Download (46.8 KB)

# Date Author Comment
2912e87a 03/19/2011 01:33 PM Mans Rullgard

Replace FFmpeg with Libav in licence headers

Signed-off-by: Mans Rullgard <>

d36beb3f 01/26/2011 04:08 PM Diego Elio Pettenò

Add ff_ prefix to data symbols of encoders, decoders, hwaccel, parsers, bsf.

None of these symbols should be accessed directly, so declare them as
hidden.

Signed-off-by: Mans Rullgard <>

2a5db1aa 09/27/2010 09:31 PM Baptiste Coudurier

In dv decoder, set sample aspect aspect ratio, fix issue #1612

Originally committed as revision 25232 to svn://svn.ffmpeg.org/ffmpeg/trunk

375fb9f1 08/20/2010 07:49 PM Måns Rullgård

dv: fix alignment of scratch buffer

Originally committed as revision 24854 to svn://svn.ffmpeg.org/ffmpeg/trunk

0fd0ef79 07/07/2010 09:23 PM Carl Eugen Hoyos

Add new decoder property max_lowres and do not init decoder if requested value is higher.

Originally committed as revision 24098 to svn://svn.ffmpeg.org/ffmpeg/trunk

ba87f080 04/20/2010 02:45 PM Diego Biurrun

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

72415b2a 03/30/2010 11:30 PM Stefano Sabatini

Define AVMediaType enum, and use it instead of enum CodecType, which
is deprecated and will be dropped at the next major bump.

Originally committed as revision 22735 to svn://svn.ffmpeg.org/ffmpeg/trunk

5b9c11ff 03/29/2010 08:58 PM Reimar Döffinger

Fix indentation.

Originally committed as revision 22721 to svn://svn.ffmpeg.org/ffmpeg/trunk

c787cb33 03/21/2010 04:03 PM Reimar Döffinger

Add support for hard-coding the 256kB large dv_vlc_map table.

Originally committed as revision 22622 to svn://svn.ffmpeg.org/ffmpeg/trunk

10249a5f 03/21/2010 02:43 PM Reimar Döffinger

Split VLC-related tables out of dvdata.h to make it easier to add support
for hard-coding tables.

Originally committed as revision 22620 to svn://svn.ffmpeg.org/ffmpeg/trunk

40d11227 02/17/2010 08:36 PM Måns Rullgård

Use LOCAL_ALIGNED macro for local arrays

Originally committed as revision 21866 to svn://svn.ffmpeg.org/ffmpeg/trunk

c6727809 01/22/2010 03:25 AM Måns Rullgård

Move array specifiers outside DECLARE_ALIGNED() invocations

Originally committed as revision 21377 to svn://svn.ffmpeg.org/ffmpeg/trunk

9514a084 01/12/2010 01:54 PM Michael Niedermayer

Align mb_bit_buffer and vs_bit_buffer as their alignment is checked by assert().

Originally committed as revision 21164 to svn://svn.ffmpeg.org/ffmpeg/trunk

6d01a97c 12/11/2009 11:56 PM Tomas Härdin

Fail earlier for unsupported resolutions or pixel formats when encoding
dv.

Patch by Tomas Härdin, tomas D hardin A codemill D se

Originally committed as revision 20803 to svn://svn.ffmpeg.org/ffmpeg/trunk

c47ca25e 11/09/2009 10:10 PM Ronald S. Bultje

Make get_bits_left() available for use in libavcodec (was previously held
private in dv.c for some reason). See "[PATCH] get_bits_left()" thread.

Originally committed as revision 20490 to svn://svn.ffmpeg.org/ffmpeg/trunk

c76911bd 10/16/2009 07:55 AM Reimar Döffinger

Split parts of dvdata.h into dvdata.c, this ensures that things like
work_chunks_* and dv_idct_factor_* variables appear only once in the binary
instead of 3 times.
Saves 3264 bytes in .rodata and 312416 bytes in .bss on x86_64.

Originally committed as revision 20246 to svn://svn.ffmpeg.org/ffmpeg/trunk

8f1e203a 09/29/2009 07:18 PM Reimar Döffinger

Use context instead of NULL for logging.

Originally committed as revision 20085 to svn://svn.ffmpeg.org/ffmpeg/trunk

ebb651d5 09/29/2009 07:17 PM Reimar Döffinger

Make sure that dv encoder initializes all encoded packet data.
The specification does not say which value to use for unused
parts, so fill all unused bytes with 0xff, which is consistent
with what DV usually uses for reserved or unused parts.

Originally committed as revision 20084 to svn://svn.ffmpeg.org/ffmpeg/trunk

2ba83017 09/06/2009 04:09 PM Reimar Döffinger

Mark all pix_fmts and supported_framerates compound literals as const.
Makes no difference for gcc but at least icc can put them in .rodata then.

Originally committed as revision 19789 to svn://svn.ffmpeg.org/ffmpeg/trunk

20e7c8ae 08/26/2009 12:12 PM Måns Rullgård

Remove some unnecessary alignment specifiers

None of these arrays are used in ways requiring extra alignment.

Originally committed as revision 19715 to svn://svn.ffmpeg.org/ffmpeg/trunk

2c608fed 06/14/2009 10:41 PM Baptiste Coudurier

print error when dv frame profile cannot be found

Originally committed as revision 19193 to svn://svn.ffmpeg.org/ffmpeg/trunk

d509c743 06/14/2009 10:34 PM Baptiste Coudurier

check if frame size matches old sys and assumes corrupted input, fixes #1192

Originally committed as revision 19192 to svn://svn.ffmpeg.org/ffmpeg/trunk

b8df8d0d 05/31/2009 06:33 AM Baptiste Coudurier

remove cast and use put_sbits, fix assertion in put_bits

Originally committed as revision 19024 to svn://svn.ffmpeg.org/ffmpeg/trunk

580a7465 05/11/2009 04:34 AM David Conrad

Add a chroma_sample_location field to define positioning of chroma samples

Originally committed as revision 18795 to svn://svn.ffmpeg.org/ffmpeg/trunk

9106a698 04/13/2009 04:20 PM Stefano Sabatini

Rename bitstream.h to get_bits.h.

Originally committed as revision 18494 to svn://svn.ffmpeg.org/ffmpeg/trunk

b2755007 04/12/2009 08:35 AM Stefano Sabatini

Split bitstream.h, put the bitstream writer stuff in the new file
put_bits.h.

Originally committed as revision 18461 to svn://svn.ffmpeg.org/ffmpeg/trunk

7a00bbad 04/07/2009 03:59 PM Thilo Borgmann

Implement avcodec_decode_video2(), _audio3() and _subtitle2() which takes an
AVPacket argument rather than a const uint8_t *buf + int buf_size. This allows
passing of packet-specific flags from demuxer to decoder, such as the keyframe
flag, which appears necessary to playback corePNG P-frames....

ce83d2bd 02/20/2009 02:00 AM Roman Shaposhnik

Fixing a value returning issue

Originally committed as revision 17469 to svn://svn.ffmpeg.org/ffmpeg/trunk

94ed2a30 02/19/2009 12:34 AM Roman Shaposhnik

transitioning dv_guess_dct_mode to dsputil cmp function

Originally committed as revision 17449 to svn://svn.ffmpeg.org/ffmpeg/trunk

1bf6e565 02/17/2009 12:03 PM Diego Biurrun

cosmetics: 'const static' --> 'static const' to avoid warnings of the type
"'static' is not at beginning of declaration" with -Wextra.

Originally committed as revision 17391 to svn://svn.ffmpeg.org/ffmpeg/trunk

f52901b3 02/04/2009 04:16 PM Roman Shaposhnik

No need to compute stype

Originally committed as revision 16988 to svn://svn.ffmpeg.org/ffmpeg/trunk

bad5537e 02/01/2009 02:00 AM Diego Biurrun

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

7591b304 01/31/2009 10:49 PM Baptiste Coudurier

remove some warnings due to avctx->execute

Originally committed as revision 16909 to svn://svn.ffmpeg.org/ffmpeg/trunk

f579d24b 01/31/2009 10:16 PM Ben Hutchings

assume widescreen when ratio also > 17, patch by Ben Hutchings, ben at decadent dot org dot uk

Originally committed as revision 16907 to svn://svn.ffmpeg.org/ffmpeg/trunk

1a969d6d 01/31/2009 01:50 AM Roman Shaposhnik

Cosmetics: fixing indentation

Originally committed as revision 16880 to svn://svn.ffmpeg.org/ffmpeg/trunk

77cd35cd 01/31/2009 01:46 AM Roman Shaposhnik

unrolling encoding loops

Originally committed as revision 16879 to svn://svn.ffmpeg.org/ffmpeg/trunk

b45ba151 01/31/2009 01:41 AM Roman Shaposhnik

Cosmetics: simplifying static initialization

Originally committed as revision 16878 to svn://svn.ffmpeg.org/ffmpeg/trunk

85eca52b 01/31/2009 01:39 AM Roman Shaposhnik

simplifying DIF encoding process

Originally committed as revision 16877 to svn://svn.ffmpeg.org/ffmpeg/trunk

76bd5997 01/31/2009 01:37 AM Roman Shaposhnik

Cosmetics: fixing the indentation

Originally committed as revision 16876 to svn://svn.ffmpeg.org/ffmpeg/trunk

9b8390bf 01/31/2009 01:36 AM Roman Shaposhnik

factoring code into dv_init_enc_block

Originally committed as revision 16875 to svn://svn.ffmpeg.org/ffmpeg/trunk

5c2a9dd6 01/31/2009 01:36 AM Roman Shaposhnik

Cosmetics: replacing 0 with NULL for pointer assignment

Originally committed as revision 16874 to svn://svn.ffmpeg.org/ffmpeg/trunk

2331854d 01/31/2009 01:35 AM Roman Shaposhnik

Cosmetics: moving the function definition around

Originally committed as revision 16873 to svn://svn.ffmpeg.org/ffmpeg/trunk

b25d4392 01/31/2009 01:34 AM Roman Shaposhnik

Replacing the constant with a macro

Originally committed as revision 16872 to svn://svn.ffmpeg.org/ffmpeg/trunk

406792e7 01/19/2009 03:46 PM Diego Biurrun

cosmetics: Remove pointless period after copyright statement non-sentences.

Originally committed as revision 16684 to svn://svn.ffmpeg.org/ffmpeg/trunk

49fb20cb 01/14/2009 05:19 PM Aurelien Jacobs

replace all occurrence of ENABLE_ by the corresponding CONFIG_, HAVE_ or ARCH_
and remove all ENABLE_ definitions.

Originally committed as revision 16600 to svn://svn.ffmpeg.org/ffmpeg/trunk

b250f9c6 01/13/2009 11:44 PM Aurelien Jacobs

Change semantic of CONFIG_*, HAVE_* and ARCH_*.
They are now always defined to either 0 or 1.

Originally committed as revision 16590 to svn://svn.ffmpeg.org/ffmpeg/trunk

a21fd75f 11/20/2008 01:40 AM Roman Shaposhnik

Making idct factor tables dynamically allocated

Originally committed as revision 15885 to svn://svn.ffmpeg.org/ffmpeg/trunk

ff16d6e4 11/19/2008 01:40 AM Roman Shaposhnik

Change of indentation

Originally committed as revision 15883 to svn://svn.ffmpeg.org/ffmpeg/trunk

195b3490 11/18/2008 08:48 PM Roman Shaposhnik

Getting rid of huge static DV tables

Originally committed as revision 15874 to svn://svn.ffmpeg.org/ffmpeg/trunk

1ac1217b 11/18/2008 08:33 PM Roman Shaposhnik

Getting rid of unneeded extra wrapper functions

Originally committed as revision 15873 to svn://svn.ffmpeg.org/ffmpeg/trunk

2ae7e124 11/12/2008 09:13 PM Roman Shaposhnik

Taking advantage of the new ->execute API

Originally committed as revision 15806 to svn://svn.ffmpeg.org/ffmpeg/trunk

3a84713a 11/12/2008 05:47 PM Roman Shaposhnik

Making it easier to send arbitrary structures as work orders to MT workers

Originally committed as revision 15804 to svn://svn.ffmpeg.org/ffmpeg/trunk

c3d470b4 11/08/2008 12:18 AM Roman Shaposhnik

implementing more efficient (and direct) allocation of work for DV codec workers

Originally committed as revision 15788 to svn://svn.ffmpeg.org/ffmpeg/trunk

0e60e190 10/30/2008 03:43 PM Roman Shaposhnik

renaming macro in order to conform with the rest of libavcodec

Originally committed as revision 15751 to svn://svn.ffmpeg.org/ffmpeg/trunk

f94036f1 10/24/2008 09:41 PM Diego Biurrun

prettyprinting cosmetics

Originally committed as revision 15682 to svn://svn.ffmpeg.org/ffmpeg/trunk

75f2c209 10/24/2008 09:37 PM Diego Biurrun

spelling cosmetics

Originally committed as revision 15681 to svn://svn.ffmpeg.org/ffmpeg/trunk

4e92dabf 10/07/2008 04:59 PM Roman Shaposhnik

replacing frame_rate and frame_rate_base with an AVRational time_base

Originally committed as revision 15584 to svn://svn.ffmpeg.org/ffmpeg/trunk

6a276c46 10/07/2008 03:52 PM Roman Shaposhnik

unrolling the loops as per Michael's suggestion

Originally committed as revision 15580 to svn://svn.ffmpeg.org/ffmpeg/trunk

0843ddcb 10/07/2008 03:51 PM Roman Shaposhnik

fixing a bug that prevented proper unweighting table to be selected

Originally committed as revision 15579 to svn://svn.ffmpeg.org/ffmpeg/trunk

2b6cee9f 10/07/2008 03:50 PM Roman Shaposhnik

Doxygenizing the comments

Originally committed as revision 15578 to svn://svn.ffmpeg.org/ffmpeg/trunk

c9b0b38f 10/07/2008 03:49 PM Roman Shaposhnik

simplifying the code as per Michael's suggestion

Originally committed as revision 15577 to svn://svn.ffmpeg.org/ffmpeg/trunk

910f02a0 10/02/2008 04:28 PM Diego Biurrun

spelling cosmetics

Originally committed as revision 15518 to svn://svn.ffmpeg.org/ffmpeg/trunk

2a43a093 09/02/2008 11:25 PM Diego Biurrun

Replace generic CONFIG_DECODERS preprocessor conditionals by more specific
CONFIG_FOO_DECODER conditionals where appropriate.

Originally committed as revision 15162 to svn://svn.ffmpeg.org/ffmpeg/trunk

f8007a14 08/28/2008 10:41 PM Roman Shaposhnik

Intial implementation of the DV100 (AKA DVCPRO HD) decoder and demuxer as
specified in SMPTE 370M

Originally committed as revision 15010 to svn://svn.ffmpeg.org/ffmpeg/trunk

f4acfa38 08/27/2008 08:25 PM Roman Shaposhnik

Cosmetic change aimed at making it easier to see how bits are consumed

Originally committed as revision 14998 to svn://svn.ffmpeg.org/ffmpeg/trunk

b1e3628e 08/27/2008 08:21 PM Roman Shaposhnik

Factoring out chan_slice / 27 into seq variable

Originally committed as revision 14997 to svn://svn.ffmpeg.org/ffmpeg/trunk

7ae6dcb5 08/27/2008 08:17 PM Roman Shaposhnik

Simplification of how dct_mode affects decoding.

Originally committed as revision 14996 to svn://svn.ffmpeg.org/ffmpeg/trunk

c89cb589 08/19/2008 04:02 PM Roman Shaposhnik

Making block size in bits variable and dependent on the DV spec

Originally committed as revision 14842 to svn://svn.ffmpeg.org/ffmpeg/trunk

713c1aa9 08/19/2008 04:01 PM Roman Shaposhnik

Making the number of blocks per macroblock dependent on the DV stream
specification

Originally committed as revision 14841 to svn://svn.ffmpeg.org/ffmpeg/trunk

cb879ec2 08/19/2008 04:00 PM Roman Shaposhnik

Introducing DV_MAX_BPM macro instead of a hardcoded value for the
highest number of blocks per macroblock

Originally committed as revision 14840 to svn://svn.ffmpeg.org/ffmpeg/trunk

3f66d168 08/11/2008 10:14 AM Roman Shaposhnik

Fixing the units in DV50 tables (both coordinates are
supposed to be in units of 8 pixels) and simplifying
the calculations of y_ptr and c_offset.

Originally committed as revision 14693 to svn://svn.ffmpeg.org/ffmpeg/trunk

d557838c 08/11/2008 09:35 AM Roman Shaposhnik

Coalescing the un-weighting and de-quantization steps for faster
processing

Originally committed as revision 14691 to svn://svn.ffmpeg.org/ffmpeg/trunk

4ad62d9a 07/11/2008 07:48 AM Diego Biurrun

Move #ifdef CONFIG_DVVIDEO_ENCODER up to cover all functions used for encoding.

Originally committed as revision 14166 to svn://svn.ffmpeg.org/ffmpeg/trunk

fd9f3153 07/11/2008 07:45 AM Diego Biurrun

Make preprocessor condition more specific and useful by changing
#ifdef CONFIG_ENCODERS --> #ifdef CONFIG_DVVIDEO_ENCODER.

Originally committed as revision 14165 to svn://svn.ffmpeg.org/ffmpeg/trunk

fe4bf374 06/12/2008 09:50 PM Stefano Sabatini

Make AVCodec long_names definition conditional depending on CONFIG_SMALL.

Originally committed as revision 13759 to svn://svn.ffmpeg.org/ffmpeg/trunk

39883fff 06/10/2008 07:21 PM Baptiste Coudurier

remove useless wrapper func

Originally committed as revision 13738 to svn://svn.ffmpeg.org/ffmpeg/trunk

390b25ae 05/28/2008 11:56 PM Baptiste Coudurier

set avctx time_base in dv decoder

Originally committed as revision 13515 to svn://svn.ffmpeg.org/ffmpeg/trunk

eacced45 05/11/2008 10:28 PM Carl Eugen Hoyos

Replace some occurrences of -1 with PIX_FMT_NONE.
Fixes icc warning #188: enumerated type mixed with another type

Originally committed as revision 13130 to svn://svn.ffmpeg.org/ffmpeg/trunk

6140271f 04/29/2008 07:24 AM Stefano Sabatini

Add some long names to AVCodec declarations.
patch by Stefano Sabatini, stefano.sabatini-lala poste it

Originally committed as revision 13017 to svn://svn.ffmpeg.org/ffmpeg/trunk

8e5f465f 04/08/2008 01:09 AM Alexander Strange

Increase alignment for DCT block arrays from 8 to 16

Patch by Alexander Strange ( astrange ithinksw com )

Originally committed as revision 12767 to svn://svn.ffmpeg.org/ffmpeg/trunk

98a6fff9 03/21/2008 03:11 AM Zuxy Meng

Apply 'cold' attribute to init/uninit functions in libavcodec

Originally committed as revision 12525 to svn://svn.ffmpeg.org/ffmpeg/trunk

fbd4293d 03/05/2008 12:43 AM Aurelien Jacobs

remove more useless mpegvideo.h includes

Originally committed as revision 12323 to svn://svn.ffmpeg.org/ffmpeg/trunk

095f08d5 02/01/2008 03:08 PM Michael Niedermayer

some const

Originally committed as revision 11758 to svn://svn.ffmpeg.org/ffmpeg/trunk

7993df65 02/01/2008 03:26 AM Michael Niedermayer

consts
I have underestimated this a little, and these are just some ...

Originally committed as revision 11708 to svn://svn.ffmpeg.org/ffmpeg/trunk

59e6f60a 12/08/2007 09:21 PM Aurelien Jacobs

add ff_ prefix to all simple_idct symbols

Originally committed as revision 11192 to svn://svn.ffmpeg.org/ffmpeg/trunk

5885dda4 03/15/2007 11:45 PM John Dalgliesh

force 16-bytes alignement of block array, as needed by the implementation of ff_dct_sse2
patch by John Dalgliesh johnd A defyne P org

Originally committed as revision 8420 to svn://svn.ffmpeg.org/ffmpeg/trunk

6bd10f2d 03/14/2007 12:15 PM Michael Niedermayer

kill av_mallocz_static()

Originally committed as revision 8400 to svn://svn.ffmpeg.org/ffmpeg/trunk

2df6e978 03/13/2007 11:30 PM Michael Niedermayer

kill a av_mallocz_static()

Originally committed as revision 8395 to svn://svn.ffmpeg.org/ffmpeg/trunk

8fa36ae0 02/13/2007 06:26 PM François Revol

This fixes error handling for BeOS, removing the need for some ifdefs.
AVERROR_ defines are moved to avcodec.h as they are needed in there as well. Feel free to move that to avutil/common.h.
Bumped up avcodec/format version numbers as though it's binary compatible we will want to rebuild apps as error values changed....

e950141a 01/15/2007 07:41 AM Roman Shaposhnik
  • Fixing a bug with incorrect bits set in AAUX source pack * Making DV codec release a buffer on exit * Flagging accepted pix_fmts for DV encoder

Originally committed as revision 7531 to svn://svn.ffmpeg.org/ffmpeg/trunk

849f1035 12/08/2006 12:35 AM Måns Rullgård

rename always_inline to av_always_inline and move to common.h

Originally committed as revision 7256 to svn://svn.ffmpeg.org/ffmpeg/trunk

c26abfa5 10/11/2006 11:17 PM Diego Biurrun

Rename ABS macro to FFABS.

Originally committed as revision 6666 to svn://svn.ffmpeg.org/ffmpeg/trunk

b78e7197 10/07/2006 03:30 PM Diego Biurrun

Change license headers to say 'FFmpeg' instead of 'this program/this library'
and fix GPL/LGPL version mismatches.

Originally committed as revision 6577 to svn://svn.ffmpeg.org/ffmpeg/trunk

eacad59e 10/01/2006 06:19 PM Alexander Strange

Fix compilation with --disable-encoders.
patch by Alexander Strange, astrange at ithinksw dot com

Originally committed as revision 6410 to svn://svn.ffmpeg.org/ffmpeg/trunk

62bb489b 09/27/2006 07:54 PM Måns Rullgård

add some #ifdef CONFIG_ENCODERS/DECODERS

Originally committed as revision 6356 to svn://svn.ffmpeg.org/ffmpeg/trunk

3c8f30a7 09/04/2006 03:33 AM Roman Shaposhnik
  • Restructuring the division of labor between DV codec and DV format
    [ Based on a patch by Brian Brice (bbrice at newtek dot com) ]

Originally committed as revision 6161 to svn://svn.ffmpeg.org/ffmpeg/trunk

75c998a2 08/28/2006 06:46 PM Aurelien Jacobs

force usage of ALT_BITSTREAM_READER where needed

Originally committed as revision 6118 to svn://svn.ffmpeg.org/ffmpeg/trunk

56419683 03/06/2006 09:54 AM Roman Shaposhnik

I still don't think this should be here. Note: without this code DV encoder
will accept incorrect pix_fmt's and such, but decoder will work much better
with containers not setting the same attributes. It seems like there will
be a generic mechanism for checking such constraints, but if not I can always...

0b297700 03/06/2006 08:54 AM Daniel Maas

DVCPRO50 support.

Patch by Daniel Maas dmaas at maasdigital dot com

Originally committed as revision 5113 to svn://svn.ffmpeg.org/ffmpeg/trunk

40116978 02/28/2006 02:54 AM Dan Maas

Assign class 2 to most macroblocks by default, instead of a more conservative
method defined by SMPTE

Patch by Dan Maas

Originally committed as revision 5074 to svn://svn.ffmpeg.org/ffmpeg/trunk