FFmpeg
Data Structures | Macros | Enumerations | Functions
defs.h File Reference
#include <stdint.h>
#include <stdlib.h>

Go to the source code of this file.

Data Structures

struct  AVPanScan
 Pan Scan area. More...
 
struct  AVCPBProperties
 This structure describes the bitrate properties of an encoded bitstream. More...
 
struct  AVProducerReferenceTime
 This structure supplies correlation between a packet timestamp and a wall clock production time. More...
 

Macros

#define AV_INPUT_BUFFER_PADDING_SIZE   64
 
#define AV_EF_CRCCHECK   (1<<0)
 Verify checksums embedded in the bitstream (could be of either encoded or decoded data, depending on the format) and print an error message on mismatch. More...
 
#define AV_EF_BITSTREAM   (1<<1)
 detect bitstream specification deviations More...
 
#define AV_EF_BUFFER   (1<<2)
 detect improper bitstream length More...
 
#define AV_EF_EXPLODE   (1<<3)
 abort decoding on minor error detection More...
 
#define AV_EF_IGNORE_ERR   (1<<15)
 ignore errors and continue More...
 
#define AV_EF_CAREFUL   (1<<16)
 consider things that violate the spec, are fast to calculate and have not been seen in the wild as errors More...
 
#define AV_EF_COMPLIANT   (1<<17)
 consider all spec non compliances as errors More...
 
#define AV_EF_AGGRESSIVE   (1<<18)
 consider things that a sane encoder/muxer should not do as an error More...
 
#define FF_COMPLIANCE_VERY_STRICT   2
 Strictly conform to an older more strict version of the spec or reference software. More...
 
#define FF_COMPLIANCE_STRICT   1
 Strictly conform to all the things in the spec no matter what consequences. More...
 
#define FF_COMPLIANCE_NORMAL   0
 
#define FF_COMPLIANCE_UNOFFICIAL   -1
 Allow unofficial extensions. More...
 
#define FF_COMPLIANCE_EXPERIMENTAL   -2
 Allow nonstandardized experimental things. More...
 

Enumerations

enum  AVDiscard {
  AVDISCARD_NONE =-16, AVDISCARD_DEFAULT = 0, AVDISCARD_NONREF = 8, AVDISCARD_BIDIR = 16,
  AVDISCARD_NONINTRA = 24, AVDISCARD_NONKEY = 32, AVDISCARD_ALL = 48
}
 
enum  AVAudioServiceType {
  AV_AUDIO_SERVICE_TYPE_MAIN = 0, AV_AUDIO_SERVICE_TYPE_EFFECTS = 1, AV_AUDIO_SERVICE_TYPE_VISUALLY_IMPAIRED = 2, AV_AUDIO_SERVICE_TYPE_HEARING_IMPAIRED = 3,
  AV_AUDIO_SERVICE_TYPE_DIALOGUE = 4, AV_AUDIO_SERVICE_TYPE_COMMENTARY = 5, AV_AUDIO_SERVICE_TYPE_EMERGENCY = 6, AV_AUDIO_SERVICE_TYPE_VOICE_OVER = 7,
  AV_AUDIO_SERVICE_TYPE_KARAOKE = 8, AV_AUDIO_SERVICE_TYPE_NB
}
 

Functions

AVCPBPropertiesav_cpb_properties_alloc (size_t *size)
 Allocate a CPB properties structure and initialize its fields to default values. More...
 
unsigned int av_xiphlacing (unsigned char *s, unsigned int v)
 Encode extradata length to a buffer. More...
 

Detailed Description

Misc types and constants that do not belong anywhere else.

Definition in file defs.h.

Macro Definition Documentation

◆ AV_EF_CRCCHECK

#define AV_EF_CRCCHECK   (1<<0)

Verify checksums embedded in the bitstream (could be of either encoded or decoded data, depending on the format) and print an error message on mismatch.

If AV_EF_EXPLODE is also set, a mismatching checksum will result in the decoder/demuxer returning an error.

Definition at line 48 of file defs.h.

◆ AV_EF_BITSTREAM

