BLOG | DOCUMENTATION | GITHUB

Home --> Documentations --> PJMEDIA Reference

pjmedia_vid_codec_op Struct Reference

#include <vid_codec.h>

Data Fields

pj_status_t(* init )(pjmedia_vid_codec *codec, pj_pool_t *pool)
 
pj_status_t(* open )(pjmedia_vid_codec *codec, pjmedia_vid_codec_param *param)
 
pj_status_t(* close )(pjmedia_vid_codec *codec)
 
pj_status_t(* modify )(pjmedia_vid_codec *codec, const pjmedia_vid_codec_param *param)
 
pj_status_t(* get_param )(pjmedia_vid_codec *codec, pjmedia_vid_codec_param *param)
 
pj_status_t(* encode_begin )(pjmedia_vid_codec *codec, const pjmedia_vid_encode_opt *opt, const pjmedia_frame *input, unsigned out_size, pjmedia_frame *output, pj_bool_t *has_more)
 
pj_status_t(* encode_more )(pjmedia_vid_codec *codec, unsigned out_size, pjmedia_frame *output, pj_bool_t *has_more)
 
pj_status_t(* decode )(pjmedia_vid_codec *codec, pj_size_t count, pjmedia_frame packets[], unsigned out_size, pjmedia_frame *output)
 
pj_status_t(* recover )(pjmedia_vid_codec *codec, unsigned out_size, pjmedia_frame *output)
 

Detailed Description

This structure describes codec operations. Each codec MUST implement all of these functions.

Field Documentation

◆ init

pj_status_t(* pjmedia_vid_codec_op::init) (pjmedia_vid_codec *codec, pj_pool_t *pool)

◆ open

◆ close

pj_status_t(* pjmedia_vid_codec_op::close) (pjmedia_vid_codec *codec)

◆ modify

pj_status_t(* pjmedia_vid_codec_op::modify) (pjmedia_vid_codec *codec, const pjmedia_vid_codec_param *param)

◆ get_param

pj_status_t(* pjmedia_vid_codec_op::get_param) (pjmedia_vid_codec *codec, pjmedia_vid_codec_param *param)

◆ encode_begin

pj_status_t(* pjmedia_vid_codec_op::encode_begin) (pjmedia_vid_codec *codec, const pjmedia_vid_encode_opt *opt, const pjmedia_frame *input, unsigned out_size, pjmedia_frame *output, pj_bool_t *has_more)

◆ encode_more

pj_status_t(* pjmedia_vid_codec_op::encode_more) (pjmedia_vid_codec *codec, unsigned out_size, pjmedia_frame *output, pj_bool_t *has_more)

◆ recover

pj_status_t(* pjmedia_vid_codec_op::recover) (pjmedia_vid_codec *codec, unsigned out_size, pjmedia_frame *output)

The documentation for this struct was generated from the following file:

 


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