mirror of
https://gitee.com/openharmony/interface_sdk_c
synced 2024-11-28 01:11:14 +00:00
修改接口和注释,跟电子流保持一致
Signed-off-by: wangyan <wangyan431@huawei.com>
This commit is contained in:
parent
deeb33a09c
commit
18739e175b
@ -151,33 +151,23 @@ typedef struct OH_AVCodecCallback {
|
||||
} OH_AVCodecCallback;
|
||||
|
||||
/**
|
||||
* @brief The function pointer will be called to get sequenced media data.
|
||||
* @brief the function pointer will be called to get sequence media data
|
||||
* @syscap SystemCapability.Multimedia.Media.CodecBase
|
||||
* @param data The buffer to fill.
|
||||
* @param length Length of data to read.
|
||||
* @param offset Start offset to read.
|
||||
* @return Actual length of data read to the buffer.
|
||||
* @param data OH_AVBuffer buffer to fill
|
||||
* @param length expected to read size;
|
||||
* @param pos current read offset
|
||||
* @return Actual size of data read to the buffer.
|
||||
* @since 12
|
||||
*/
|
||||
typedef int32_t (*OH_AVDataSourceReadAt)(OH_AVBuffer *data, int32_t length, int64_t offset);
|
||||
*/
|
||||
typedef int32_t (*OH_AVDataSourceReadAt)(OH_AVBuffer *data, int32_t length, int64_t pos);
|
||||
|
||||
/**
|
||||
* @brief User customized data source.
|
||||
* @syscap SystemCapability.Multimedia.Media.CodecBase
|
||||
* @since 12
|
||||
*/
|
||||
*/
|
||||
typedef struct OH_AVDataSource {
|
||||
/**
|
||||
* @brief Total size of the data source.
|
||||
* @syscap SystemCapability.Multimedia.Media.CodecBase
|
||||
* @since 12
|
||||
*/
|
||||
int64_t size;
|
||||
/**
|
||||
* @brief Data callback of the data source.
|
||||
* @syscap SystemCapability.Multimedia.Media.CodecBase
|
||||
* @since 12
|
||||
*/
|
||||
OH_AVDataSourceReadAt readAt;
|
||||
} OH_AVDataSource;
|
||||
|
||||
|
@ -28,9 +28,9 @@ extern "C" {
|
||||
typedef struct OH_AVSource OH_AVSource;
|
||||
|
||||
/**
|
||||
* @brief Creates an OH_AVSource instance that models the media with data source.
|
||||
* @brief Creates an OH_AVSource instance that models the media with dataSource.
|
||||
* @syscap SystemCapability.Multimedia.Media.Spliter
|
||||
* @param dataSource User customized media resource.
|
||||
* @param dataSource An Struct for a remote media resource.
|
||||
* @return Returns a pointer to an OH_AVSource instance
|
||||
* @since 12
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user