FFmpeg
Macros | Functions
cbs_h265_syntax_template.c File Reference

Go to the source code of this file.

Macros

#define profile_compatible(x)
 
#define profile_compatible(x)
 
#define SEI_TYPE_CHECK_VALID(name, prefix_valid, suffix_valid)
 
#define SEI_TYPE_N(type, prefix_valid, suffix_valid, name)
 
#define SEI_TYPE_S(type, prefix_valid, suffix_valid, name)
 
#define SEI_TYPE_E(type, prefix_valid, suffix_valid, name)
 

Functions

static int FUNC() rbsp_trailing_bits (CodedBitstreamContext *ctx, RWContext *rw)
 
static int FUNC() nal_unit_header (CodedBitstreamContext *ctx, RWContext *rw, H265RawNALUnitHeader *current, int expected_nal_unit_type)
 
static int FUNC() byte_alignment (CodedBitstreamContext *ctx, RWContext *rw)
 
static int FUNC() extension_data (CodedBitstreamContext *ctx, RWContext *rw, H265RawExtensionData *current)
 
static int FUNC() profile_tier_level (CodedBitstreamContext *ctx, RWContext *rw, H265RawProfileTierLevel *current, int profile_present_flag, int max_num_sub_layers_minus1)
 
static int FUNC() sub_layer_hrd_parameters (CodedBitstreamContext *ctx, RWContext *rw, H265RawHRDParameters *hrd, int nal, int sub_layer_id)
 
static int FUNC() hrd_parameters (CodedBitstreamContext *ctx, RWContext *rw, H265RawHRDParameters *current, int common_inf_present_flag, int max_num_sub_layers_minus1)
 
static int FUNC() vui_parameters (CodedBitstreamContext *ctx, RWContext *rw, H265RawVUI *current, const H265RawSPS *sps)
 
static int FUNC() vps (CodedBitstreamContext *ctx, RWContext *rw, H265RawVPS *current)
 
static int FUNC() st_ref_pic_set (CodedBitstreamContext *ctx, RWContext *rw, H265RawSTRefPicSet *current, int st_rps_idx, const H265RawSPS *sps)
 
static int FUNC() scaling_list_data (CodedBitstreamContext *ctx, RWContext *rw, H265RawScalingList *current)
 
static int FUNC() sps_range_extension (CodedBitstreamContext *ctx, RWContext *rw, H265RawSPS *current)
 
static int FUNC() sps_scc_extension (CodedBitstreamContext *ctx, RWContext *rw, H265RawSPS *current)
 
static int FUNC() vui_parameters_default (CodedBitstreamContext *ctx, RWContext *rw, H265RawVUI *current, H265RawSPS *sps)
 
static int FUNC() sps (CodedBitstreamContext *ctx, RWContext *rw, H265RawSPS *current)
 
static int FUNC() pps_range_extension (CodedBitstreamContext *ctx, RWContext *rw, H265RawPPS *current)
 
static int FUNC() pps_scc_extension (CodedBitstreamContext *ctx, RWContext *rw, H265RawPPS *current)
 
static int FUNC() pps (CodedBitstreamContext *ctx, RWContext *rw, H265RawPPS *current)
 
static int FUNC() aud (CodedBitstreamContext *ctx, RWContext *rw, H265RawAUD *current)
 
static int FUNC() ref_pic_lists_modification (CodedBitstreamContext *ctx, RWContext *rw, H265RawSliceHeader *current, unsigned int num_pic_total_curr)
 
static int FUNC() pred_weight_table (CodedBitstreamContext *ctx, RWContext *rw, H265RawSliceHeader *current)
 
static int FUNC() slice_segment_header (CodedBitstreamContext *ctx, RWContext *rw, H265RawSliceHeader *current)
 
static int FUNC() sei_buffering_period (CodedBitstreamContext *ctx, RWContext *rw, H265RawSEIBufferingPeriod *current, uint32_t *payload_size, int *more_data)
 
static int FUNC() sei_pic_timing (CodedBitstreamContext *ctx, RWContext *rw, H265RawSEIPicTiming *current)
 
