Home
last modified time | relevance | path

Searched refs:OH_AVFormat (Results 1 – 25 of 318) sorted by relevance

12345678910>>...13

/ohos5.0/docs/zh-cn/application-dev/reference/apis-avcodec-kit/
H A Dnative__avformat_8h.md6 声明了OH_AVFormat相关的函数和枚举。
24 | typedef struct [OH_AVFormat](_core.md#oh_avformat) [OH_AVFormat](_core.md#oh_avformat) | 为媒体格式接口定…
39 | struct [OH_AVFormat](_core.md#oh_avformat) \* [OH_AVFormat_Create](_core.md#oh_avformat_create) (…
42 …stroy](_core.md#oh_avformat_destroy) (struct [OH_AVFormat](_core.md#oh_avformat) \*format) | 销毁OH_…
43 …vformat_copy) (struct [OH_AVFormat](_core.md#oh_avformat) \*to, struct [OH_AVFormat](_core.md#oh_a…
44 …vformat_setintvalue) (struct [OH_AVFormat](_core.md#oh_avformat) \*format, const char \*key, int32…
45 …format_setlongvalue) (struct [OH_AVFormat](_core.md#oh_avformat) \*format, const char \*key, int64…
46 …format_setfloatvalue) (struct [OH_AVFormat](_core.md#oh_avformat) \*format, const char \*key, floa…
50 …vformat_getintvalue) (struct [OH_AVFormat](_core.md#oh_avformat) \*format, const char \*key, int32…
51 …format_getlongvalue) (struct [OH_AVFormat](_core.md#oh_avformat) \*format, const char \*key, int64…
[all …]
H A D_core.md47 | typedef struct [OH_AVFormat](#oh_avformat) [OH_AVFormat](#oh_avformat) | 为OH_AVFormat接口定义native层对…
212 ### OH_AVFormat subsection
215 typedef struct OH_AVFormat OH_AVFormat
219OH_AVFormat接口定义native层对象。
810 bool OH_AVFormat_Copy (struct OH_AVFormat *to, struct OH_AVFormat *from)
815 复制OH_AVFormat实例。
835 2. 输入的OH_AVFormat参数结构校验失败。
846 创建OH_AVFormat实例,用于读写数据。
919 销毁OH_AVFormat实例,不允许重复销毁。
968OH_AVFormat中读取指定长度的数据块。
[all …]
H A D_video_encoder.md62OH_AVFormat \* [OH_VideoEncoder_GetOutputDescription](#oh_videoencoder_getoutputdescription) ([OH_…
135 OH_AVErrCode OH_VideoEncoder_Configure (OH_AVCodec *codec, OH_AVFormat *format )
181 | format | 指向OH_AVFormat的指针,用于给出要编码的视频轨的描述。 |
367 OH_AVFormat* OH_VideoEncoder_GetInputDescription (OH_AVCodec *codec)
386 返回指向OH_AVFormat实例的指针。当codec指针非编码实例,或者为空指针,则返回NULL。
392 OH_AVFormat* OH_VideoEncoder_GetOutputDescription (OH_AVCodec *codec)
395 获取编码器输出数据的OH_AVFormat信息。
397 需要注意的是,返回值指向的OH_AVFormat实例的生命周期需要调用者通过调用接口[OH_AVFormat_Destroy](_core.md#oh_avformat_destroy)释放。
411 返回指向OH_AVFormat实例的指针。当输入的codec指针非编码实例,或者为空指针,则返回NULL。
723 OH_AVErrCode OH_VideoEncoder_SetParameter (OH_AVCodec *codec, OH_AVFormat *format )
[all …]
H A D_audio_decoder.md35 …dioDecoder_Configure](#oh_audiodecoder_configure) (OH_AVCodec \*codec, OH_AVFormat \*format) | 要配置…
41 | OH_AVFormat \* [OH_AudioDecoder_GetOutputDescription](#oh_audiodecoder_getoutputdescription) (OH_…
42 …oder_SetParameter](#oh_audiodecoder_setparameter) (OH_AVCodec \*codec, OH_AVFormat \*format) | 配置解…
54 OH_AVErrCode OH_AudioDecoder_Configure (OH_AVCodec *codec, OH_AVFormat *format)
76 | format | 指向OH_AVFormat的指针,给出要解码的音频轨道的描述。 |
234 OH_AVFormat* OH_AudioDecoder_GetOutputDescription (OH_AVCodec *codec)
241 需要注意的是,返回值所指向的OH_AVFormat实例的生命周期需要调用者手动释放。
259 返回OH_AVFormat句柄指针,生命周期将使用下一个GetOutputDescription 刷新,或使用OH_AVCodec销毁。
419 OH_AVErrCode OH_AudioDecoder_SetParameter (OH_AVCodec *codec, OH_AVFormat *format)
441 | format | OH_AVFormat句柄指针。 |
H A D_audio_encoder.md35 …dioEncoder_Configure](#oh_audioencoder_configure) (OH_AVCodec \*codec, OH_AVFormat \*format) | 要配置…
41 | OH_AVFormat \* [OH_AudioEncoder_GetOutputDescription](#oh_audioencoder_getoutputdescription) (OH_…
42 …oder_SetParameter](#oh_audioencoder_setparameter) (OH_AVCodec \*codec, OH_AVFormat \*format) | 配置编…
54 OH_AVErrCode OH_AudioEncoder_Configure (OH_AVCodec *codec, OH_AVFormat *format)
74 | format | 指向OH_AVFormat的指针,给出要编码的音频轨道的描述。 |
232 OH_AVFormat* OH_AudioEncoder_GetOutputDescription (OH_AVCodec *codec)
237 获取编码器输出数据的描述信息。 需要注意的是,返回值所指向的OH_AVFormat实例的生命周期需要调用者手动释放。
255 返回OH_AVFormat句柄指针,生命周期将使用下一个GetOutputDescription 刷新,或使用OH_AVCodec销毁。
415 OH_AVErrCode OH_AudioEncoder_SetParameter (OH_AVCodec *codec, OH_AVFormat *format)
437 | format | OH_AVFormat句柄指针。 |
H A D_audio_codec.md36 …dec_configure) ([OH_AVCodec](_codec_base.md#oh_avcodec) \*codec, const OH_AVFormat \*format) | 配置音…
42 | OH_AVFormat \* [OH_AudioCodec_GetOutputDescription](#oh_audiocodec_getoutputdescription) ([OH_AVC…
43 …_setparameter) ([OH_AVCodec](_codec_base.md#oh_avcodec) \*codec, const OH_AVFormat \*format) | 配置编…
56 OH_AVErrCode OH_AudioCodec_Configure (OH_AVCodec *codec, const OH_AVFormat *format)
70 | format | 指向OH_AVFormat的指针,给出要编解码的音频轨道的描述。 |
197 OH_AVFormat* OH_AudioCodec_GetOutputDescription (OH_AVCodec *codec)
203 需要注意的是,返回值所指向的OH_AVFormat实例的生命周期需要调用[OH_AVFormat_Destroy](_core.md#oh_avformat_destroy)接口手动释放。
217 返回OH_AVFormat句柄指针,生命周期将使用下一个GetOutputDescription刷新,或使用OH_AVCodec销毁。
377 OH_AVErrCode OH_AudioCodec_SetParameter (OH_AVCodec *codec, const OH_AVFormat *format)
391 | format | OH_AVFormat句柄指针。 |
/ohos5.0/foundation/multimedia/media_foundation/interface/kits/c/
H A Dnative_avformat.h49 typedef struct OH_AVFormat OH_AVFormat; typedef
87 struct OH_AVFormat *OH_AVFormat_Create(void);
99 struct OH_AVFormat *OH_AVFormat_CreateAudioFormat(const char *mimeType,
113 struct OH_AVFormat *OH_AVFormat_CreateVideoFormat(const char *mimeType,
125 void OH_AVFormat_Destroy(struct OH_AVFormat *format);
136 bool OH_AVFormat_Copy(struct OH_AVFormat *to, struct OH_AVFormat *from);
148 bool OH_AVFormat_SetIntValue(struct OH_AVFormat *format, const char *key, int32_t value);
172 bool OH_AVFormat_SetFloatValue(struct OH_AVFormat *format, const char *key, float value);
221 bool OH_AVFormat_GetIntValue(struct OH_AVFormat *format, const char *key, int32_t *out);
245 bool OH_AVFormat_GetFloatValue(struct OH_AVFormat *format, const char *key, float *out);
[all …]
/ohos5.0/docs/en/application-dev/reference/apis-avcodec-kit/
H A Dnative__avformat_8h.md6 The **native_avformat.h** file declares the functions and enums related to **OH_AVFormat**.
24 | typedef struct [OH_AVFormat](_core.md#oh_avformat) [OH_AVFormat](_core.md#oh_avformat) | Defines …
39 | struct [OH_AVFormat](_core.md#oh_avformat) \* [OH_AVFormat_Create](_core.md#oh_avformat_create) (…
42 …(_core.md#oh_avformat_destroy) (struct [OH_AVFormat](_core.md#oh_avformat) \*format) | Destroys an…
43 …at_copy) (struct [OH_AVFormat](_core.md#oh_avformat) \*to, struct [OH_AVFormat](_core.md#oh_avform…
44 …[OH_AVFormat](_core.md#oh_avformat) \*format, const char \*key, int32_t value) | Assigns a value o…
45 …[OH_AVFormat](_core.md#oh_avformat) \*format, const char \*key, int64_t value) | Assigns a value o…
46 …[OH_AVFormat](_core.md#oh_avformat) \*format, const char \*key, float value) | Assigns a value of …
50OH_AVFormat](_core.md#oh_avformat) \*format, const char \*key, int32_t \*out) | Obtains the value …
51OH_AVFormat](_core.md#oh_avformat) \*format, const char \*key, int64_t \*out) | Obtains the value …
[all …]
H A D_core.md47 | typedef struct [OH_AVFormat](#oh_avformat) [OH_AVFormat](#oh_avformat) | Defines a struct for a n…
81 …h_avformat_copy) (struct [OH_AVFormat](#oh_avformat) \*to, struct [OH_AVFormat](#oh_avformat) \*fr…
212 ### OH_AVFormat subsection
215 typedef struct OH_AVFormat OH_AVFormat
791 | format | Pointer to an **OH_AVFormat** instance.|
810 bool OH_AVFormat_Copy (struct OH_AVFormat *to, struct OH_AVFormat *from)
815 Copies an **OH_AVFormat** instance.
841 struct OH_AVFormat* OH_AVFormat_Create (void)
929 | format | Pointer to an **OH_AVFormat** instance.|
953 | format | Pointer to an **OH_AVFormat** instance.|
[all …]
/ohos5.0/foundation/multimedia/media_foundation/src/capi/
H A Dnative_avformat.cpp35 struct OH_AVFormat *OH_AVFormat_Create(void) in OH_AVFormat_Create()
37 return new (std::nothrow) OH_AVFormat(); in OH_AVFormat_Create()
43 OH_AVFormat *audioFormat = new (std::nothrow) OH_AVFormat(); in OH_AVFormat_CreateAudioFormat()
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 *to, struct OH_AVFormat *from) in OH_AVFormat_Copy()
78 bool OH_AVFormat_SetIntValue(struct OH_AVFormat *format, const char *key, int32_t value) in OH_AVFormat_SetIntValue()
96 bool OH_AVFormat_SetFloatValue(struct OH_AVFormat *format, const char *key, float value) in OH_AVFormat_SetFloatValue()
135 bool OH_AVFormat_GetIntValue(struct OH_AVFormat *format, const char *key, int32_t *out) in OH_AVFormat_GetIntValue()
155 bool OH_AVFormat_GetFloatValue(struct OH_AVFormat *format, const char *key, float *out) in OH_AVFormat_GetFloatValue()
[all …]
/ohos5.0/foundation/multimedia/av_codec/test/moduletest/audio_decoder/Common/include/
H A DAudioDecoderDemoCommon.h103 OH_AVErrCode NativeConfigure(OH_AVCodec* codec, OH_AVFormat* format);
109 OH_AVFormat* NativeGetOutputDescription(OH_AVCodec* codec);
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* format);
150 OH_AVFormat* NativeRunCaseGetOutputDescription(std::string inputFile,
151 std::string outputFile, const char* name, OH_AVFormat* format);
[all …]
/ohos5.0/foundation/multimedia/av_codec/test/moduletest/audio_encoder/Common/include/
H A DAudioEncoderDemoCommon.h112 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);
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* format);
154 OH_AVFormat* NativeRunCaseGetOutputDescription(std::string inputFile,
155 std::string outputFile, const char* name, OH_AVFormat* format);
[all …]
/ohos5.0/foundation/multimedia/media_foundation/src/capi/common/
H A Dnative_mfmagic.cpp31 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()
/ohos5.0/foundation/multimedia/av_codec/test/moduletest/demuxer/src/
H A Dnet2_test.cpp66 static OH_AVFormat *sourceFormat = nullptr;
67 static OH_AVFormat *trackFormat = nullptr;
268 static OH_AVFormat *trackFormat = nullptr;
287 static OH_AVFormat *trackFormat = nullptr;
306 static OH_AVFormat *trackFormat = nullptr;
325 static OH_AVFormat *trackFormat = nullptr;
344 static OH_AVFormat *trackFormat = nullptr;
363 static OH_AVFormat *trackFormat = nullptr;
382 static OH_AVFormat *trackFormat = nullptr;
401 static OH_AVFormat *trackFormat = nullptr;
[all …]
/ohos5.0/foundation/multimedia/av_codec/test/moduletest/audio_encoder/NativeAPI/
H A DNativeFunctionTest.cpp107 OH_AVFormat* format = OH_AVFormat_Create(); in getAVFormatByEncoder()
497 OH_AVFormat* format = OH_AVFormat_Create();
529 OH_AVFormat* format = OH_AVFormat_Create();
563 OH_AVFormat* format = OH_AVFormat_Create();
595 OH_AVFormat* format = OH_AVFormat_Create();
629 OH_AVFormat* format = OH_AVFormat_Create();
733 OH_AVFormat* format = OH_AVFormat_Create();
764 OH_AVFormat* format = OH_AVFormat_Create();
794 OH_AVFormat* format = OH_AVFormat_Create();
824 OH_AVFormat* format = OH_AVFormat_Create();
[all …]
/ohos5.0/foundation/multimedia/player_framework/frameworks/native/capi/player/
H A Dnative_avplayer.cpp508 OHOS::sptr<OH_AVFormat> avFormat = new (std::nothrow) OH_AVFormat(); in OnSeekDoneCb()
521 OHOS::sptr<OH_AVFormat> avFormat = new (std::nothrow) OH_AVFormat(); in OnSpeedDoneCb()
534 OHOS::sptr<OH_AVFormat> avFormat = new (std::nothrow) OH_AVFormat(); in OnBitRateDoneCb()
588 OHOS::sptr<OH_AVFormat> avFormat = new (std::nothrow) OH_AVFormat(); in OnPositionUpdateCb()
603 OHOS::sptr<OH_AVFormat> avFormat = new (std::nothrow) OH_AVFormat(); in OnVolumeChangeCb()
626 OHOS::sptr<OH_AVFormat> avFormat = new (std::nothrow) OH_AVFormat(); in OnStartRenderFrameCb()
642 OHOS::sptr<OH_AVFormat> avFormat = new (std::nothrow) OH_AVFormat(); in OnVideoSizeChangedCb()
674 OHOS::sptr<OH_AVFormat> avFormat = new (std::nothrow) OH_AVFormat(); in OnBufferingUpdateCb()
700 OHOS::sptr<OH_AVFormat> avFormat = new (std::nothrow) OH_AVFormat(); in OnBitRateCollectedCb()
720 OHOS::sptr<OH_AVFormat> avFormat = new (std::nothrow) OH_AVFormat(); in OnAudioInterruptCb()
[all …]
/ohos5.0/foundation/multimedia/av_codec/test/moduletest/audio_decoder/Avbuffer/src/
H A Dstatus_check_test.cpp55 OH_AVFormat *format = OH_AVFormat_Create();
196 OH_AVFormat *format = OH_AVFormat_Create();
220 OH_AVFormat *format = OH_AVFormat_Create();
244 OH_AVFormat *format = OH_AVFormat_Create();
270 OH_AVFormat *format = OH_AVFormat_Create();
297 OH_AVFormat *format = OH_AVFormat_Create();
321 OH_AVFormat *format = OH_AVFormat_Create();
346 OH_AVFormat *format = OH_AVFormat_Create();
370 OH_AVFormat *format = OH_AVFormat_Create();
393 OH_AVFormat *format = OH_AVFormat_Create();
[all …]
/ohos5.0/foundation/multimedia/av_codec/test/nativedemo/avdemuxer/capi_demo/
H A Davsource_demo.h34 OH_AVFormat* GetSourceFormat();
35 OH_AVFormat* GetTrackFormat(uint32_t trackIndex);
38 OH_AVFormat* avformat_ = nullptr;
39 OH_AVFormat* trackFormat_ = nullptr;
/ohos5.0/foundation/multimedia/av_codec/test/moduletest/audio_decoder/NativeAPI/
H A DNativeFunctionTest.cpp851 OH_AVFormat* format = OH_AVFormat_Create();
894 OH_AVFormat* format = OH_AVFormat_Create();
936 OH_AVFormat* format = OH_AVFormat_Create();
979 OH_AVFormat* format = OH_AVFormat_Create();
1010 OH_AVFormat* format = OH_AVFormat_Create();
1040 OH_AVFormat* format = OH_AVFormat_Create();
1080 OH_AVFormat* format = OH_AVFormat_Create();
1123 OH_AVFormat* format = OH_AVFormat_Create();
1165 OH_AVFormat* format = OH_AVFormat_Create();
1208 OH_AVFormat* format = OH_AVFormat_Create();
[all …]
/ohos5.0/foundation/multimedia/av_codec/interfaces/kits/c/
H A Dnative_avcodec_videoencoder.h60 typedef void (*OH_VideoEncoder_OnNeedInputParameter)(OH_AVCodec *codec, uint32_t index, OH_AVFormat
178 OH_AVErrCode OH_VideoEncoder_Configure(OH_AVCodec *codec, OH_AVFormat *format);
276 OH_AVFormat *OH_VideoEncoder_GetOutputDescription(OH_AVCodec *codec);
294 OH_AVErrCode OH_VideoEncoder_SetParameter(OH_AVCodec *codec, OH_AVFormat *format);
434 OH_AVFormat *OH_VideoEncoder_GetInputDescription(OH_AVCodec *codec);
/ohos5.0/foundation/multimedia/media_foundation/tests/unittest/format/capi/
H A Davformat_capi_mock.h26 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_;
/ohos5.0/foundation/multimedia/av_codec/test/fuzztest/audiodecoder_fuzzer/
H A Daudio_decoder_demo.h78 …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 sampleR…
95 int32_t Configure(OH_AVFormat *format);
104 bool InitFormat(OH_AVFormat *format);
105 bool ConfigVorbisExtraData(OH_AVFormat *format);
/ohos5.0/foundation/multimedia/av_codec/test/unittest/common/common_mock/avformat/capi/
H A Davformat_capi_mock.h26 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_;
/ohos5.0/docs/zh-cn/release-notes/api-diff/OpenHarmony_4.0.8.5/
H A Dnative-apidiff-avcodec.md11 | avmuxer | OH_AVErrCode OH_AVMuxer_AddTrack(OH_AVMuxer \*muxer, int32_t \*trackIndex, OH_AVFormat
19 | avsource | OH_AVFormat *OH_AVSource_GetSourceFormat(OH_AVSource *source); | 新增 | 获取 …
20 | avsource | OH_AVFormat *OH_AVSource_GetTrackFormat(OH_AVSource *source, uint32_t trackCount); …
52 …mat|struct OH_AVFormat \*OH_AVFormat_CreateAudioFormat(const char \*mimeType, int32_t sampleRate, …
53 |avformat|struct OH_AVFormat \*OH_AVFormat_CreateVideoFormat(const char \*mimeType, int32_t width, …
61 | avcodec | OH_AVFormat \*OH_VideoEncoder_GetInputDescription(OH_AVCodec \*codec); | 新增 …
/ohos5.0/foundation/multimedia/av_codec/test/fuzztest/audiodecoderpreapi_fuzzer/
H A Daudiodecoderdemo.h33 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);
108 int32_t Configure(OH_AVFormat* format);
117 bool InitFormat(OH_AVFormat *format);
129 OH_AVFormat* format_;

12345678910>>...13