Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- AVFrame *frame_for_encoding = recycled_frame_.get();
- av_frame_unref(frame_for_encoding);
- frame_for_encoding->format = AV_PIX_FMT_YUV420P;
- frame_for_encoding->width = image->width();
- frame_for_encoding->height = image->height();
- frame_for_encoding->chroma_location = AVCHROMA_LOC_LEFT;
- // in loop
- frame_for_encoding->buf[i] = buffer->buffer_ref();
- frame_for_encoding->data[i] = frame_for_encoding->buf[i]->data;
- frame_for_encoding->linesize[i] = buffer->linesize();
- // Buf at 0 has linesize: 896
- // Buf at 1 has linesize: 448
- // Buf at 2has linesize: 448
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement