# Ap4SampleDescription.h File Reference

`#include "Ap4Types.h"`
`#include "Ap4Atom.h"`
`#include "Ap4EsDescriptor.h"`
`#include "Ap4EsdsAtom.h"`

Go to the source code of this file.

## Classes
class | AP4_SampleDescription
class | AP4_AudioSampleDescription
class | AP4_VideoSampleDescription
class | AP4_GenericAudioSampleDescription
class | AP4_GenericVideoSampleDescription
class | AP4_MpegSampleDescription
class | AP4_MpegSystemSampleDescription
class | AP4_MpegAudioSampleDescription
class | AP4_MpegVideoSampleDescription
## Defines
#define | AP4_SAMPLE_FORMAT_MP4A AP4_ATOM_TYPE_MP4A
#define | AP4_SAMPLE_FORMAT_MP4V AP4_ATOM_TYPE_MP4V
#define | AP4_SAMPLE_FORMAT_AVC1 AP4_ATOM_TYPE_AVC1
#define | AP4_SAMPLE_FORMAT_ALAC AP4_ATOM_TYPE_ALAC
## Variables
const AP4_MpegSampleDescription::StreamType | AP4_STREAM_TYPE_FORBIDDEN = 0x00
const AP4_MpegSampleDescription::StreamType | AP4_STREAM_TYPE_OD = 0x01
const AP4_MpegSampleDescription::StreamType | AP4_STREAM_TYPE_CR = 0x02
const AP4_MpegSampleDescription::StreamType | AP4_STREAM_TYPE_BIFS = 0x03
const AP4_MpegSampleDescription::StreamType | AP4_STREAM_TYPE_VISUAL = 0x04
const AP4_MpegSampleDescription::StreamType | AP4_STREAM_TYPE_AUDIO = 0x05
const AP4_MpegSampleDescription::StreamType | AP4_STREAM_TYPE_MPEG7 = 0x06
const AP4_MpegSampleDescription::StreamType | AP4_STREAM_TYPE_IPMP = 0x07
const AP4_MpegSampleDescription::StreamType | AP4_STREAM_TYPE_OCI = 0x08
const AP4_MpegSampleDescription::StreamType | AP4_STREAM_TYPE_MPEGJ = 0x09
const AP4_MpegSampleDescription::StreamType | AP4_STREAM_TYPE_TEXT = 0x0D
const AP4_MpegSampleDescription::OTI | AP4_OTI_MPEG4_SYSTEM = 0x01
const AP4_MpegSampleDescription::OTI | AP4_OTI_MPEG4_SYSTEM_COR = 0x02
const AP4_MpegSampleDescription::OTI | AP4_OTI_MPEG4_TEXT = 0x08
const AP4_MpegSampleDescription::OTI | AP4_OTI_MPEG4_VISUAL = 0x20
const AP4_MpegSampleDescription::OTI | AP4_OTI_MPEG4_AUDIO = 0x40
const AP4_MpegSampleDescription::OTI | AP4_OTI_MPEG2_VISUAL_SIMPLE = 0x60
const AP4_MpegSampleDescription::OTI | AP4_OTI_MPEG2_VISUAL_MAIN = 0x61
const AP4_MpegSampleDescription::OTI | AP4_OTI_MPEG2_VISUAL_SNR = 0x62
const AP4_MpegSampleDescription::OTI | AP4_OTI_MPEG2_VISUAL_SPATIAL = 0x63
const AP4_MpegSampleDescription::OTI | AP4_OTI_MPEG2_VISUAL_HIGH = 0x64
const AP4_MpegSampleDescription::OTI | AP4_OTI_MPEG2_VISUAL_422 = 0x65
const AP4_MpegSampleDescription::OTI | AP4_OTI_MPEG2_AAC_AUDIO_MAIN = 0x66
const AP4_MpegSampleDescription::OTI | AP4_OTI_MPEG2_AAC_AUDIO_LC = 0x67
const AP4_MpegSampleDescription::OTI | AP4_OTI_MPEG2_AAC_AUDIO_SSRP = 0x68
const AP4_MpegSampleDescription::OTI | AP4_OTI_MPEG2_PART3_AUDIO = 0x69
const AP4_MpegSampleDescription::OTI | AP4_OTI_MPEG1_VISUAL = 0x6A
const AP4_MpegSampleDescription::OTI | AP4_OTI_MPEG1_AUDIO = 0x6B
const AP4_MpegSampleDescription::OTI | AP4_OTI_JPEG = 0x6C
const AP4_MpegAudioSampleDescription::Mpeg4AudioObjectType | AP4_MPEG4_AUDIO_OBJECT_TYPE_AAC_MAIN = 1
| AAC Main Profile.
const AP4_MpegAudioSampleDescription::Mpeg4AudioObjectType | AP4_MPEG4_AUDIO_OBJECT_TYPE_AAC_LC = 2
| AAC Low Complexity.
const AP4_MpegAudioSampleDescription::Mpeg4AudioObjectType | AP4_MPEG4_AUDIO_OBJECT_TYPE_AAC_SSR = 3
| AAC Scalable Sample Rate.
const AP4_MpegAudioSampleDescription::Mpeg4AudioObjectType | AP4_MPEG4_AUDIO_OBJECT_TYPE_AAC_LTP = 4
| AAC Long Term Predictor.
const AP4_MpegAudioSampleDescription::Mpeg4AudioObjectType | AP4_MPEG4_AUDIO_OBJECT_TYPE_SBR = 5
| Spectral Band Replication.
const AP4_MpegAudioSampleDescription::Mpeg4AudioObjectType | AP4_MPEG4_AUDIO_OBJECT_TYPE_AAC_SCALABLE = 6
| AAC Scalable.
const AP4_MpegAudioSampleDescription::Mpeg4AudioObjectType | AP4_MPEG4_AUDIO_OBJECT_TYPE_TWINVQ = 7
| Twin VQ.
const AP4_MpegAudioSampleDescription::Mpeg4AudioObjectType | AP4_MPEG4_AUDIO_OBJECT_TYPE_ER_AAC_LC = 17
| Error Resilient AAC Low Complexity.
const AP4_MpegAudioSampleDescription::Mpeg4AudioObjectType | AP4_MPEG4_AUDIO_OBJECT_TYPE_ER_AAC_LTP = 19
| Error Resilient AAC Long Term Prediction.
const AP4_MpegAudioSampleDescription::Mpeg4AudioObjectType | AP4_MPEG4_AUDIO_OBJECT_TYPE_ER_AAC_SCALABLE = 20
| Error Resilient AAC Scalable.
const AP4_MpegAudioSampleDescription::Mpeg4AudioObjectType | AP4_MPEG4_AUDIO_OBJECT_TYPE_ER_TWINVQ = 21
| Error Resilient Twin VQ.
const AP4_MpegAudioSampleDescription::Mpeg4AudioObjectType | AP4_MPEG4_AUDIO_OBJECT_TYPE_ER_BSAC = 22
| Error Resilient Bit Sliced Arithmetic Coding.
const AP4_MpegAudioSampleDescription::Mpeg4AudioObjectType | AP4_MPEG4_AUDIO_OBJECT_TYPE_ER_AAC_LD = 23
| Error Resilient AAC Low Delay.
const AP4_MpegAudioSampleDescription::Mpeg4AudioObjectType | AP4_MPEG4_AUDIO_OBJECT_TYPE_LAYER_1 = 32
| MPEG Layer 1.
const AP4_MpegAudioSampleDescription::Mpeg4AudioObjectType | AP4_MPEG4_AUDIO_OBJECT_TYPE_LAYER_2 = 33
| MPEG Layer 2.
const AP4_MpegAudioSampleDescription::Mpeg4AudioObjectType | AP4_MPEG4_AUDIO_OBJECT_TYPE_LAYER_3 = 34
| MPEG Layer 3.

