FFmpeg
Loading...
Searching...
No Matches
packet_internal.h
Go to the documentation of this file.
1/*
2 * This file is part of FFmpeg.
3 *
4 * FFmpeg is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
8 *
9 * FFmpeg is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with FFmpeg; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17 */
18
19#ifndef AVCODEC_PACKET_INTERNAL_H
20#define AVCODEC_PACKET_INTERNAL_H
21
22#include <stdint.h>
23
24#include "packet.h"
25
26#define AVPACKET_IS_EMPTY(pkt) (!(pkt)->data && !(pkt)->side_data_elems)
27
29
30/**
31 * The handle of each side data type: a short, stable name made of lower case
32 * letters, digits and underscores, for use where a name has to be typed, such
33 * as in the options of a filter. HANDLE(type, handle) is called with the type
34 * without its AV_PKT_DATA_ prefix.
35 *
36 * Every type below AV_PKT_DATA_NB has one, which the packet_side_data_handle
37 * test checks. A handle that has been released must not change.
38 */
39#define FF_PACKET_SIDE_DATA_HANDLES(HANDLE) \
40 HANDLE(PALETTE, "palette") \
41 HANDLE(NEW_EXTRADATA, "new_extradata") \
42 HANDLE(PARAM_CHANGE, "param_change") \
43 HANDLE(H263_MB_INFO, "h263_mb_info") \
44 HANDLE(REPLAYGAIN, "replaygain") \
45 HANDLE(DISPLAYMATRIX, "displaymatrix") \
46 HANDLE(STEREO3D, "stereo3d") \
47 HANDLE(AUDIO_SERVICE_TYPE, "audio_service_type") \
48 HANDLE(QUALITY_STATS, "quality_stats") \
49 HANDLE(FALLBACK_TRACK, "fallback_track") \
50 HANDLE(CPB_PROPERTIES, "cpb_properties") \
51 HANDLE(SKIP_SAMPLES, "skip_samples") \
52 HANDLE(JP_DUALMONO, "jp_dualmono") \
53 HANDLE(STRINGS_METADATA, "strings_metadata") \
54 HANDLE(SUBTITLE_POSITION, "subtitle_position") \
55 HANDLE(MATROSKA_BLOCKADDITIONAL, "matroska_blockadditional") \
56 HANDLE(WEBVTT_IDENTIFIER, "webvtt_identifier") \
57 HANDLE(WEBVTT_SETTINGS, "webvtt_settings") \
58 HANDLE(METADATA_UPDATE, "metadata_update") \
59 HANDLE(MPEGTS_STREAM_ID, "mpegts_stream_id") \
60 HANDLE(MASTERING_DISPLAY_METADATA, "mastering_display_metadata") \
61 HANDLE(CONTENT_LIGHT_LEVEL, "content_light_level") \
62 HANDLE(SPHERICAL, "spherical") \
63 HANDLE(A53_CC, "a53_cc") \
64 HANDLE(ENCRYPTION_INIT_INFO, "encryption_init_info") \
65 HANDLE(ENCRYPTION_INFO, "encryption_info") \
66 HANDLE(AFD, "afd") \
67 HANDLE(PRFT, "prft") \
68 HANDLE(ICC_PROFILE, "icc_profile") \
69 HANDLE(DOVI_CONF, "dovi_conf") \
70 HANDLE(S12M_TIMECODE, "s12m_timecode") \
71 HANDLE(DYNAMIC_HDR10_PLUS, "hdr10_plus") \
72 HANDLE(DYNAMIC_HDR_SMPTE_2094_APP5, "hdr_smpte_2094_app5") \
73 HANDLE(AMBIENT_VIEWING_ENVIRONMENT, "ambient_viewing_environment") \
74 HANDLE(IAMF_MIX_GAIN_PARAM, "iamf_mix_gain_param") \
75 HANDLE(IAMF_DEMIXING_INFO_PARAM, "iamf_demixing_info_param") \
76 HANDLE(IAMF_RECON_GAIN_INFO_PARAM, "iamf_recon_gain_info_param") \
77 HANDLE(FRAME_CROPPING, "frame_cropping") \
78 HANDLE(LCEVC, "lcevc") \
79 HANDLE(3D_REFERENCE_DISPLAYS, "3d_reference_displays") \
80 HANDLE(RTCP_SR, "rtcp_sr") \
81 HANDLE(EXIF, "exif") \
82 HANDLE(HEVC_CONF, "hevc_conf") \
83 HANDLE(GAIN_MAP_PARAMS, "gain_map_params")
84
85#endif // AVCODEC_PACKET_INTERNAL_H
long long int64_t
Definition coverity.c:34
static AVPacket * pkt
int ff_side_data_set_prft(AVPacket *pkt, int64_t timestamp)
Definition packet.c:549
This structure stores compressed data.
Definition packet.h:587