MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / oh_encode_on_stream_changed

Function oh_encode_on_stream_changed

libavcodec/ohenc.c:232–244  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

230}
231
232static void oh_encode_on_stream_changed(OH_AVCodec *codec, OH_AVFormat *format,
233 void *userdata)
234{
235 AVCodecContext *avctx = userdata;
236 OHCodecEncContext *s = avctx->priv_data;
237
238 if (!OH_AVFormat_GetIntValue(format, OH_MD_KEY_VIDEO_STRIDE, &s->stride))
239 s->stride = avctx->width;
240 if (!OH_AVFormat_GetIntValue(format, OH_MD_KEY_VIDEO_SLICE_HEIGHT, &s->slice_height))
241 s->slice_height = avctx->height;
242
243 s->got_stream_info = true;
244}
245
246static void oh_encode_on_need_input(OH_AVCodec *codec, uint32_t index,
247 OH_AVBuffer *buffer, void *userdata)

Callers 1

oh_encode_send_sw_frameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected