Skip to content

Most visited

Recently visited

navigation

NdkMediaFormat.h File Reference

NdkMediaFormat.h File Reference

Typedefs

typedef struct AMediaFormat AMediaFormat
 

Functions

AMediaFormatAMediaFormat_new ()
 
media_status_t AMediaFormat_delete (AMediaFormat *)
 
const char * AMediaFormat_toString (AMediaFormat *)
 
bool AMediaFormat_getInt32 (AMediaFormat *, const char *name, int32_t *out)
 
bool AMediaFormat_getInt64 (AMediaFormat *, const char *name, int64_t *out)
 
bool AMediaFormat_getFloat (AMediaFormat *, const char *name, float *out)
 
bool AMediaFormat_getBuffer (AMediaFormat *, const char *name, void **data, size_t *size)
 
bool AMediaFormat_getString (AMediaFormat *, const char *name, const char **out)
 
void AMediaFormat_setInt32 (AMediaFormat *, const char *name, int32_t value)
 
void AMediaFormat_setInt64 (AMediaFormat *, const char *name, int64_t value)
 
void AMediaFormat_setFloat (AMediaFormat *, const char *name, float value)
 
void AMediaFormat_setString (AMediaFormat *, const char *name, const char *value)
 
void AMediaFormat_setBuffer (AMediaFormat *, const char *name, void *data, size_t size)
 

Variables

const char * AMEDIAFORMAT_KEY_AAC_PROFILE
 
const char * AMEDIAFORMAT_KEY_BIT_RATE
 
const char * AMEDIAFORMAT_KEY_CHANNEL_COUNT
 
const char * AMEDIAFORMAT_KEY_CHANNEL_MASK
 
const char * AMEDIAFORMAT_KEY_COLOR_FORMAT
 
const char * AMEDIAFORMAT_KEY_DURATION
 
const char * AMEDIAFORMAT_KEY_FLAC_COMPRESSION_LEVEL
 
const char * AMEDIAFORMAT_KEY_FRAME_RATE
 
const char * AMEDIAFORMAT_KEY_HEIGHT
 
const char * AMEDIAFORMAT_KEY_IS_ADTS
 
const char * AMEDIAFORMAT_KEY_IS_AUTOSELECT
 
const char * AMEDIAFORMAT_KEY_IS_DEFAULT
 
const char * AMEDIAFORMAT_KEY_IS_FORCED_SUBTITLE
 
const char * AMEDIAFORMAT_KEY_I_FRAME_INTERVAL
 
const char * AMEDIAFORMAT_KEY_LANGUAGE
 
const char * AMEDIAFORMAT_KEY_MAX_HEIGHT
 
const char * AMEDIAFORMAT_KEY_MAX_INPUT_SIZE
 
const char * AMEDIAFORMAT_KEY_MAX_WIDTH
 
const char * AMEDIAFORMAT_KEY_MIME
 
const char * AMEDIAFORMAT_KEY_PUSH_BLANK_BUFFERS_ON_STOP
 
const char * AMEDIAFORMAT_KEY_REPEAT_PREVIOUS_FRAME_AFTER
 
const char * AMEDIAFORMAT_KEY_SAMPLE_RATE
 
const char * AMEDIAFORMAT_KEY_WIDTH
 
const char * AMEDIAFORMAT_KEY_STRIDE
 

Typedef Documentation

§ AMediaFormat

typedef struct AMediaFormat AMediaFormat

Function Documentation

§ AMediaFormat_delete()

media_status_t AMediaFormat_delete ( AMediaFormat )

§ AMediaFormat_getBuffer()

bool AMediaFormat_getBuffer ( AMediaFormat ,
const char *  name,
void **  data,
size_t *  size 
)

The returned data is owned by the format and remains valid as long as the named entry is part of the format.

§ AMediaFormat_getFloat()

bool AMediaFormat_getFloat ( AMediaFormat ,
const char *  name,
float *  out 
)

§ AMediaFormat_getInt32()

bool AMediaFormat_getInt32 ( AMediaFormat ,
const char *  name,
int32_t *  out 
)

§ AMediaFormat_getInt64()

bool AMediaFormat_getInt64 ( AMediaFormat ,
const char *  name,
int64_t *  out 
)

§ AMediaFormat_getString()

bool AMediaFormat_getString ( AMediaFormat ,
const char *  name,
const char **  out 
)

The returned string is owned by the format, and remains valid until the next call to getString, or until the format is deleted.

§ AMediaFormat_new()

AMediaFormat* AMediaFormat_new ( )

§ AMediaFormat_setBuffer()

void AMediaFormat_setBuffer ( AMediaFormat ,
const char *  name,
void *  data,
size_t  size 
)

The provided data is copied into the format.

§ AMediaFormat_setFloat()

void AMediaFormat_setFloat ( AMediaFormat ,
const char *  name,
float  value 
)