static int FUNC() sei_pan_scan_rect (CodedBitstreamContext *ctx, RWContext *rw, H265RawSEIPanScanRect *current)
 
static int FUNC() sei_user_data_registered (CodedBitstreamContext *ctx, RWContext *rw, H265RawSEIUserDataRegistered *current, uint32_t *payload_size)
 
static int FUNC() sei_user_data_unregistered (CodedBitstreamContext *ctx, RWContext *rw, H265RawSEIUserDataUnregistered *current, uint32_t *payload_size)
 
static int FUNC() sei_recovery_point (CodedBitstreamContext *ctx, RWContext *rw, H265RawSEIRecoveryPoint *current)
 
static int FUNC() sei_display_orientation (CodedBitstreamContext *ctx, RWContext *rw, H265RawSEIDisplayOrientation *current)
 
static int FUNC() sei_active_parameter_sets (CodedBitstreamContext *ctx, RWContext *rw, H265RawSEIActiveParameterSets *current)
 
static int FUNC() sei_decoded_picture_hash (CodedBitstreamContext *ctx, RWContext *rw, H265RawSEIDecodedPictureHash *current)
 
static int FUNC() sei_time_code (CodedBitstreamContext *ctx, RWContext *rw, H265RawSEITimeCode *current)
 
static int FUNC() sei_mastering_display (CodedBitstreamContext *ctx, RWContext *rw, H265RawSEIMasteringDisplayColourVolume *current)
 
static int FUNC() sei_content_light_level (CodedBitstreamContext *ctx, RWContext *rw, H265RawSEIContentLightLevelInfo *current)
 
static int FUNC() sei_alternative_transfer_characteristics (CodedBitstreamContext *ctx, RWContext *rw, H265RawSEIAlternativeTransferCharacteristics *current)
 
static int FUNC() sei_alpha_channel_info (CodedBitstreamContext *ctx, RWContext *rw, H265RawSEIAlphaChannelInfo *current)
 
static int FUNC() payload_extension (CodedBitstreamContext *ctx, RWContext *rw, H265RawExtensionData *current, uint32_t payload_size, int cur_pos)
 
static int FUNC() sei_payload (CodedBitstreamContext *ctx, RWContext *rw, H265RawSEIPayload *current, int prefix)
 
static int FUNC() sei (CodedBitstreamContext *ctx, RWContext *rw, H265RawSEI *current, int prefix)
 

Macro Definition Documentation

#define profile_compatible (   x)
Value:
(current->general_profile_idc == (x) || \
current->general_profile_compatibility_flag[x])

Referenced by profile_tier_level().

#define profile_compatible (   x)
Value:
(current->sub_layer_profile_idc[i] == (x) || \
current->sub_layer_profile_compatibility_flag[i][x])
int i
Definition: input.c:406
#define SEI_TYPE_CHECK_VALID (   name,
  prefix_valid,
  suffix_valid 
)
Value:
do { \
if (prefix && !prefix_valid) { \
av_log(ctx->log_ctx, AV_LOG_ERROR, "SEI type %s invalid " \
"as prefix SEI!\n", #name); \
} \
if (!prefix && !suffix_valid) { \
av_log(ctx->log_ctx, AV_LOG_ERROR, "SEI type %s invalid " \
"as suffix SEI!\n", #name); \
} \
} while (0)
#define AVERROR_INVALIDDATA
Invalid data found when processing input.
Definition: error.h:59
#define av_log(a,...)
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
Definition: log.h:194
AVFormatContext * ctx
Definition: movenc.c:48
if(ret)
these buffered frames must be flushed immediately if a new input produces new the filter must not call request_frame to get more It must just process the frame or queue it The task of requesting more frames is left to the filter s request_frame method or the application If a filter has several the filter must be ready for frames arriving randomly on any input any filter with several inputs will most likely require some kind of queuing mechanism It is perfectly acceptable to have a limited queue and to drop frames when the inputs are too unbalanced request_frame For filters that do not use the this method is called when a frame is wanted on an output For a it should directly call filter_frame on the corresponding output For a if there are queued frames already one of these frames should be pushed If the filter should request a frame on one of its repeatedly until at least one frame has been pushed Return or at least make progress towards producing a it should return
const char * name
Definition: opengl_enc.c:102
#define SEI_TYPE_N (   type,
  prefix_valid,
  suffix_valid,
  name 
)
Value:
case HEVC_SEI_TYPE_ ## type: \
SEI_TYPE_CHECK_VALID(name, prefix_valid, suffix_valid); \
CHECK(FUNC(sei_ ## name)(ctx, rw, &current->payload.name)); \
break
GLint GLenum type
Definition: opengl_enc.c:104
#define SEI_TYPE_CHECK_VALID(name, prefix_valid, suffix_valid)
CHECK(-1) CHECK(-2)}}}}CHECK(1) CHECK(2)}}}}}if(diff0+diff1 > 0) temp-
#define FUNC(a)
AVFormatContext * ctx
Definition: movenc.c:48
const char * name
Definition: opengl_enc.c:102

