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

Function init_tile_data

libavcodec/av1dec.c:410–426  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

408}
409
410static int init_tile_data(AV1DecContext *s)
411
412{
413 int cur_tile_num =
414 s->raw_frame_header->tile_cols * s->raw_frame_header->tile_rows;
415 if (s->tile_num < cur_tile_num) {
416 int ret = av_reallocp_array(&s->tile_group_info, cur_tile_num,
417 sizeof(TileGroupInfo));
418 if (ret < 0) {
419 s->tile_num = 0;
420 return ret;
421 }
422 }
423 s->tile_num = cur_tile_num;
424
425 return 0;
426}
427
428static int get_tiles_info(AVCodecContext *avctx, const AV1RawTileGroup *tile_group)
429{

Callers 1

get_current_frameFunction · 0.85

Calls 1

av_reallocp_arrayFunction · 0.85

Tested by

no test coverage detected