/foundation/multimedia/media_foundation/interface/kits/c/ |
H A D | native_avformat.h | 27 typedef struct OH_AVFormat OH_AVFormat; typedef 59 * @briefCreate an OH_AVFormat handle pointer to read and write data 61 * @return Returns a pointer to an OH_AVFormat instance 65 struct OH_AVFormat *OH_AVFormat_Create(void); 68 * @briefCreate an audio OH_AVFormat handle pointer to read and write data 73 * @return Returns a pointer to an OH_AVFormat instance 77 struct OH_AVFormat *OH_AVFormat_CreateAudioFormat(const char *mimeType, 82 * @briefCreate an video OH_AVFormat handle pointer to read and write data 87 * @return Returns a pointer to an OH_AVFormat instanc [all...] |
/foundation/multimedia/media_foundation/src/capi/ |
H A D | native_avformat.cpp | 35 struct OH_AVFormat *OH_AVFormat_Create(void) in OH_AVFormat_Create() 37 return new (std::nothrow) OH_AVFormat(); in OH_AVFormat_Create() 40 struct OH_AVFormat *OH_AVFormat_CreateAudioFormat(const char *mimeType, int32_t sampleRate, int32_t channelCount) in OH_AVFormat_CreateAudioFormat() 43 OH_AVFormat *audioFormat = new (std::nothrow) OH_AVFormat(); in OH_AVFormat_CreateAudioFormat() 51 struct OH_AVFormat *OH_AVFormat_CreateVideoFormat(const char *mimeType, int32_t width, int32_t height) in OH_AVFormat_CreateVideoFormat() 54 OH_AVFormat *videoFormat = new (std::nothrow) OH_AVFormat(); in OH_AVFormat_CreateVideoFormat() 62 void OH_AVFormat_Destroy(struct OH_AVFormat *format) in OH_AVFormat_Destroy() 67 bool OH_AVFormat_Copy(struct OH_AVFormat *t [all...] |
/foundation/multimedia/media_foundation/src/capi/common/ |
H A D | native_mfmagic.cpp | 31 OH_AVFormat::OH_AVFormat() : MFObjectMagic(MFMagic::MFMAGIC_FORMAT) {} in OH_AVFormat() function in OH_AVFormat 33 OH_AVFormat::OH_AVFormat(const Format &fmt) : MFObjectMagic(MFMagic::MFMAGIC_FORMAT), format_(fmt) {} in OH_AVFormat() function in OH_AVFormat 35 OH_AVFormat::~OH_AVFormat() in ~OH_AVFormat()
|
/foundation/multimedia/av_codec/test/moduletest/audio_decoder/Common/include/ |
H A D | AudioDecoderDemoCommon.h | 47 extern void OnOutputFormatChanged(OH_AVCodec* codec, OH_AVFormat* format, void* userData); 103 OH_AVErrCode NativeConfigure(OH_AVCodec* codec, OH_AVFormat* format); 109 OH_AVFormat* NativeGetOutputDescription(OH_AVCodec* codec); 110 OH_AVErrCode NativeSetParameter(OH_AVCodec* codec, OH_AVFormat* format); 133 void NativeGetVorbisConf(OH_AVFormat* format); 134 void NativeCreateToStart(const char* name, OH_AVFormat* format); 136 void NativeFFmpegConf(const char* name, OH_AVFormat* format); 141 const char* name, OH_AVFormat* format); 143 OH_AVFormat* format, const char* name, bool needConfig); 145 const char* name, OH_AVFormat* forma [all...] |
/foundation/multimedia/av_codec/test/nativedemo/avdemuxer/capi_demo/ |
H A D | avsource_demo.h | 34 OH_AVFormat* GetSourceFormat(); 35 OH_AVFormat* GetTrackFormat(uint32_t trackIndex); 38 OH_AVFormat* avformat_ = nullptr; 39 OH_AVFormat* trackFormat_ = nullptr;
|
/foundation/multimedia/av_codec/test/moduletest/audio_encoder/Common/include/ |
H A D | AudioEncoderDemoCommon.h | 47 extern void OnOutputFormatChanged(OH_AVCodec* codec, OH_AVFormat* format, void* userData); 112 OH_AVErrCode NativeConfigure(OH_AVCodec* codec, OH_AVFormat* format); 118 OH_AVFormat* NativeGetOutputDescription(OH_AVCodec* codec); 119 OH_AVErrCode NativeSetParameter(OH_AVCodec* codec, OH_AVFormat* format); 141 void NativeCreateToStart(const char* name, OH_AVFormat* format); 145 const char* name, OH_AVFormat* format); 147 std::string outputFile, OH_AVFormat* format, const char* name, bool needConfig); 149 const char* name, OH_AVFormat* format); 151 std::string outputFileSecond, const char* name, OH_AVFormat* format); 153 std::string outputFileSecond, const char* name, OH_AVFormat* forma [all...] |
/foundation/multimedia/av_codec/interfaces/kits/c/ |
H A D | native_avcodec_videoencoder.h | 29 * carry an available OH_AVFormat to fill in the new input parameter. This parameter takes effect immediately with the 34 * @param index The index corresponding to the new OH_AVFormat instance 35 * @param parameter Parameter containing the new OH_AVFormat instance 39 typedef void (*OH_VideoEncoder_OnNeedInputParameter)(OH_AVCodec *codec, uint32_t index, OH_AVFormat *parameter, 146 * @param format A pointer to an OH_AVFormat that gives the description of the video track to be encoded 157 OH_AVErrCode OH_VideoEncoder_Configure(OH_AVCodec *codec, OH_AVFormat *format); 245 * @brief Get the description information of the output data of the encoder, refer to {@link OH_AVFormat} for details. 246 * It should be noted that the life cycle of the OH_AVFormat instance pointed to by the return value * needs to 250 * @return Returns a pointer to an OH_AVFormat instance. 255 OH_AVFormat *OH_VideoEncoder_GetOutputDescriptio [all...] |
H A D | native_avcodec_audiodecoder.h | 86 * @param format A pointer to an OH_AVFormat giving a description of the audio track to be decoded 94 OH_AVErrCode OH_AudioDecoder_Configure(OH_AVCodec *codec, OH_AVFormat *format); 170 * @brief Get the description information of the output data of the decoder, refer to {@link OH_AVFormat} for details. 171 * It should be noted that the life cycle of the OH_AVFormat instance pointed to by the return value * needs to 175 * @return Returns the OH_AVFormat handle pointer, the life cycle is refreshed with the next GetOutputMediaDescription, 182 OH_AVFormat *OH_AudioDecoder_GetOutputDescription(OH_AVCodec *codec); 189 * @param format OH_AVFormat handle pointer 197 OH_AVErrCode OH_AudioDecoder_SetParameter(OH_AVCodec *codec, OH_AVFormat *format);
|
H A D | native_avcodec_audioencoder.h | 86 * @param format OH_AVFormat handle pointer 94 OH_AVErrCode OH_AudioEncoder_Configure(OH_AVCodec *codec, OH_AVFormat *format); 167 * @brief Get the description information of the output data of the encoder, refer to {@link OH_AVFormat} for details. 168 * It should be noted that the life cycle of the OH_AVFormat instance pointed to by the return value * needs to 172 * @return Returns the OH_AVFormat handle pointer, the life cycle is refreshed with the next GetOutputMediaDescription, 179 OH_AVFormat *OH_AudioEncoder_GetOutputDescription(OH_AVCodec *codec); 186 * @param format OH_AVFormat handle pointer 194 OH_AVErrCode OH_AudioEncoder_SetParameter(OH_AVCodec *codec, OH_AVFormat *format);
|
/foundation/multimedia/media_foundation/tests/unittest/format/capi/ |
H A D | avformat_capi_mock.h | 26 explicit AVFormatCapiMock(OH_AVFormat *format) : format_(format) {} in AVFormatCapiMock() 46 bool AVFormat_Copy(struct OH_AVFormat *to, struct OH_AVFormat *from); 47 OH_AVFormat *GetFormat(); 50 OH_AVFormat *format_;
|
/foundation/multimedia/av_codec/test/unittest/common/common_mock/avformat/capi/ |
H A D | avformat_capi_mock.h | 26 explicit AVFormatCapiMock(OH_AVFormat *format) : format_(format) {} in AVFormatCapiMock() 48 bool AVFormat_Copy(struct OH_AVFormat *to, struct OH_AVFormat *from); 49 OH_AVFormat *GetFormat(); 52 OH_AVFormat *format_;
|
/foundation/multimedia/media_foundation/interface/inner_api/common/ |
H A D | native_mfmagic.h | 55 struct OH_AVFormat : public MFObjectMagic { struct 56 OH_AVFormat(); 57 explicit OH_AVFormat(const OHOS::Media::Format &fmt); 58 ~OH_AVFormat() override;
|
/foundation/multimedia/av_codec/test/fuzztest/audiodecoder_fuzzer/ |
H A D | audio_decoder_demo.h | 78 OH_AVErrCode Configure(OH_AVCodec* codec, OH_AVFormat* format, int32_t channel, int32_t sampleRate); 84 OH_AVFormat* GetOutputDescription(OH_AVCodec* codec); 91 OH_AVErrCode SetParameter(OH_AVCodec* codec, OH_AVFormat* format, int32_t channel, int32_t sampleRate); 95 int32_t Configure(OH_AVFormat *format); 104 bool InitFormat(OH_AVFormat *format); 105 bool ConfigVorbisExtraData(OH_AVFormat *format);
|
/foundation/multimedia/av_codec/test/fuzztest/audiodecoderpreapidescription_fuzzer/ |
H A D | audiodecoderdemo.h | 33 extern void OnOutputFormatChanged(OH_AVCodec* codec, OH_AVFormat* format, void* userData); 80 OH_AVErrCode Configure(OH_AVCodec* codec, OH_AVFormat* format, int32_t channel, int32_t sampleRate); 92 OH_AVFormat* GetOutputDescription(OH_AVCodec* codec); 109 int32_t Configure(OH_AVFormat* format); 118 bool InitFormat(OH_AVFormat *format); 130 OH_AVFormat* format_;
|
/foundation/multimedia/av_codec/test/fuzztest/audiodecoderpreapiflush_fuzzer/ |
H A D | audiodecoderdemo.h | 33 extern void OnOutputFormatChanged(OH_AVCodec* codec, OH_AVFormat* format, void* userData); 80 OH_AVErrCode Configure(OH_AVCodec* codec, OH_AVFormat* format, int32_t channel, int32_t sampleRate); 92 OH_AVFormat* GetOutputDescription(OH_AVCodec* codec); 109 int32_t Configure(OH_AVFormat* format); 118 bool InitFormat(OH_AVFormat *format); 130 OH_AVFormat* format_;
|
/foundation/multimedia/av_codec/test/fuzztest/audiodecoderpreapireset_fuzzer/ |
H A D | audiodecoderdemo.h | 33 extern void OnOutputFormatChanged(OH_AVCodec* codec, OH_AVFormat* format, void* userData); 80 OH_AVErrCode Configure(OH_AVCodec* codec, OH_AVFormat* format, int32_t channel, int32_t sampleRate); 92 OH_AVFormat* GetOutputDescription(OH_AVCodec* codec); 109 int32_t Configure(OH_AVFormat* format); 118 bool InitFormat(OH_AVFormat *format); 130 OH_AVFormat* format_;
|
/foundation/multimedia/av_codec/test/fuzztest/audiodecoderpreapisetparameter_fuzzer/ |
H A D | audiodecoderdemo.h | 33 extern void OnOutputFormatChanged(OH_AVCodec* codec, OH_AVFormat* format, void* userData); 80 OH_AVErrCode Configure(OH_AVCodec* codec, OH_AVFormat* format, int32_t channel, int32_t sampleRate); 92 OH_AVFormat* GetOutputDescription(OH_AVCodec* codec); 109 int32_t Configure(OH_AVFormat* format); 118 bool InitFormat(OH_AVFormat *format); 130 OH_AVFormat* format_;
|
/foundation/multimedia/av_codec/test/fuzztest/audiodecoderpreapi_fuzzer/ |
H A D | audiodecoderdemo.h | 33 extern void OnOutputFormatChanged(OH_AVCodec* codec, OH_AVFormat* format, void* userData); 80 OH_AVErrCode Configure(OH_AVCodec* codec, OH_AVFormat* format, int32_t channel, int32_t sampleRate); 92 OH_AVFormat* GetOutputDescription(OH_AVCodec* codec); 109 int32_t Configure(OH_AVFormat* format); 118 bool InitFormat(OH_AVFormat *format); 130 OH_AVFormat* format_;
|
/foundation/multimedia/av_codec/test/fuzztest/audioencoderpreapiflush_fuzzer/ |
H A D | audioencoderdemo.h | 33 extern void OnOutputFormatChanged(OH_AVCodec* codec, OH_AVFormat* format, void* userData); 86 OH_AVFormat* GetOutputDescription(OH_AVCodec* codec); 106 int32_t Configure(OH_AVFormat* format); 115 void SetFormat(OH_AVFormat *format); 129 OH_AVFormat* format_;
|
/foundation/multimedia/av_codec/test/fuzztest/audioencoderpreapireset_fuzzer/ |
H A D | audioencoderdemo.h | 33 extern void OnOutputFormatChanged(OH_AVCodec* codec, OH_AVFormat* format, void* userData); 86 OH_AVFormat* GetOutputDescription(OH_AVCodec* codec); 106 int32_t Configure(OH_AVFormat* format); 115 void SetFormat(OH_AVFormat *format); 129 OH_AVFormat* format_;
|
/foundation/multimedia/av_codec/test/fuzztest/audiodecoderreset_fuzzer/ |
H A D | audio_decoder_reset_demo.h | 78 OH_AVErrCode Configure(OH_AVCodec* codec, OH_AVFormat* format, int32_t channel, int32_t sampleRate); 84 OH_AVFormat* GetOutputDescription(OH_AVCodec* codec); 91 OH_AVErrCode SetParameter(OH_AVCodec* codec, OH_AVFormat* format, int32_t channel, int32_t sampleRate); 95 int32_t Configure(OH_AVFormat *format); 104 bool InitFormat(OH_AVFormat *format);
|
/foundation/multimedia/av_codec/test/fuzztest/audiodecoderdescription_fuzzer/ |
H A D | audio_decoder_description_demo.h | 78 OH_AVErrCode Configure(OH_AVCodec* codec, OH_AVFormat* format, int32_t channel, int32_t sampleRate); 84 OH_AVFormat* GetOutputDescription(OH_AVCodec* codec); 91 OH_AVErrCode SetParameter(OH_AVCodec* codec, OH_AVFormat* format, int32_t channel, int32_t sampleRate); 95 int32_t Configure(OH_AVFormat *format); 104 bool InitFormat(OH_AVFormat *format);
|
/foundation/multimedia/av_codec/test/fuzztest/audiodecoderflush_fuzzer/ |
H A D | audio_decoder_flush_demo.h | 78 OH_AVErrCode Configure(OH_AVCodec* codec, OH_AVFormat* format, int32_t channel, int32_t sampleRate); 84 OH_AVFormat* GetOutputDescription(OH_AVCodec* codec); 91 OH_AVErrCode SetParameter(OH_AVCodec* codec, OH_AVFormat* format, int32_t channel, int32_t sampleRate); 95 int32_t Configure(OH_AVFormat *format); 104 bool InitFormat(OH_AVFormat *format);
|
/foundation/multimedia/av_codec/test/fuzztest/audioencoderpreapisetparameter_fuzzer/ |
H A D | audioencoderdemo.h | 33 extern void OnOutputFormatChanged(OH_AVCodec* codec, OH_AVFormat* format, void* userData); 86 OH_AVFormat* GetOutputDescription(OH_AVCodec* codec); 106 int32_t Configure(OH_AVFormat* format); 115 void SetFormat(OH_AVFormat *format); 129 OH_AVFormat* format_;
|
/foundation/multimedia/av_codec/test/fuzztest/audioencoderpreapidescription_fuzzer/ |
H A D | audioencoderdemo.h | 33 extern void OnOutputFormatChanged(OH_AVCodec* codec, OH_AVFormat* format, void* userData); 86 OH_AVFormat* GetOutputDescription(OH_AVCodec* codec); 106 int32_t Configure(OH_AVFormat* format); 115 void SetFormat(OH_AVFormat *format); 129 OH_AVFormat* format_;
|