修改接口和注释,跟电子流保持一致

Signed-off-by: wangyan <wangyan431@huawei.com>
This commit is contained in:
wangyan 2024-03-26 16:57:00 +08:00
parent deeb33a09c
commit 18739e175b
No known key found for this signature in database
GPG Key ID: 9D5003D69B198947
2 changed files with 10 additions and 20 deletions

View File

@ -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;

View File

@ -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
*/