Referenced by sei_payload().

#define SEI_TYPE_S (   type,
  prefix_valid,
  suffix_valid,
  name 
)
Value:
case HEVC_SEI_TYPE_ ## type: \
SEI_TYPE_CHECK_VALID(name, prefix_valid, suffix_valid); \
CHECK(FUNC(sei_ ## name)(ctx, rw, &current->payload.name, \
&current->payload_size)); \
break
GLint GLenum type
Definition: opengl_enc.c:104
#define SEI_TYPE_CHECK_VALID(name, prefix_valid, suffix_valid)
CHECK(-1) CHECK(-2)}}}}CHECK(1) CHECK(2)}}}}}if(diff0+diff1 > 0) temp-
#define FUNC(a)
AVFormatContext * ctx
Definition: movenc.c:48
const char * name
Definition: opengl_enc.c:102

Referenced by sei_payload().

#define SEI_TYPE_E (   type,
  prefix_valid,
  suffix_valid,
  name 
)
Value:
case HEVC_SEI_TYPE_ ## type: \
SEI_TYPE_CHECK_VALID(name, prefix_valid, suffix_valid); \
CHECK(FUNC(sei_ ## name)(ctx, rw, &current->payload.name, \
&current->payload_size, \
&more_data)); \
break
GLint GLenum type
Definition: opengl_enc.c:104
#define SEI_TYPE_CHECK_VALID(name, prefix_valid, suffix_valid)
CHECK(-1) CHECK(-2)}}}}CHECK(1) CHECK(2)}}}}}if(diff0+diff1 > 0) temp-
#define FUNC(a)
AVFormatContext * ctx
Definition: movenc.c:48
const char * name
Definition: opengl_enc.c:102

Referenced by sei_payload().

Function Documentation

static int FUNC() rbsp_trailing_bits ( CodedBitstreamContext ctx,
RWContext rw 
)
static

Definition at line 19 of file cbs_h265_syntax_template.c.

Referenced by aud(), pps(), sei(), sps(), and vps().

static int FUNC() nal_unit_header ( CodedBitstreamContext ctx,
RWContext rw,
H265RawNALUnitHeader current,
int  expected_nal_unit_type 
)
static

Definition at line 30 of file cbs_h265_syntax_template.c.

Referenced by aud(), pps(), sei(), slice_segment_header(), sps(), and vps().

static int FUNC() byte_alignment ( CodedBitstreamContext ctx,
RWContext rw 
)
static
static int FUNC() extension_data ( CodedBitstreamContext ctx,
RWContext rw,
H265RawExtensionData current 
)
static

Definition at line 61 of file cbs_h265_syntax_template.c.

Referenced by cbs_mpeg2_read_unit(), cbs_mpeg2_write_header(), pps(), sps(), and vps().

static int FUNC() profile_tier_level ( CodedBitstreamContext ctx,
RWContext rw,
H265RawProfileTierLevel current,
int  profile_present_flag,
int  max_num_sub_layers_minus1 
)
static

Definition at line 88 of file cbs_h265_syntax_template.c.