## Define Documentation

#define AP4_SAMPLE_FORMAT_ALAC AP4_ATOM_TYPE_ALAC

Definition at line 52 of file Ap4SampleDescription.h.

#define AP4_SAMPLE_FORMAT_AVC1 AP4_ATOM_TYPE_AVC1

Definition at line 51 of file Ap4SampleDescription.h.

#define AP4_SAMPLE_FORMAT_MP4A AP4_ATOM_TYPE_MP4A

Definition at line 49 of file Ap4SampleDescription.h.

#define AP4_SAMPLE_FORMAT_MP4V AP4_ATOM_TYPE_MP4V

Definition at line 50 of file Ap4SampleDescription.h.

## Variable Documentation

const AP4_MpegAudioSampleDescription::Mpeg4AudioObjectType AP4_MPEG4_AUDIO_OBJECT_TYPE_AAC_LC = 2

AAC Low Complexity.

Definition at line 345 of file Ap4SampleDescription.h.

const AP4_MpegAudioSampleDescription::Mpeg4AudioObjectType AP4_MPEG4_AUDIO_OBJECT_TYPE_AAC_LTP = 4

AAC Long Term Predictor.

Definition at line 347 of file Ap4SampleDescription.h.

const AP4_MpegAudioSampleDescription::Mpeg4AudioObjectType AP4_MPEG4_AUDIO_OBJECT_TYPE_AAC_MAIN = 1