§ AMediaFormat_setInt32()

void AMediaFormat_setInt32 ( AMediaFormat ,
const char *  name,
int32_t  value 
)

§ AMediaFormat_setInt64()

void AMediaFormat_setInt64 ( AMediaFormat ,
const char *  name,
int64_t  value 
)

§ AMediaFormat_setString()

void AMediaFormat_setString ( AMediaFormat ,
const char *  name,
const char *  value 
)

The provided string is copied into the format.

§ AMediaFormat_toString()

const char* AMediaFormat_toString ( AMediaFormat )

Human readable representation of the format. The returned string is owned by the format, and remains valid until the next call to toString, or until the format is deleted.

Variable Documentation

§ AMEDIAFORMAT_KEY_AAC_PROFILE

const char* AMEDIAFORMAT_KEY_AAC_PROFILE

XXX should these be ints/enums that we look up in a table as needed?

§ AMEDIAFORMAT_KEY_BIT_RATE

const char* AMEDIAFORMAT_KEY_BIT_RATE

§ AMEDIAFORMAT_KEY_CHANNEL_COUNT

const char* AMEDIAFORMAT_KEY_CHANNEL_COUNT

§ AMEDIAFORMAT_KEY_CHANNEL_MASK

const char* AMEDIAFORMAT_KEY_CHANNEL_MASK

§ AMEDIAFORMAT_KEY_COLOR_FORMAT

const char* AMEDIAFORMAT_KEY_COLOR_FORMAT

§ AMEDIAFORMAT_KEY_DURATION

const char* AMEDIAFORMAT_KEY_DURATION

§ AMEDIAFORMAT_KEY_FLAC_COMPRESSION_LEVEL

const char* AMEDIAFORMAT_KEY_FLAC_COMPRESSION_LEVEL

§ AMEDIAFORMAT_KEY_FRAME_RATE

const char* AMEDIAFORMAT_KEY_FRAME_RATE

§ AMEDIAFORMAT_KEY_HEIGHT

const char* AMEDIAFORMAT_KEY_HEIGHT

§ AMEDIAFORMAT_KEY_I_FRAME_INTERVAL

const char* AMEDIAFORMAT_KEY_I_FRAME_INTERVAL

§ AMEDIAFORMAT_KEY_IS_ADTS

const char* AMEDIAFORMAT_KEY_IS_ADTS

§ AMEDIAFORMAT_KEY_IS_AUTOSELECT

const char* AMEDIAFORMAT_KEY_IS_AUTOSELECT

§ AMEDIAFORMAT_KEY_IS_DEFAULT

const char* AMEDIAFORMAT_KEY_IS_DEFAULT

§ AMEDIAFORMAT_KEY_IS_FORCED_SUBTITLE

const char* AMEDIAFORMAT_KEY_IS_FORCED_SUBTITLE

§ AMEDIAFORMAT_KEY_LANGUAGE

const char* AMEDIAFORMAT_KEY_LANGUAGE

§ AMEDIAFORMAT_KEY_MAX_HEIGHT

const char* AMEDIAFORMAT_KEY_MAX_HEIGHT

§ AMEDIAFORMAT_KEY_MAX_INPUT_SIZE

const char* AMEDIAFORMAT_KEY_MAX_INPUT_SIZE

§ AMEDIAFORMAT_KEY_MAX_WIDTH

const char* AMEDIAFORMAT_KEY_MAX_WIDTH

§ AMEDIAFORMAT_KEY_MIME

const char* AMEDIAFORMAT_KEY_MIME

§ AMEDIAFORMAT_KEY_PUSH_BLANK_BUFFERS_ON_STOP

const char* AMEDIAFORMAT_KEY_PUSH_BLANK_BUFFERS_ON_STOP

§ AMEDIAFORMAT_KEY_REPEAT_PREVIOUS_FRAME_AFTER

const char* AMEDIAFORMAT_KEY_REPEAT_PREVIOUS_FRAME_AFTER

§ AMEDIAFORMAT_KEY_SAMPLE_RATE

const char* AMEDIAFORMAT_KEY_SAMPLE_RATE

§ AMEDIAFORMAT_KEY_STRIDE

const char* AMEDIAFORMAT_KEY_STRIDE

§ AMEDIAFORMAT_KEY_WIDTH

const char* AMEDIAFORMAT_KEY_WIDTH
This site uses cookies to store your preferences for site-specific language and display options.

Get the latest Android developer news and tips that will help you find success on Google Play.

* Required Fields

Hooray!

Follow Google Developers on WeChat

Browse this site in ?

You requested a page in , but your language preference for this site is .

Would you like to change your language preference and browse this site in ? If you want to change your language preference later, use the language menu at the bottom of each page.

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a short survey?
Help us improve the Android developer experience. (Dec 2017 Android Platform & Tools Survey)