Referenced by sps(), and vps().

static int FUNC() sub_layer_hrd_parameters ( CodedBitstreamContext ctx,
RWContext rw,
H265RawHRDParameters hrd,
int  nal,
int  sub_layer_id 
)
static

Definition at line 229 of file cbs_h265_syntax_template.c.

Referenced by hrd_parameters().

static int FUNC() hrd_parameters ( CodedBitstreamContext ctx,
RWContext rw,
H265RawHRDParameters current,
int  common_inf_present_flag,
int  max_num_sub_layers_minus1 
)
static

Definition at line 254 of file cbs_h265_syntax_template.c.

Referenced by vps(), and vui_parameters().

static int FUNC() vui_parameters ( CodedBitstreamContext ctx,
RWContext rw,
H265RawVUI current,
const H265RawSPS sps 
)
static

Definition at line 319 of file cbs_h265_syntax_template.c.

Referenced by sps().

static int FUNC() vps ( CodedBitstreamContext ctx,
RWContext rw,
H265RawVPS current 
)
static
static int FUNC() st_ref_pic_set ( CodedBitstreamContext ctx,
RWContext rw,
H265RawSTRefPicSet current,
int  st_rps_idx,
const H265RawSPS sps 
)
static

Definition at line 513 of file cbs_h265_syntax_template.c.

Referenced by slice_segment_header(), and sps().

static int FUNC() scaling_list_data ( CodedBitstreamContext ctx,
RWContext rw,
H265RawScalingList current 
)
static

Definition at line 668 of file cbs_h265_syntax_template.c.

Referenced by pps(), and sps().

static int FUNC() sps_range_extension ( CodedBitstreamContext ctx,
RWContext rw,
H265RawSPS current 
)
static

Definition at line 699 of file cbs_h265_syntax_template.c.

Referenced by sps().

static int FUNC() sps_scc_extension ( CodedBitstreamContext ctx,
RWContext rw,
H265RawSPS current 
)
static

Definition at line 717 of file cbs_h265_syntax_template.c.

Referenced by sps().

static int FUNC() vui_parameters_default ( CodedBitstreamContext ctx,
RWContext rw,
H265RawVUI current,
H265RawSPS sps 
)
static

Definition at line 747 of file cbs_h265_syntax_template.c.

Referenced by sps().

static int FUNC() sps ( CodedBitstreamContext ctx,
RWContext rw,
H265RawSPS current 
)
static
static int FUNC() pps_range_extension ( CodedBitstreamContext ctx,
RWContext rw,
H265RawPPS current 
)
static

Definition at line 965 of file cbs_h265_syntax_template.c.

Referenced by pps().

static int FUNC() pps_scc_extension ( CodedBitstreamContext ctx,
RWContext rw,
H265RawPPS current 
)
static

Definition at line 993 of file cbs_h265_syntax_template.c.

Referenced by pps().

static int FUNC() pps ( CodedBitstreamContext ctx,
RWContext rw,
H265RawPPS current 
)
static

Definition at line 1033 of file cbs_h265_syntax_template.c.

Referenced by slice_segment_header().

static int FUNC() aud ( CodedBitstreamContext ctx,
RWContext rw,
H265RawAUD current 
)
static

Definition at line 1156 of file cbs_h265_syntax_template.c.

static int FUNC() ref_pic_lists_modification ( CodedBitstreamContext ctx,
RWContext rw,
H265RawSliceHeader current,
unsigned int  num_pic_total_curr 
)
static

Definition at line 1172 of file cbs_h265_syntax_template.c.

Referenced by slice_segment_header().

static int FUNC() pred_weight_table ( CodedBitstreamContext ctx,
RWContext rw,
H265RawSliceHeader current 
)
static

Definition at line 1198 of file cbs_h265_syntax_template.c.

Referenced by slice_segment_header().

static int FUNC() slice_segment_header ( CodedBitstreamContext ctx,
RWContext rw,
H265RawSliceHeader current 
)
static

Definition at line 1298 of file cbs_h265_syntax_template.c.

