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

Function copy_frame

libavcodec/nuv.c:71–76  ·  view source on GitHub ↗

* \brief copy frame data from buffer to AVFrame, handling stride. * \param f destination AVFrame * \param src source buffer, does not use any line-stride * \param width width of the video frame * \param height height of the video frame */

Source from the content-addressed store, hash-verified

69 * \param height height of the video frame
70 */
71static void copy_frame(AVFrame *f, const uint8_t *src,
72 int width, int height) {
73 AVPicture pic;
74 avpicture_fill(&pic, src, PIX_FMT_YUV420P, width, height);
75 av_picture_copy((AVPicture *)f, &pic, PIX_FMT_YUV420P, width, height);
76}
77
78/**
79 * \brief extract quantization tables from codec data into our context

Callers 1

decode_frameFunction · 0.85

Calls 2

avpicture_fillFunction · 0.85
av_picture_copyFunction · 0.85

Tested by

no test coverage detected