WARNING: The online documentation has moved to https://docs.pjsip.org.

Visit the new documentation at https://docs.pjsip.org:

BLOG | DOCUMENTATION | GITHUB

Home --> Documentations --> PJMEDIA Reference

vid_codec_util.h File Reference

Video codec utilities. More...

Data Structures

struct  pjmedia_vid_codec_h263_fmtp
 
struct  pjmedia_vid_codec_h263_fmtp::mpi
 
struct  pjmedia_vid_codec_h264_fmtp
 
struct  pjmedia_vid_codec_vpx_fmtp
 

Functions

pj_status_t pjmedia_vid_codec_h263_parse_fmtp (const pjmedia_codec_fmtp *fmtp, pjmedia_vid_codec_h263_fmtp *h263_fmtp)
 
pj_status_t pjmedia_vid_codec_h263_apply_fmtp (pjmedia_vid_codec_param *param)
 
pj_status_t pjmedia_vid_codec_h264_parse_fmtp (const pjmedia_codec_fmtp *fmtp, pjmedia_vid_codec_h264_fmtp *h264_fmtp)
 
pj_status_t pjmedia_vid_codec_h264_match_sdp (pj_pool_t *pool, pjmedia_sdp_media *offer, unsigned o_fmt_idx, pjmedia_sdp_media *answer, unsigned a_fmt_idx, unsigned option)
 
pj_status_t pjmedia_vid_codec_h264_apply_fmtp (pjmedia_vid_codec_param *param)
 
pj_status_t pjmedia_vid_codec_vpx_parse_fmtp (const pjmedia_codec_fmtp *fmtp, pjmedia_vid_codec_vpx_fmtp *vpx_fmtp)
 
pj_status_t pjmedia_vid_codec_vpx_apply_fmtp (pjmedia_vid_codec_param *param)
 

Function Documentation

◆ pjmedia_vid_codec_h263_parse_fmtp()

pj_status_t pjmedia_vid_codec_h263_parse_fmtp ( const pjmedia_codec_fmtp fmtp,
pjmedia_vid_codec_h263_fmtp h263_fmtp 
)

Parse SDP fmtp of H.263.

Parameters
fmtpThe H.263 SDP fmtp to be parsed.
h263_fmtpThe parsing result.
Returns
PJ_SUCCESS on success.

◆ pjmedia_vid_codec_h263_apply_fmtp()

pj_status_t pjmedia_vid_codec_h263_apply_fmtp ( pjmedia_vid_codec_param param)

Parse, negotiate, and apply the encoding and decoding SDP fmtp of H.263 in the specified codec parameter.

Parameters
paramThe codec parameter.
Returns
PJ_SUCCESS on success.

◆ pjmedia_vid_codec_h264_parse_fmtp()

pj_status_t pjmedia_vid_codec_h264_parse_fmtp ( const pjmedia_codec_fmtp fmtp,
pjmedia_vid_codec_h264_fmtp h264_fmtp 
)

Parse SDP fmtp of H.264.

Parameters
fmtpThe H.264 SDP fmtp to be parsed.
h264_fmtpThe parsing result.
Returns
PJ_SUCCESS on success.

◆ pjmedia_vid_codec_h264_match_sdp()

pj_status_t pjmedia_vid_codec_h264_match_sdp ( pj_pool_t pool,
pjmedia_sdp_media offer,
unsigned  o_fmt_idx,
pjmedia_sdp_media answer,
unsigned  a_fmt_idx,
unsigned  option 
)

Match H.264 format in the SDP media offer and answer. This will compare H.264 identifier parameters in SDP fmtp, i.e: "profile-level-id" and "packetization-mode" fields. For better interoperability, when the option PJMEDIA_SDP_NEG_FMT_MATCH_ALLOW_MODIFY_ANSWER is set, this function may update the answer so the parameters in the answer match to ones in the offer.

Parameters
poolThe memory pool.
offerThe SDP media offer.
o_fmt_idxIndex of the H.264 format in the SDP media offer.
answerThe SDP media answer.
a_fmt_idxIndex of the H.264 format in the SDP media answer.
optionThe format matching option, see pjmedia_sdp_neg_fmt_match_flag.
Returns
PJ_SUCCESS when the formats in offer and answer match.

◆ pjmedia_vid_codec_h264_apply_fmtp()

pj_status_t pjmedia_vid_codec_h264_apply_fmtp ( pjmedia_vid_codec_param param)

Parse and apply the encoding and decoding SDP fmtp of H.264 in the specified codec parameter. This will validate size and fps to conform to H.264 level specified in SDP fmtp "profile-level-id".

Parameters
paramThe codec parameter.
Returns
PJ_SUCCESS on success.

◆ pjmedia_vid_codec_vpx_parse_fmtp()

pj_status_t pjmedia_vid_codec_vpx_parse_fmtp ( const pjmedia_codec_fmtp fmtp,
pjmedia_vid_codec_vpx_fmtp vpx_fmtp 
)

Parse SDP fmtp of VPX.

Parameters
fmtpThe VPX SDP fmtp to be parsed.
vpx_fmtpThe parsing result.
Returns
PJ_SUCCESS on success.

◆ pjmedia_vid_codec_vpx_apply_fmtp()

pj_status_t pjmedia_vid_codec_vpx_apply_fmtp ( pjmedia_vid_codec_param param)

Parse and apply the encoding and decoding SDP fmtp of VPX in the specified codec parameter. This will validate size and fps to conform to VPX level specified in SDP fmtp "max-fr" and "max-fs".

Parameters
paramThe codec parameter.
Returns
PJ_SUCCESS on success.

References PJ_END_DECL.

 


PJMEDIA small footprint Open Source media stack
Copyright (C) 2006-2008 Teluu Inc.