Browse Source

lavc: add lossy/lossless codec properties.

tags/n1.0
Anton Khirnov 13 years ago
parent
commit
a2318326f1
4 changed files with 313 additions and 66 deletions
  1. +4
    -0
      doc/APIchanges
  2. +10
    -0
      libavcodec/avcodec.h
  3. +298
    -65
      libavcodec/codec_desc.c
  4. +1
    -1
      libavcodec/version.h

+ 4
- 0
doc/APIchanges View File

@@ -13,6 +13,10 @@ libavutil: 2011-04-18

API changes, most recent first:

2012-xx-xx - xxxxxxx - lavc 54.26.1 - avcodec.h
Add codec descriptor properties AV_CODEC_PROP_LOSSY and
AV_CODEC_PROP_LOSSLESS.

2012-08-18 - lavc 54.26 - avcodec.h
Add codec descriptors for accessing codec properties without having
to refer to a specific decoder or encoder.


+ 10
- 0
libavcodec/avcodec.h View File

@@ -467,6 +467,16 @@ typedef struct AVCodecDescriptor {
* Video codecs only.
*/
#define AV_CODEC_PROP_INTRA_ONLY (1 << 0)
/**
* Codec supports lossy compression. Audio and video codecs only.
* @note a codec may support both lossy and lossless
* compression modes
*/
#define AV_CODEC_PROP_LOSSY (1 << 1)
/**
* Codec supports lossless compression. Audio and video codecs only.
*/
#define AV_CODEC_PROP_LOSSLESS (1 << 2)

#if FF_API_OLD_DECODE_AUDIO
/* in bytes */


+ 298
- 65
libavcodec/codec_desc.c
File diff suppressed because it is too large
View File


+ 1
- 1
libavcodec/version.h View File

@@ -28,7 +28,7 @@

#define LIBAVCODEC_VERSION_MAJOR 54
#define LIBAVCODEC_VERSION_MINOR 26
#define LIBAVCODEC_VERSION_MICRO 0
#define LIBAVCODEC_VERSION_MICRO 1

#define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \
LIBAVCODEC_VERSION_MINOR, \


Loading…
Cancel
Save