Lines Matching defs:OH_AVSource
40 * @brief Forward declaration of OH_AVSource.
44 typedef struct OH_AVSource OH_AVSource;
47 * @brief Creates an OH_AVSource instance that models the media with dataSource.
50 * @return Returns a pointer to an OH_AVSource instance if the execution is successful, otherwise returns nullptr.
59 OH_AVSource *OH_AVSource_CreateWithDataSource(OH_AVDataSource *dataSource);
62 * @brief Creates an OH_AVSource instance that models the media at the URI.
65 * @return Returns a pointer to an OH_AVSource instance if the execution is successful, otherwise returns nullptr.
72 OH_AVSource *OH_AVSource_CreateWithURI(char *uri);
75 * @brief Creates an OH_AVSource instance that models the media at the FileDescriptor.
80 * @return Returns a pointer to an OH_AVSource instance if the execution is successful, otherwise returns nullptr.
89 OH_AVSource *OH_AVSource_CreateWithFD(int32_t fd, int64_t offset, int64_t size);
92 * @brief Destroy the OH_AVSource instance and free the internal resources.
94 * @param source Pointer to an OH_AVSource instance.
100 OH_AVErrCode OH_AVSource_Destroy(OH_AVSource *source);
105 * @param source Pointer to an OH_AVSource instance.
111 OH_AVFormat *OH_AVSource_GetSourceFormat(OH_AVSource *source);
116 * @param source Pointer to an OH_AVSource instance.
124 OH_AVFormat *OH_AVSource_GetTrackFormat(OH_AVSource *source, uint32_t trackIndex);