AAC Main Profile.

Definition at line 344 of file Ap4SampleDescription.h.

const AP4_MpegAudioSampleDescription::Mpeg4AudioObjectType AP4_MPEG4_AUDIO_OBJECT_TYPE_AAC_SCALABLE = 6

AAC Scalable.

Definition at line 349 of file Ap4SampleDescription.h.

const AP4_MpegAudioSampleDescription::Mpeg4AudioObjectType AP4_MPEG4_AUDIO_OBJECT_TYPE_AAC_SSR = 3

AAC Scalable Sample Rate.

Definition at line 346 of file Ap4SampleDescription.h.

const AP4_MpegAudioSampleDescription::Mpeg4AudioObjectType AP4_MPEG4_AUDIO_OBJECT_TYPE_ER_AAC_LC = 17

Error Resilient AAC Low Complexity.

Definition at line 351 of file Ap4SampleDescription.h.

const AP4_MpegAudioSampleDescription::Mpeg4AudioObjectType AP4_MPEG4_AUDIO_OBJECT_TYPE_ER_AAC_LD = 23

Error Resilient AAC Low Delay.

Definition at line 356 of file Ap4SampleDescription.h.

const AP4_MpegAudioSampleDescription::Mpeg4AudioObjectType AP4_MPEG4_AUDIO_OBJECT_TYPE_ER_AAC_LTP = 19

Error Resilient AAC Long Term Prediction.

Definition at line 352 of file Ap4SampleDescription.h.

const AP4_MpegAudioSampleDescription::Mpeg4AudioObjectType AP4_MPEG4_AUDIO_OBJECT_TYPE_ER_AAC_SCALABLE = 20

Error Resilient AAC Scalable.

Definition at line 353 of file Ap4SampleDescription.h.

const AP4_MpegAudioSampleDescription::Mpeg4AudioObjectType AP4_MPEG4_AUDIO_OBJECT_TYPE_ER_BSAC = 22

Error Resilient Bit Sliced Arithmetic Coding.

Definition at line 355 of file Ap4SampleDescription.h.

const AP4_MpegAudioSampleDescription::Mpeg4AudioObjectType AP4_MPEG4_AUDIO_OBJECT_TYPE_ER_TWINVQ = 21

Error Resilient Twin VQ.

Definition at line 354 of file Ap4SampleDescription.h.

const AP4_MpegAudioSampleDescription::Mpeg4AudioObjectType AP4_MPEG4_AUDIO_OBJECT_TYPE_LAYER_1 = 32

MPEG Layer 1.

Definition at line 357 of file Ap4SampleDescription.h.

const AP4_MpegAudioSampleDescription::Mpeg4AudioObjectType AP4_MPEG4_AUDIO_OBJECT_TYPE_LAYER_2 = 33

MPEG Layer 2.

Definition at line 358 of file Ap4SampleDescription.h.

const AP4_MpegAudioSampleDescription::Mpeg4AudioObjectType AP4_MPEG4_AUDIO_OBJECT_TYPE_LAYER_3 = 34

MPEG Layer 3.

Definition at line 359 of file Ap4SampleDescription.h.

const AP4_MpegAudioSampleDescription::Mpeg4AudioObjectType AP4_MPEG4_AUDIO_OBJECT_TYPE_SBR = 5

Spectral Band Replication.

Definition at line 348 of file Ap4SampleDescription.h.

const AP4_MpegAudioSampleDescription::Mpeg4AudioObjectType AP4_MPEG4_AUDIO_OBJECT_TYPE_TWINVQ = 7

Twin VQ.

Definition at line 350 of file Ap4SampleDescription.h.

const AP4_MpegSampleDescription::OTI AP4_OTI_JPEG = 0x6C

Definition at line 342 of file Ap4SampleDescription.h.

const AP4_MpegSampleDescription::OTI AP4_OTI_MPEG1_AUDIO = 0x6B

Definition at line 341 of file Ap4SampleDescription.h.

const AP4_MpegSampleDescription::OTI AP4_OTI_MPEG1_VISUAL = 0x6A

Definition at line 340 of file Ap4SampleDescription.h.

