Lines Matching defs:pkt
1195 static int encode_frame(AVCodecContext *c, AVFrame *frame, AVPacket *pkt)
1205 ret = avcodec_receive_packet(c, pkt);
1207 size += pkt->size;
1208 av_packet_unref(pkt);
1218 AVPacket *pkt;
1229 pkt = av_packet_alloc();
1230 if (!pkt)
1309 out_size = encode_frame(c, s->tmp_frames[0], pkt);
1324 out_size = encode_frame(c, s->tmp_frames[i + 1], pkt);
1334 out_size = encode_frame(c, NULL, pkt);
1350 av_packet_unref(pkt);
1357 av_packet_free(&pkt);
1664 int ff_mpv_encode_picture(AVCodecContext *avctx, AVPacket *pkt,
1692 if ((ret = ff_alloc_packet(avctx, pkt, pkt_size)) < 0)
1694 pkt->size = avctx->internal->byte_buffer_size - AV_INPUT_BUFFER_PADDING_SIZE;
1696 s->mb_info_ptr = av_packet_new_side_data(pkt,
1706 uint8_t *start = pkt->data + (size_t)(((int64_t) pkt->size) * start_y / h);
1707 uint8_t *end = pkt->data + (size_t)(((int64_t) pkt->size) * end_y / h);
1721 pkt->data = s->pb.buf;
1722 pkt->size = avctx->internal->byte_buffer_size;
1781 ff_side_data_set_encoder_stats(pkt, s->current_picture.f->quality,
1866 ret = av_packet_add_side_data(pkt, AV_PKT_DATA_CPB_PROPERTIES,
1875 pkt->pts = s->current_picture.f->pts;
1878 pkt->dts = pkt->pts - s->dts_delta;
1880 pkt->dts = s->reordered_pts;
1881 s->reordered_pts = pkt->pts;
1883 pkt->dts = pkt->pts;
1885 pkt->flags |= AV_PKT_FLAG_KEY;
1887 av_packet_shrink_side_data(pkt, AV_PKT_DATA_H263_MB_INFO, s->mb_info_size);
1900 pkt->size = s->frame_bits / 8;
1901 *got_packet = !!pkt->size;