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

Function cavsvideo_parse

libavcodec/cavs_parser.c:159–184  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

157}
158
159static int cavsvideo_parse(AVCodecParserContext *s,
160 AVCodecContext *avctx,
161 const uint8_t **poutbuf, int *poutbuf_size,
162 const uint8_t *buf, int buf_size)
163{
164 ParseContext *pc = s->priv_data;
165 int next;
166
167 if(s->flags & PARSER_FLAG_COMPLETE_FRAMES){
168 next= buf_size;
169 }else{
170 next= cavs_find_frame_end(pc, buf, buf_size);
171
172 if (ff_combine_frame(pc, next, &buf, &buf_size) < 0) {
173 *poutbuf = NULL;
174 *poutbuf_size = 0;
175 return buf_size;
176 }
177 }
178
179 cavs_parse_frame(s, avctx, buf, buf_size);
180
181 *poutbuf = buf;
182 *poutbuf_size = buf_size;
183 return next;
184}
185
186const FFCodecParser ff_cavsvideo_parser = {
187 PARSER_CODEC_LIST(AV_CODEC_ID_CAVS),

Callers

nothing calls this directly

Calls 3

cavs_find_frame_endFunction · 0.85
ff_combine_frameFunction · 0.85
cavs_parse_frameFunction · 0.85

Tested by

no test coverage detected