| 230 | } |
| 231 | |
| 232 | static 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 | |
| 246 | static void oh_encode_on_need_input(OH_AVCodec *codec, uint32_t index, |
| 247 | OH_AVBuffer *buffer, void *userdata) |
no outgoing calls
no test coverage detected