#define AV_EF_BITSTREAM   (1<<1)

detect bitstream specification deviations

Definition at line 49 of file defs.h.

◆ AV_EF_BUFFER

#define AV_EF_BUFFER   (1<<2)

detect improper bitstream length

Definition at line 50 of file defs.h.

◆ AV_EF_EXPLODE

#define AV_EF_EXPLODE   (1<<3)

abort decoding on minor error detection

Definition at line 51 of file defs.h.

◆ AV_EF_IGNORE_ERR

#define AV_EF_IGNORE_ERR   (1<<15)

ignore errors and continue

Definition at line 53 of file defs.h.

◆ AV_EF_CAREFUL

#define AV_EF_CAREFUL   (1<<16)

consider things that violate the spec, are fast to calculate and have not been seen in the wild as errors

Definition at line 54 of file defs.h.

◆ AV_EF_COMPLIANT

#define AV_EF_COMPLIANT   (1<<17)

consider all spec non compliances as errors

Definition at line 55 of file defs.h.

◆ AV_EF_AGGRESSIVE

#define AV_EF_AGGRESSIVE   (1<<18)

consider things that a sane encoder/muxer should not do as an error

Definition at line 56 of file defs.h.

◆ FF_COMPLIANCE_VERY_STRICT

#define FF_COMPLIANCE_VERY_STRICT   2

Strictly conform to an older more strict version of the spec or reference software.

Definition at line 58 of file defs.h.

◆ FF_COMPLIANCE_STRICT

#define FF_COMPLIANCE_STRICT   1

Strictly conform to all the things in the spec no matter what consequences.

Definition at line 59 of file defs.h.

◆ FF_COMPLIANCE_NORMAL

#define FF_COMPLIANCE_NORMAL   0

Definition at line 60 of file defs.h.

◆ FF_COMPLIANCE_UNOFFICIAL

#define FF_COMPLIANCE_UNOFFICIAL   -1

Allow unofficial extensions.

Definition at line 61 of file defs.h.

◆ FF_COMPLIANCE_EXPERIMENTAL

#define FF_COMPLIANCE_EXPERIMENTAL   -2

Allow nonstandardized experimental things.

Definition at line 62 of file defs.h.

Enumeration Type Documentation

◆ AVAudioServiceType

Enumerator
AV_AUDIO_SERVICE_TYPE_MAIN 
AV_AUDIO_SERVICE_TYPE_EFFECTS 
AV_AUDIO_SERVICE_TYPE_VISUALLY_IMPAIRED 
AV_AUDIO_SERVICE_TYPE_HEARING_IMPAIRED 
AV_AUDIO_SERVICE_TYPE_DIALOGUE 
AV_AUDIO_SERVICE_TYPE_COMMENTARY 
AV_AUDIO_SERVICE_TYPE_EMERGENCY 
AV_AUDIO_SERVICE_TYPE_VOICE_OVER 
AV_AUDIO_SERVICE_TYPE_KARAOKE 
AV_AUDIO_SERVICE_TYPE_NB 

Not part of ABI.

Definition at line 79 of file defs.h.

Function Documentation

◆ av_cpb_properties_alloc()

AVCPBProperties* av_cpb_properties_alloc ( size_t *  size)

Allocate a CPB properties structure and initialize its fields to default values.

Parameters
sizeif non-NULL, the size of the allocated struct will be written here. This is useful for embedding it in side data.
Returns
the newly allocated struct or NULL on failure

Definition at line 1014 of file utils.c.

Referenced by ff_add_cpb_side_data(), and ff_mpv_encode_picture().

◆ av_xiphlacing()

unsigned int av_xiphlacing ( unsigned char *  s,
unsigned int  v 
)

Encode extradata length to a buffer.

Used by xiph codecs.

Parameters
sbuffer to write to; must be at least (v/255+1) bytes long
vsize of extradata in bytes
Returns
number of bytes written to the buffer.

Definition at line 863 of file utils.c.

Referenced by fixup_vorbis_headers(), libvorbis_encode_init(), parse_packed_headers(), put_main_header(), and track_header().