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_getSize (AMediaFormat *, const char *name, size_t *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)
 
bool AMediaFormat_getDouble (AMediaFormat *, const char *name, double *out)
 
bool AMediaFormat_getRect (AMediaFormat *, const char *name, int32_t *left, int32_t *top, int32_t *right, int32_t *bottom)
 
void AMediaFormat_setDouble (AMediaFormat *, const char *name, double value)
 
void AMediaFormat_setSize (AMediaFormat *, const char *name, size_t value)
 
void AMediaFormat_setRect (AMediaFormat *, const char *name, int32_t left, int32_t top, int32_t right, int32_t bottom)
 

Variables

const char * AMEDIAFORMAT_KEY_AAC_DRC_ATTENUATION_FACTOR
 
const char * AMEDIAFORMAT_KEY_AAC_DRC_BOOST_FACTOR
 
const char * AMEDIAFORMAT_KEY_AAC_DRC_HEAVY_COMPRESSION
 
const char * AMEDIAFORMAT_KEY_AAC_DRC_TARGET_REFERENCE_LEVEL
 
const char * AMEDIAFORMAT_KEY_AAC_ENCODED_TARGET_LEVEL
 
const char * AMEDIAFORMAT_KEY_AAC_MAX_OUTPUT_CHANNEL_COUNT
 
const char * AMEDIAFORMAT_KEY_AAC_PROFILE
 
const char * AMEDIAFORMAT_KEY_AAC_SBR_MODE
 
const char * AMEDIAFORMAT_KEY_AUDIO_SESSION_ID
 
const char * AMEDIAFORMAT_KEY_BITRATE_MODE
 
const char * AMEDIAFORMAT_KEY_BIT_RATE
 
const char * AMEDIAFORMAT_KEY_CAPTURE_RATE
 
const char * AMEDIAFORMAT_KEY_CHANNEL_COUNT
 
const char * AMEDIAFORMAT_KEY_CHANNEL_MASK
 
const char * AMEDIAFORMAT_KEY_COLOR_FORMAT
 
const char * AMEDIAFORMAT_KEY_COLOR_RANGE
 
const char * AMEDIAFORMAT_KEY_COLOR_STANDARD
 
const char * AMEDIAFORMAT_KEY_COLOR_TRANSFER
 
const char * AMEDIAFORMAT_KEY_COMPLEXITY
 
const char * AMEDIAFORMAT_KEY_DISPLAY_CROP
 
const char * AMEDIAFORMAT_KEY_DURATION
 
const char * AMEDIAFORMAT_KEY_FLAC_COMPRESSION_LEVEL
 
const char * AMEDIAFORMAT_KEY_FRAME_RATE
 
const char * AMEDIAFORMAT_KEY_GRID_COLS
 
const char * AMEDIAFORMAT_KEY_GRID_HEIGHT
 
const char * AMEDIAFORMAT_KEY_GRID_ROWS
 
const char * AMEDIAFORMAT_KEY_GRID_WIDTH
 
const char * AMEDIAFORMAT_KEY_HDR_STATIC_INFO
 
const char * AMEDIAFORMAT_KEY_HEIGHT
 
const char * AMEDIAFORMAT_KEY_INTRA_REFRESH_PERIOD
 
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_LATENCY
 
const char * AMEDIAFORMAT_KEY_LEVEL
 
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_OPERATING_RATE
 
const char * AMEDIAFORMAT_KEY_PCM_ENCODING
 
const char * AMEDIAFORMAT_KEY_PRIORITY
 
const char * AMEDIAFORMAT_KEY_PROFILE
 
const char * AMEDIAFORMAT_KEY_PUSH_BLANK_BUFFERS_ON_STOP
 
const char * AMEDIAFORMAT_KEY_REPEAT_PREVIOUS_FRAME_AFTER
 
const char * AMEDIAFORMAT_KEY_ROTATION
 
const char * AMEDIAFORMAT_KEY_SAMPLE_RATE
 
const char * AMEDIAFORMAT_KEY_SLICE_HEIGHT
 
const char * AMEDIAFORMAT_KEY_STRIDE
 
const char * AMEDIAFORMAT_KEY_TEMPORAL_LAYERING
 
const char * AMEDIAFORMAT_KEY_TRACK_ID
 
const char * AMEDIAFORMAT_KEY_WIDTH
 

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_getDouble()

bool AMediaFormat_getDouble ( AMediaFormat ,
const char *  name,
double *  out 
)

◆ 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_getRect()

bool AMediaFormat_getRect ( AMediaFormat ,
const char *  name,
int32_t *  left,
int32_t *  top,
int32_t *  right,
int32_t *  bottom 
)

◆ AMediaFormat_getSize()