static int FUNC() sei_buffering_period ( CodedBitstreamContext ctx,
RWContext rw,
H265RawSEIBufferingPeriod current,
uint32_t *  payload_size,
int more_data 
)
static

Definition at line 1599 of file cbs_h265_syntax_template.c.

static int FUNC() sei_pic_timing ( CodedBitstreamContext ctx,
RWContext rw,
H265RawSEIPicTiming current 
)
static

Definition at line 1710 of file cbs_h265_syntax_template.c.

static int FUNC() sei_pan_scan_rect ( CodedBitstreamContext ctx,
RWContext rw,
H265RawSEIPanScanRect current 
)
static

Definition at line 1785 of file cbs_h265_syntax_template.c.

static int FUNC() sei_user_data_registered ( CodedBitstreamContext ctx,
RWContext rw,
H265RawSEIUserDataRegistered current,
uint32_t *  payload_size 
)
static

Definition at line 1811 of file cbs_h265_syntax_template.c.

static int FUNC() sei_user_data_unregistered ( CodedBitstreamContext ctx,
RWContext rw,
H265RawSEIUserDataUnregistered current,
uint32_t *  payload_size 
)
static

Definition at line 1845 of file cbs_h265_syntax_template.c.

static int FUNC() sei_recovery_point ( CodedBitstreamContext ctx,
RWContext rw,
H265RawSEIRecoveryPoint current 
)
static

Definition at line 1875 of file cbs_h265_syntax_template.c.

static int FUNC() sei_display_orientation ( CodedBitstreamContext ctx,
RWContext rw,
H265RawSEIDisplayOrientation current 
)
static

Definition at line 1890 of file cbs_h265_syntax_template.c.

static int FUNC() sei_active_parameter_sets ( CodedBitstreamContext ctx,
RWContext rw,
H265RawSEIActiveParameterSets current 
)
static

Definition at line 1908 of file cbs_h265_syntax_template.c.

static int FUNC() sei_decoded_picture_hash ( CodedBitstreamContext ctx,
RWContext rw,
H265RawSEIDecodedPictureHash current 
)
static

Definition at line 1944 of file cbs_h265_syntax_template.c.

static int FUNC() sei_time_code ( CodedBitstreamContext ctx,
RWContext rw,
H265RawSEITimeCode current 
)
static

Definition at line 1975 of file cbs_h265_syntax_template.c.

static int FUNC() sei_mastering_display ( CodedBitstreamContext ctx,
RWContext rw,
H265RawSEIMasteringDisplayColourVolume current 
)
static

Definition at line 2025 of file cbs_h265_syntax_template.c.

static int FUNC() sei_content_light_level ( CodedBitstreamContext ctx,
RWContext rw,
H265RawSEIContentLightLevelInfo current 
)
static

Definition at line 2048 of file cbs_h265_syntax_template.c.

static int FUNC() sei_alternative_transfer_characteristics ( CodedBitstreamContext ctx,
RWContext rw,
H265RawSEIAlternativeTransferCharacteristics current 
)
static

Definition at line 2061 of file cbs_h265_syntax_template.c.

static int FUNC() sei_alpha_channel_info ( CodedBitstreamContext ctx,
RWContext rw,
H265RawSEIAlphaChannelInfo current 
)
static

Definition at line 2074 of file cbs_h265_syntax_template.c.

static int FUNC() payload_extension ( CodedBitstreamContext ctx,
RWContext rw,
H265RawExtensionData current,
uint32_t  payload_size,
int  cur_pos 
)
static

Definition at line 2102 of file cbs_h265_syntax_template.c.

Referenced by sei_payload().

static int FUNC() sei_payload ( CodedBitstreamContext ctx,
RWContext rw,
H265RawSEIPayload current,
int  prefix 
)
static

Definition at line 2138 of file cbs_h265_syntax_template.c.

Referenced by sei().

static int FUNC() sei ( CodedBitstreamContext ctx,
RWContext rw,
H265RawSEI current,
int  prefix 
)
static

Definition at line 2236 of file cbs_h265_syntax_template.c.