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) |
HRESULT | ff_MFTEnumEx (GUID guidCategory, UINT32 Flags, const MFT_REGISTER_TYPE_INFO *pInputType, const MFT_REGISTER_TYPE_INFO *pOutputType, IMFActivate ***pppMFTActivate, UINT32 *pnumMFTActivate) |
char * | ff_hr_str_buf (char *buf, size_t size, HRESULT hr) |
IMFSample * | ff_create_memory_sample (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) |
static void | uninit_com_mf (void) |
int | ff_instantiate_mf (void *log, GUID category, MFT_REGISTER_TYPE_INFO *in_type, MFT_REGISTER_TYPE_INFO *out_type, int use_hw, IMFTransform **res) |
void | ff_free_mf (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 246 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().
HRESULT ff_MFTEnumEx | ( | GUID | guidCategory, |
UINT32 | Flags, | ||
const MFT_REGISTER_TYPE_INFO * | pInputType, | ||
const MFT_REGISTER_TYPE_INFO * | pOutputType, | ||
IMFActivate *** | pppMFTActivate, | ||
UINT32 * | pnumMFTActivate | ||
) |
Definition at line 53 of file mf_utils.c.
Referenced by ff_instantiate_mf().
char* ff_hr_str_buf | ( | char * | buf, |
size_t | size, | ||
HRESULT | hr | ||
) |
Definition at line 83 of file mf_utils.c.
IMFSample* ff_create_memory_sample | ( | void * | fill_data, |
size_t | size, | ||
size_t | align | ||
) |
Definition at line 109 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 146 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 190 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 208 of file mf_utils.c.
int ff_fourcc_from_guid | ( | const GUID * | guid, |
uint32_t * | out_fourcc | ||
) |
Definition at line 222 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 364 of file mf_utils.c.
void ff_attributes_dump | ( | void * | log, |
IMFAttributes * | attrs | ||
) |
Definition at line 390 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 534 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 539 of file mf_utils.c.
Referenced by mf_create(), and mf_init().
|
static |
Definition at line 551 of file mf_utils.c.
Referenced by ff_instantiate_mf().
|
static |
Definition at line 574 of file mf_utils.c.
Referenced by ff_free_mf(), and ff_instantiate_mf().
int ff_instantiate_mf | ( | void * | log, |
GUID | category, | ||
MFT_REGISTER_TYPE_INFO * | in_type, | ||
MFT_REGISTER_TYPE_INFO * | out_type, | ||
int | use_hw, | ||
IMFTransform ** | res | ||
) |
Definition at line 582 of file mf_utils.c.
Referenced by mf_create().
void ff_free_mf | ( | IMFTransform ** | mft | ) |
Definition at line 674 of file mf_utils.c.
Referenced by mf_close().
|
static |
Definition at line 181 of file mf_utils.c.
Referenced by ff_media_type_to_pix_fmt(), and ff_pix_fmt_to_guid().
|
static |
Definition at line 248 of file mf_utils.c.
Referenced by ff_guid_str_buf().