bool AMediaFormat_getSize ( AMediaFormat ,
const char *  name,
size_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_setDouble()

void AMediaFormat_setDouble ( AMediaFormat ,
const char *  name,
double  value 
)

◆ 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_setRect()

void AMediaFormat_setRect ( AMediaFormat ,
const char *  name,
int32_t  left,
int32_t  top,
int32_t  right,
int32_t  bottom 
)

◆ AMediaFormat_setSize()

void AMediaFormat_setSize ( AMediaFormat ,
const char *  name,
size_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_DRC_ATTENUATION_FACTOR

const char* AMEDIAFORMAT_KEY_AAC_DRC_ATTENUATION_FACTOR

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

◆ AMEDIAFORMAT_KEY_AAC_DRC_BOOST_FACTOR

const char* AMEDIAFORMAT_KEY_AAC_DRC_BOOST_FACTOR

◆ AMEDIAFORMAT_KEY_AAC_DRC_HEAVY_COMPRESSION

const char* AMEDIAFORMAT_KEY_AAC_DRC_HEAVY_COMPRESSION

◆ AMEDIAFORMAT_KEY_AAC_DRC_TARGET_REFERENCE_LEVEL

const char* AMEDIAFORMAT_KEY_AAC_DRC_TARGET_REFERENCE_LEVEL

◆ AMEDIAFORMAT_KEY_AAC_ENCODED_TARGET_LEVEL

const char* AMEDIAFORMAT_KEY_AAC_ENCODED_TARGET_LEVEL

◆ AMEDIAFORMAT_KEY_AAC_MAX_OUTPUT_CHANNEL_COUNT

const char* AMEDIAFORMAT_KEY_AAC_MAX_OUTPUT_CHANNEL_COUNT

◆ AMEDIAFORMAT_KEY_AAC_PROFILE

const char* AMEDIAFORMAT_KEY_AAC_PROFILE

◆ AMEDIAFORMAT_KEY_AAC_SBR_MODE

const char* AMEDIAFORMAT_KEY_AAC_SBR_MODE

◆ AMEDIAFORMAT_KEY_AUDIO_SESSION_ID

const char* AMEDIAFORMAT_KEY_AUDIO_SESSION_ID

◆ AMEDIAFORMAT_KEY_BIT_RATE

const char* AMEDIAFORMAT_KEY_BIT_RATE

◆ AMEDIAFORMAT_KEY_BITRATE_MODE

const char* AMEDIAFORMAT_KEY_BITRATE_MODE

◆ AMEDIAFORMAT_KEY_CAPTURE_RATE

const char* AMEDIAFORMAT_KEY_CAPTURE_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_COLOR_RANGE

const char* AMEDIAFORMAT_KEY_COLOR_RANGE

◆ AMEDIAFORMAT_KEY_COLOR_STANDARD

const char* AMEDIAFORMAT_KEY_COLOR_STANDARD

◆ AMEDIAFORMAT_KEY_COLOR_TRANSFER

const char* AMEDIAFORMAT_KEY_COLOR_TRANSFER

◆ AMEDIAFORMAT_KEY_COMPLEXITY

const char* AMEDIAFORMAT_KEY_COMPLEXITY

◆ AMEDIAFORMAT_KEY_DISPLAY_CROP

const char* AMEDIAFORMAT_KEY_DISPLAY_CROP

◆ 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_GRID_COLS

const char* AMEDIAFORMAT_KEY_GRID_COLS

◆ AMEDIAFORMAT_KEY_GRID_HEIGHT

const char* AMEDIAFORMAT_KEY_GRID_HEIGHT

◆ AMEDIAFORMAT_KEY_GRID_ROWS

const char* AMEDIAFORMAT_KEY_GRID_ROWS

◆ AMEDIAFORMAT_KEY_GRID_WIDTH

const char* AMEDIAFORMAT_KEY_GRID_WIDTH

◆ AMEDIAFORMAT_KEY_HDR_STATIC_INFO

const char* AMEDIAFORMAT_KEY_HDR_STATIC_INFO

◆ AMEDIAFORMAT_KEY_HEIGHT

const char* AMEDIAFORMAT_KEY_HEIGHT

◆ AMEDIAFORMAT_KEY_I_FRAME_INTERVAL

const char* AMEDIAFORMAT_KEY_I_FRAME_INTERVAL

◆ AMEDIAFORMAT_KEY_INTRA_REFRESH_PERIOD

const char* AMEDIAFORMAT_KEY_INTRA_REFRESH_PERIOD

◆ 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_LATENCY

const char* AMEDIAFORMAT_KEY_LATENCY

◆ AMEDIAFORMAT_KEY_LEVEL

const char* AMEDIAFORMAT_KEY_LEVEL

◆ 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_OPERATING_RATE

const char* AMEDIAFORMAT_KEY_OPERATING_RATE

◆ AMEDIAFORMAT_KEY_PCM_ENCODING

const char* AMEDIAFORMAT_KEY_PCM_ENCODING

◆ AMEDIAFORMAT_KEY_PRIORITY

const char* AMEDIAFORMAT_KEY_PRIORITY

◆ AMEDIAFORMAT_KEY_PROFILE

const char* AMEDIAFORMAT_KEY_PROFILE

◆ 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_ROTATION

const char* AMEDIAFORMAT_KEY_ROTATION

◆ AMEDIAFORMAT_KEY_SAMPLE_RATE

const char* AMEDIAFORMAT_KEY_SAMPLE_RATE

◆ AMEDIAFORMAT_KEY_SLICE_HEIGHT

const char* AMEDIAFORMAT_KEY_SLICE_HEIGHT

◆ AMEDIAFORMAT_KEY_STRIDE

const char* AMEDIAFORMAT_KEY_STRIDE

◆ AMEDIAFORMAT_KEY_TEMPORAL_LAYERING

const char* AMEDIAFORMAT_KEY_TEMPORAL_LAYERING

◆ AMEDIAFORMAT_KEY_TRACK_ID

const char* AMEDIAFORMAT_KEY_TRACK_ID

◆ 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. (April 2018 — Developer Survey)