FFmpeg
|
Go to the source code of this file.
Data Structures | |
struct | mf_pix_fmt_entry |
struct | GUID_Entry |
Macros | |
#define | COBJMACROS |
#define | _WIN32_WINNT 0x0602 |
#define | ff_MFSetAttributeRatio ff_MFSetAttributeSize |
#define | ff_MFGetAttributeRatio ff_MFGetAttributeSize |
#define | HR(x) case x: return (char *) # x; |
#define | GUID_ENTRY(var) {&(var), # var} |
Functions | |
HRESULT | ff_MFGetAttributeSize (IMFAttributes *pattr, REFGUID guid, UINT32 *pw, UINT32 *ph) |
HRESULT | ff_MFSetAttributeSize (IMFAttributes *pattr, REFGUID guid, UINT32 uw, UINT32 uh) |
char * | ff_hr_str_buf (char *buf, size_t size, HRESULT hr) |
IMFSample * | ff_create_memory_sample (MFFunctions *f, void *fill_data, size_t size, size_t align) |
enum AVSampleFormat | ff_media_type_to_sample_fmt (IMFAttributes *type) |
enum AVPixelFormat | ff_media_type_to_pix_fmt (IMFAttributes *type) |
const GUID * | ff_pix_fmt_to_guid (enum AVPixelFormat pix_fmt) |
int | ff_fourcc_from_guid (const GUID *guid, uint32_t *out_fourcc) |
char * | ff_guid_str_buf (char *buf, size_t buf_size, const GUID *guid) |
void | ff_attributes_dump (void *log, IMFAttributes *attrs) |
void | ff_media_type_dump (void *log, IMFMediaType *type) |
const CLSID * | ff_codec_to_mf_subtype (enum AVCodecID codec) |
static int | init_com_mf (void *log, MFFunctions *f) |
static void | uninit_com_mf (MFFunctions *f) |
int | ff_instantiate_mf (void *log, MFFunctions *f, GUID category, MFT_REGISTER_TYPE_INFO *in_type, MFT_REGISTER_TYPE_INFO *out_type, int use_hw, IMFTransform **res) |
void | ff_free_mf (MFFunctions *f, IMFTransform **mft) |
Variables | |
static const struct mf_pix_fmt_entry | mf_pix_fmts [] |
static struct GUID_Entry | guid_names [] |
#define COBJMACROS |
Definition at line 19 of file mf_utils.c.
#define _WIN32_WINNT 0x0602 |
Definition at line 22 of file mf_utils.c.
#define ff_MFSetAttributeRatio ff_MFSetAttributeSize |
Definition at line 47 of file mf_utils.c.
#define ff_MFGetAttributeRatio ff_MFGetAttributeSize |
Definition at line 48 of file mf_utils.c.
#define HR | ( | x | ) | case x: return (char *) # x; |
#define GUID_ENTRY | ( | var | ) | {&(var), # var} |
Definition at line 214 of file mf_utils.c.
HRESULT ff_MFGetAttributeSize | ( | IMFAttributes * | pattr, |
REFGUID | guid, | ||
UINT32 * | pw, | ||
UINT32 * | ph | ||
) |
Definition at line 28 of file mf_utils.c.
Referenced by ff_attributes_dump().
HRESULT ff_MFSetAttributeSize | ( | IMFAttributes * | pattr, |
REFGUID | guid, | ||
UINT32 | uw, | ||
UINT32 | uh | ||
) |
Definition at line 40 of file mf_utils.c.
Referenced by mf_encv_output_adjust().
char* ff_hr_str_buf | ( | char * | buf, |
size_t | size, | ||
HRESULT | hr | ||
) |
Definition at line 50 of file mf_utils.c.
IMFSample* ff_create_memory_sample | ( | MFFunctions * | f, |
void * | fill_data, | ||
size_t | size, | ||
size_t | align | ||
) |
Definition at line 76 of file mf_utils.c.
Referenced by mf_a_avframe_to_sample(), mf_receive_sample(), and mf_v_avframe_to_sample().
enum AVSampleFormat ff_media_type_to_sample_fmt | ( | IMFAttributes * | type | ) |
Definition at line 114 of file mf_utils.c.
Referenced by ff_attributes_dump(), mf_enca_input_adjust(), and mf_enca_input_score().
enum AVPixelFormat ff_media_type_to_pix_fmt | ( | IMFAttributes * | type | ) |
Definition at line 158 of file mf_utils.c.
Referenced by ff_attributes_dump(), mf_encv_input_adjust(), and mf_encv_input_score().
const GUID* ff_pix_fmt_to_guid | ( | enum AVPixelFormat | pix_fmt | ) |
Definition at line 176 of file mf_utils.c.
int ff_fourcc_from_guid | ( | const GUID * | guid, |
uint32_t * | out_fourcc | ||
) |
Definition at line 190 of file mf_utils.c.
Referenced by ff_guid_str_buf().
char* ff_guid_str_buf | ( | char * | buf, |
size_t | buf_size, | ||
const GUID * | guid | ||
) |
Definition at line 332 of file mf_utils.c.
void ff_attributes_dump | ( | void * | log, |
IMFAttributes * | attrs | ||
) |
Definition at line 358 of file mf_utils.c.
Referenced by ff_instantiate_mf(), and ff_media_type_dump().
void ff_media_type_dump | ( | void * | log, |
IMFMediaType * | type | ||
) |
Definition at line 502 of file mf_utils.c.
Referenced by mf_choose_input_type(), mf_choose_output_type(), and mf_output_type_get().
const CLSID* ff_codec_to_mf_subtype | ( | enum AVCodecID | codec | ) |
Definition at line 507 of file mf_utils.c.
Referenced by mf_create(), and mf_init_encoder().
|
static |
Definition at line 519 of file mf_utils.c.
Referenced by ff_instantiate_mf().
|
static |
Definition at line 542 of file mf_utils.c.
Referenced by ff_free_mf(), and ff_instantiate_mf().
int ff_instantiate_mf | ( | void * | log, |
MFFunctions * | f, | ||
GUID | category, | ||
MFT_REGISTER_TYPE_INFO * | in_type, | ||
MFT_REGISTER_TYPE_INFO * | out_type, | ||
int | use_hw, | ||
IMFTransform ** | res | ||
) |
Definition at line 550 of file mf_utils.c.
Referenced by mf_create().
void ff_free_mf | ( | MFFunctions * | f, |
IMFTransform ** | mft | ||
) |
Definition at line 643 of file mf_utils.c.
Referenced by mf_close().
|
static |
Definition at line 149 of file mf_utils.c.
Referenced by ff_media_type_to_pix_fmt(), and ff_pix_fmt_to_guid().
|
static |
Definition at line 216 of file mf_utils.c.
Referenced by ff_guid_str_buf().