Lines Matching refs:format
126 static int h264_set_extradata(AVCodecContext *avctx, FFAMediaFormat *format)
168 ff_AMediaFormat_setBuffer(format, "csd-0", (void*)data, data_size);
174 ff_AMediaFormat_setBuffer(format, "csd-1", (void*)data, data_size);
192 static int hevc_set_extradata(AVCodecContext *avctx, FFAMediaFormat *format)
266 ff_AMediaFormat_setBuffer(format, "csd-0", data, data_size);
291 static int common_set_extradata(AVCodecContext *avctx, FFAMediaFormat *format)
296 ff_AMediaFormat_setBuffer(format, "csd-0", avctx->extradata, avctx->extradata_size);
310 FFAMediaFormat *format = NULL;
313 format = ff_AMediaFormat_new();
314 if (!format) {
315 av_log(avctx, AV_LOG_ERROR, "Failed to create media format\n");
325 ret = h264_set_extradata(avctx, format);
334 ret = hevc_set_extradata(avctx, format);
343 ret = common_set_extradata(avctx, format);
352 ret = common_set_extradata(avctx, format);
361 ret = common_set_extradata(avctx, format);
370 ret = common_set_extradata(avctx, format);
379 ff_AMediaFormat_setString(format, "mime", codec_mime);
380 ff_AMediaFormat_setInt32(format, "width", avctx->width);
381 ff_AMediaFormat_setInt32(format, "height", avctx->height);
392 if ((ret = ff_mediacodec_dec_init(avctx, s->ctx, codec_mime, format)) < 0) {
410 if (format) {
411 ff_AMediaFormat_delete(format);