const AP4_MpegSampleDescription::OTI AP4_OTI_MPEG2_AAC_AUDIO_LC = 0x67

Definition at line 337 of file Ap4SampleDescription.h.

const AP4_MpegSampleDescription::OTI AP4_OTI_MPEG2_AAC_AUDIO_MAIN = 0x66

Definition at line 336 of file Ap4SampleDescription.h.

const AP4_MpegSampleDescription::OTI AP4_OTI_MPEG2_AAC_AUDIO_SSRP = 0x68

Definition at line 338 of file Ap4SampleDescription.h.

const AP4_MpegSampleDescription::OTI AP4_OTI_MPEG2_PART3_AUDIO = 0x69

Definition at line 339 of file Ap4SampleDescription.h.

const AP4_MpegSampleDescription::OTI AP4_OTI_MPEG2_VISUAL_422 = 0x65

Definition at line 335 of file Ap4SampleDescription.h.

const AP4_MpegSampleDescription::OTI AP4_OTI_MPEG2_VISUAL_HIGH = 0x64

Definition at line 334 of file Ap4SampleDescription.h.

const AP4_MpegSampleDescription::OTI AP4_OTI_MPEG2_VISUAL_MAIN = 0x61

Definition at line 331 of file Ap4SampleDescription.h.

const AP4_MpegSampleDescription::OTI AP4_OTI_MPEG2_VISUAL_SIMPLE = 0x60

Definition at line 330 of file Ap4SampleDescription.h.

const AP4_MpegSampleDescription::OTI AP4_OTI_MPEG2_VISUAL_SNR = 0x62

Definition at line 332 of file Ap4SampleDescription.h.

const AP4_MpegSampleDescription::OTI AP4_OTI_MPEG2_VISUAL_SPATIAL = 0x63

Definition at line 333 of file Ap4SampleDescription.h.

const AP4_MpegSampleDescription::OTI AP4_OTI_MPEG4_AUDIO = 0x40

Definition at line 329 of file Ap4SampleDescription.h.

const AP4_MpegSampleDescription::OTI AP4_OTI_MPEG4_SYSTEM = 0x01

Definition at line 325 of file Ap4SampleDescription.h.

const AP4_MpegSampleDescription::OTI AP4_OTI_MPEG4_SYSTEM_COR = 0x02

Definition at line 326 of file Ap4SampleDescription.h.

const AP4_MpegSampleDescription::OTI AP4_OTI_MPEG4_TEXT = 0x08

Definition at line 327 of file Ap4SampleDescription.h.

const AP4_MpegSampleDescription::OTI AP4_OTI_MPEG4_VISUAL = 0x20

Definition at line 328 of file Ap4SampleDescription.h.

const AP4_MpegSampleDescription::StreamType AP4_STREAM_TYPE_AUDIO = 0x05

Definition at line 318 of file Ap4SampleDescription.h.

const AP4_MpegSampleDescription::StreamType AP4_STREAM_TYPE_BIFS = 0x03

Definition at line 316 of file Ap4SampleDescription.h.

const AP4_MpegSampleDescription::StreamType AP4_STREAM_TYPE_CR = 0x02

Definition at line 315 of file Ap4SampleDescription.h.

const AP4_MpegSampleDescription::StreamType AP4_STREAM_TYPE_FORBIDDEN = 0x00

Definition at line 313 of file Ap4SampleDescription.h.

const AP4_MpegSampleDescription::StreamType AP4_STREAM_TYPE_IPMP = 0x07

Definition at line 320 of file Ap4SampleDescription.h.

const AP4_MpegSampleDescription::StreamType AP4_STREAM_TYPE_MPEG7 = 0x06

Definition at line 319 of file Ap4SampleDescription.h.

const AP4_MpegSampleDescription::StreamType AP4_STREAM_TYPE_MPEGJ = 0x09

Definition at line 322 of file Ap4SampleDescription.h.

const AP4_MpegSampleDescription::StreamType AP4_STREAM_TYPE_OCI = 0x08

Definition at line 321 of file Ap4SampleDescription.h.

const AP4_MpegSampleDescription::StreamType AP4_STREAM_TYPE_OD = 0x01

Definition at line 314 of file Ap4SampleDescription.h.

const AP4_MpegSampleDescription::StreamType AP4_STREAM_TYPE_TEXT = 0x0D

Definition at line 323 of file Ap4SampleDescription.h.

const AP4_MpegSampleDescription::StreamType AP4_STREAM_TYPE_VISUAL = 0x04

Definition at line 317 of file Ap4SampleDescription.h.