Searched refs:enc_pkt (Results 1 – 4 of 4) sorted by relevance
/third_party/ffmpeg/doc/examples/ |
D | vaapi_encode.c | 77 AVPacket enc_pkt; in encode_write() local 79 av_init_packet(&enc_pkt); in encode_write() 80 enc_pkt.data = NULL; in encode_write() 81 enc_pkt.size = 0; in encode_write() 88 ret = avcodec_receive_packet(avctx, &enc_pkt); in encode_write() 92 enc_pkt.stream_index = 0; in encode_write() 93 ret = fwrite(enc_pkt.data, enc_pkt.size, 1, fout); in encode_write() 94 av_packet_unref(&enc_pkt); in encode_write()
|
D | vaapi_transcode.c | 115 AVPacket enc_pkt; in encode_write() local 117 av_init_packet(&enc_pkt); in encode_write() 118 enc_pkt.data = NULL; in encode_write() 119 enc_pkt.size = 0; in encode_write() 126 ret = avcodec_receive_packet(encoder_ctx, &enc_pkt); in encode_write() 130 enc_pkt.stream_index = 0; in encode_write() 131 av_packet_rescale_ts(&enc_pkt, ifmt_ctx->streams[video_stream]->time_base, in encode_write() 133 ret = av_interleaved_write_frame(ofmt_ctx, &enc_pkt); in encode_write()
|
D | transcoding.c | 408 AVPacket enc_pkt; in encode_write_frame() local 418 enc_pkt.data = NULL; in encode_write_frame() 419 enc_pkt.size = 0; in encode_write_frame() 420 av_init_packet(&enc_pkt); in encode_write_frame() 421 ret = enc_func(stream_ctx[stream_index].enc_ctx, &enc_pkt, in encode_write_frame() 430 enc_pkt.stream_index = stream_index; in encode_write_frame() 431 av_packet_rescale_ts(&enc_pkt, in encode_write_frame() 437 ret = av_interleaved_write_frame(ofmt_ctx, &enc_pkt); in encode_write_frame()
|
/third_party/ffmpeg/tests/api/ |
D | api-flac-test.c | 111 AVPacket enc_pkt; in run_test() local 153 av_init_packet(&enc_pkt); in run_test() 154 enc_pkt.data = NULL; in run_test() 155 enc_pkt.size = 0; in run_test() 166 result = avcodec_encode_audio2(enc_ctx, &enc_pkt, in_frame, &got_output); in run_test() 174 result = avcodec_decode_audio4(dec_ctx, out_frame, &got_output, &enc_pkt); in run_test() 181 if (result != enc_pkt.size) { in run_test() 209 av_packet_unref(&enc_pkt); in run_test()
|