Home
last modified time | relevance | path

Searched refs:pkt (Results 1 – 25 of 40) sorted by relevance

12

/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/test/
Dsuperframe_test.cc45 const vpx_codec_cx_pkt_t *pkt) { in MutateEncoderOutputHook() argument
46 if (pkt->kind != VPX_CODEC_CX_FRAME_PKT) in MutateEncoderOutputHook()
47 return pkt; in MutateEncoderOutputHook()
49 const uint8_t *buffer = reinterpret_cast<uint8_t*>(pkt->data.frame.buf); in MutateEncoderOutputHook()
50 const uint8_t marker = buffer[pkt->data.frame.sz - 1]; in MutateEncoderOutputHook()
55 pkt->data.frame.sz >= index_sz && in MutateEncoderOutputHook()
56 buffer[pkt->data.frame.sz - index_sz] == marker) { in MutateEncoderOutputHook()
60 modified_buf_ = new uint8_t[pkt->data.frame.sz - index_sz]; in MutateEncoderOutputHook()
61 memcpy(modified_buf_, pkt->data.frame.buf, in MutateEncoderOutputHook()
62 pkt->data.frame.sz - index_sz); in MutateEncoderOutputHook()
[all …]
Dencode_test_driver.cc29 while (const vpx_codec_cx_pkt_t *pkt = iter.Next()) { in EncodeFrame() local
30 if (pkt->kind != VPX_CODEC_STATS_PKT) in EncodeFrame()
33 stats_->Append(*pkt); in EncodeFrame()
171 while (const vpx_codec_cx_pkt_t *pkt = iter.Next()) { in RunLoop() local
172 pkt = MutateEncoderOutputHook(pkt); in RunLoop()
174 switch (pkt->kind) { in RunLoop()
179 (const uint8_t*)pkt->data.frame.buf, pkt->data.frame.sz); in RunLoop()
183 ASSERT_GE(pkt->data.frame.pts, last_pts_); in RunLoop()
184 last_pts_ = pkt->data.frame.pts; in RunLoop()
185 FramePktHook(pkt); in RunLoop()
[all …]
Dresize_test.cc64 static void write_ivf_frame_header(const vpx_codec_cx_pkt_t *const pkt, in write_ivf_frame_header() argument
69 if (pkt->kind != VPX_CODEC_CX_FRAME_PKT) in write_ivf_frame_header()
72 pts = pkt->data.frame.pts; in write_ivf_frame_header()
73 mem_put_le32(header, static_cast<unsigned int>(pkt->data.frame.sz)); in write_ivf_frame_header()
208 virtual void PSNRPktHook(const vpx_codec_cx_pkt_t *pkt) { in PSNRPktHook() argument
210 frame0_psnr_ = pkt->data.psnr.psnr[0]; in PSNRPktHook()
211 EXPECT_NEAR(pkt->data.psnr.psnr[0], frame0_psnr_, 2.0); in PSNRPktHook()
214 virtual void FramePktHook(const vpx_codec_cx_pkt_t *pkt) { in FramePktHook() argument
219 if (pkt->data.frame.pts == 0) in FramePktHook()
223 write_ivf_frame_header(pkt, outfile_); in FramePktHook()
[all …]
Dtile_independence_test.cc58 void UpdateMD5(::libvpx_test::Decoder *dec, const vpx_codec_cx_pkt_t *pkt, in UpdateMD5() argument
61 reinterpret_cast<uint8_t*>(pkt->data.frame.buf), pkt->data.frame.sz); in UpdateMD5()
70 virtual void FramePktHook(const vpx_codec_cx_pkt_t *pkt) { in FramePktHook() argument
71 UpdateMD5(fw_dec_, pkt, &md5_fw_order_); in FramePktHook()
72 UpdateMD5(inv_dec_, pkt, &md5_inv_order_); in FramePktHook()
Dencode_test_driver.h67 void Append(const vpx_codec_cx_pkt_t &pkt) { in Append() argument
68 buffer_.append(reinterpret_cast<char *>(pkt.data.twopass_stats.buf), in Append()
69 pkt.data.twopass_stats.sz); in Append()
202 virtual void FramePktHook(const vpx_codec_cx_pkt_t *pkt) {} in FramePktHook() argument
205 virtual void PSNRPktHook(const vpx_codec_cx_pkt_t *pkt) {} in PSNRPktHook() argument
226 const vpx_codec_cx_pkt_t *pkt) { in MutateEncoderOutputHook() argument
227 return pkt; in MutateEncoderOutputHook()
Dcq_test.cc55 virtual void PSNRPktHook(const vpx_codec_cx_pkt_t *pkt) { in PSNRPktHook() argument
56 psnr_ += pow(10.0, pkt->data.psnr.psnr[0] / 10.0); in PSNRPktHook()
60 virtual void FramePktHook(const vpx_codec_cx_pkt_t *pkt) { in FramePktHook() argument
61 file_size_ += pkt->data.frame.sz; in FramePktHook()
Ddatarate_test.cc50 virtual void FramePktHook(const vpx_codec_cx_pkt_t *pkt) { in FramePktHook() argument
52 vpx_codec_pts_t duration = pkt->data.frame.pts - last_pts_; in FramePktHook()
70 const bool key_frame = (pkt->data.frame.flags & VPX_FRAME_IS_KEY) in FramePktHook()
74 << pkt->data.frame.pts; in FramePktHook()
77 const size_t frame_size_in_bits = pkt->data.frame.sz * 8; in FramePktHook()
90 last_pts_ = pkt->data.frame.pts; in FramePktHook()
299 virtual void FramePktHook(const vpx_codec_cx_pkt_t *pkt) { in FramePktHook() argument
301 vpx_codec_pts_t duration = pkt->data.frame.pts - last_pts_; in FramePktHook()
322 << pkt->data.frame.pts; in FramePktHook()
324 const size_t frame_size_in_bits = pkt->data.frame.sz * 8; in FramePktHook()
[all …]
Dvp9_lossless_test.cc44 virtual void PSNRPktHook(const vpx_codec_cx_pkt_t *pkt) { in PSNRPktHook() argument
45 if (pkt->data.psnr.psnr[0] < psnr_) in PSNRPktHook()
46 psnr_= pkt->data.psnr.psnr[0]; in PSNRPktHook()
Dkeyframe_test.cc43 virtual void FramePktHook(const vpx_codec_cx_pkt_t *pkt) { in FramePktHook() argument
44 if (pkt->data.frame.flags & VPX_FRAME_IS_KEY) { in FramePktHook()
45 kf_pts_list_.push_back(pkt->data.frame.pts); in FramePktHook()
Daltref_test.cc44 virtual void FramePktHook(const vpx_codec_cx_pkt_t *pkt) { in FramePktHook() argument
45 if (pkt->data.frame.flags & VPX_FRAME_IS_INVISIBLE) ++altref_count_; in FramePktHook()
Dborders_test.cc42 virtual void FramePktHook(const vpx_codec_cx_pkt_t *pkt) { in FramePktHook() argument
43 if (pkt->data.frame.flags & VPX_FRAME_IS_KEY) { in FramePktHook()
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/third_party/nestegg/test/
Dtest.c83 nestegg_packet * pkt; in main() local
159 r = nestegg_read_packet(ctx, &pkt); in main()
161 nestegg_packet_track(pkt, &track); in main()
162 nestegg_packet_count(pkt, &cnt); in main()
163 nestegg_packet_tstamp(pkt, &tstamp); in main()
167 nestegg_free_packet(pkt); in main()
183 r = nestegg_read_packet(ctx, &pkt); in main()
185 nestegg_packet_track(pkt, &track); in main()
186 nestegg_packet_count(pkt, &cnt); in main()
187 nestegg_packet_tstamp(pkt, &tstamp); in main()
[all …]
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/
Dwebmdec.c120 if (webm_ctx->pkt) { in webm_read_frame()
121 nestegg_free_packet(webm_ctx->pkt); in webm_read_frame()
122 webm_ctx->pkt = NULL; in webm_read_frame()
125 if (nestegg_read_packet(webm_ctx->nestegg_ctx, &webm_ctx->pkt) <= 0 || in webm_read_frame()
126 nestegg_packet_track(webm_ctx->pkt, &track)) { in webm_read_frame()
131 if (nestegg_packet_count(webm_ctx->pkt, &webm_ctx->chunks)) in webm_read_frame()
137 if (nestegg_packet_data(webm_ctx->pkt, webm_ctx->chunk, in webm_read_frame()
163 nestegg_packet *pkt; in webm_guess_framerate() local
166 if (nestegg_read_packet(webm_ctx->nestegg_ctx, &pkt) <= 0) in webm_guess_framerate()
169 nestegg_packet_track(pkt, &track); in webm_guess_framerate()
[all …]
Dwebmenc.c215 const vpx_codec_cx_pkt_t *pkt) { in write_webm_block() argument
224 pts_ms = pkt->data.frame.pts * 1000 in write_webm_block()
238 is_keyframe = (pkt->data.frame.flags & VPX_FRAME_IS_KEY); in write_webm_block()
272 block_length = (unsigned int)pkt->data.frame.sz + 4; in write_webm_block()
285 if (pkt->data.frame.flags & VPX_FRAME_IS_INVISIBLE) in write_webm_block()
289 Ebml_Write(glob, pkt->data.frame.buf, (unsigned int)pkt->data.frame.sz); in write_webm_block()
Dvpxstats.c97 void stats_write(stats_io_t *stats, const void *pkt, size_t len) { in stats_write() argument
99 (void) fwrite(pkt, 1, len, stats->file); in stats_write()
114 memcpy(stats->buf_ptr, pkt, len); in stats_write()
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vpx/src/
Dvpx_encoder.c260 const vpx_codec_cx_pkt_t *pkt = NULL; in vpx_codec_get_cx_data() local
270 pkt = ctx->iface->enc.get_cx_data(ctx->priv->alg_priv, iter); in vpx_codec_get_cx_data()
273 if (pkt && pkt->kind == VPX_CODEC_CX_FRAME_PKT) { in vpx_codec_get_cx_data()
281 pkt->data.raw.buf != dst_buf && in vpx_codec_get_cx_data()
282 pkt->data.raw.sz + priv->enc.cx_data_pad_before + in vpx_codec_get_cx_data()
286 memcpy(dst_buf + priv->enc.cx_data_pad_before, pkt->data.raw.buf, in vpx_codec_get_cx_data()
287 pkt->data.raw.sz); in vpx_codec_get_cx_data()
288 *modified_pkt = *pkt; in vpx_codec_get_cx_data()
292 pkt = modified_pkt; in vpx_codec_get_cx_data()
295 if (dst_buf == pkt->data.raw.buf) { in vpx_codec_get_cx_data()
[all …]
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/examples/
Dtwopass_encoder.c77 const vpx_codec_cx_pkt_t *pkt = NULL; in get_frame_stats() local
83 while ((pkt = vpx_codec_get_cx_data(ctx, &iter)) != NULL) { in get_frame_stats()
84 if (pkt->kind == VPX_CODEC_STATS_PKT) { in get_frame_stats()
85 const uint8_t *const pkt_buf = pkt->data.twopass_stats.buf; in get_frame_stats()
86 const size_t pkt_size = pkt->data.twopass_stats.sz; in get_frame_stats()
102 const vpx_codec_cx_pkt_t *pkt = NULL; in encode_frame() local
108 while ((pkt = vpx_codec_get_cx_data(ctx, &iter)) != NULL) { in encode_frame()
109 if (pkt->kind == VPX_CODEC_CX_FRAME_PKT) { in encode_frame()
110 const int keyframe = (pkt->data.frame.flags & VPX_FRAME_IS_KEY) != 0; in encode_frame()
112 if (!vpx_video_writer_write_frame(writer, pkt->data.frame.buf, in encode_frame()
[all …]
Dvp8cx_set_ref.c73 const vpx_codec_cx_pkt_t *pkt = NULL; in encode_frame() local
79 while ((pkt = vpx_codec_get_cx_data(codec, &iter)) != NULL) { in encode_frame()
80 if (pkt->kind == VPX_CODEC_CX_FRAME_PKT) { in encode_frame()
81 const int keyframe = (pkt->data.frame.flags & VPX_FRAME_IS_KEY) != 0; in encode_frame()
83 pkt->data.frame.buf, in encode_frame()
84 pkt->data.frame.sz, in encode_frame()
85 pkt->data.frame.pts)) { in encode_frame()
Dvp8_multi_resolution_encoder.c157 const vpx_codec_cx_pkt_t *pkt) in write_ivf_frame_header() argument
162 if(pkt->kind != VPX_CODEC_CX_FRAME_PKT) in write_ivf_frame_header()
165 pts = pkt->data.frame.pts; in write_ivf_frame_header()
166 mem_put_le32(header, pkt->data.frame.sz); in write_ivf_frame_header()
366 const vpx_codec_cx_pkt_t *pkt[NUM_ENCODERS]; in main() local
397 while( (pkt[i] = vpx_codec_get_cx_data(&codec[i], &iter[i])) ) in main()
400 switch(pkt[i]->kind) { in main()
402 write_ivf_frame_header(outfile[i], pkt[i]); in main()
403 (void) fwrite(pkt[i]->data.frame.buf, 1, in main()
404 pkt[i]->data.frame.sz, outfile[i]); in main()
[all …]
Dsimple_encoder.c127 const vpx_codec_cx_pkt_t *pkt = NULL; in encode_frame() local
133 while ((pkt = vpx_codec_get_cx_data(codec, &iter)) != NULL) { in encode_frame()
134 if (pkt->kind == VPX_CODEC_CX_FRAME_PKT) { in encode_frame()
135 const int keyframe = (pkt->data.frame.flags & VPX_FRAME_IS_KEY) != 0; in encode_frame()
137 pkt->data.frame.buf, in encode_frame()
138 pkt->data.frame.sz, in encode_frame()
139 pkt->data.frame.pts)) { in encode_frame()
Dset_maps.c132 const vpx_codec_cx_pkt_t *pkt = NULL; in encode_frame() local
138 while ((pkt = vpx_codec_get_cx_data(codec, &iter)) != NULL) { in encode_frame()
139 if (pkt->kind == VPX_CODEC_CX_FRAME_PKT) { in encode_frame()
140 const int keyframe = (pkt->data.frame.flags & VPX_FRAME_IS_KEY) != 0; in encode_frame()
142 pkt->data.frame.buf, in encode_frame()
143 pkt->data.frame.sz, in encode_frame()
144 pkt->data.frame.pts)) { in encode_frame()
Dvpx_temporal_scalable_patterns.c599 const vpx_codec_cx_pkt_t *pkt; in main() local
623 while ( (pkt = vpx_codec_get_cx_data(&codec, &iter)) ) { in main()
625 switch (pkt->kind) { in main()
629 vpx_video_writer_write_frame(outfile[i], pkt->data.frame.buf, in main()
630 pkt->data.frame.sz, pts); in main()
632 rc.layer_encoding_bitrate[i] += 8.0 * pkt->data.frame.sz; in main()
635 !(pkt->data.frame.flags & VPX_FRAME_IS_KEY)) { in main()
636 rc.layer_avg_frame_size[i] += 8.0 * pkt->data.frame.sz; in main()
638 fabs(8.0 * pkt->data.frame.sz - rc.layer_pfb[i]) / in main()
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp8/
Dvp8_cx_iface.c888 vpx_codec_cx_pkt_t pkt; in vp8e_encode() local
895 pkt.kind = VPX_CODEC_CX_FRAME_PKT; in vp8e_encode()
896 pkt.data.frame.pts = in vp8e_encode()
899 pkt.data.frame.duration = (unsigned long) in vp8e_encode()
902 pkt.data.frame.flags = lib_flags << 16; in vp8e_encode()
905 pkt.data.frame.flags |= VPX_FRAME_IS_KEY; in vp8e_encode()
909 pkt.data.frame.flags |= VPX_FRAME_IS_INVISIBLE; in vp8e_encode()
916 pkt.data.frame.pts = ((cpi->last_time_stamp_seen in vp8e_encode()
919 pkt.data.frame.duration = 0; in vp8e_encode()
923 pkt.data.frame.flags |= VPX_FRAME_IS_DROPPABLE; in vp8e_encode()
[all …]
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/third_party/nestegg/src/
Dnestegg.c1248 nestegg_packet * pkt; in ne_read_block() local
1358 pkt = ne_alloc(sizeof(*pkt)); in ne_read_block()
1359 pkt->track = track; in ne_read_block()
1360 pkt->timecode = abs_timecode * tc_scale * track_scale; in ne_read_block()
1363 block_id == ID_BLOCK ? "" : "simple", pkt->track, pkt->timecode / 1e9, flags, frames); in ne_read_block()
1368 nestegg_free_packet(pkt); in ne_read_block()
1378 nestegg_free_packet(pkt); in ne_read_block()
1383 pkt->frame = f; in ne_read_block()
1389 *data = pkt; in ne_read_block()
1395 ne_read_discard_padding(nestegg * ctx, nestegg_packet * pkt) in ne_read_discard_padding() argument
[all …]
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/
Dvp9_cx_iface.c780 vpx_codec_cx_pkt_t pkt; in vp9e_encode() local
798 pkt.kind = VPX_CODEC_CX_FRAME_PKT; in vp9e_encode()
799 pkt.data.frame.pts = in vp9e_encode()
802 pkt.data.frame.duration = (unsigned long) in vp9e_encode()
805 pkt.data.frame.flags = lib_flags << 16; in vp9e_encode()
808 pkt.data.frame.flags |= VPX_FRAME_IS_KEY; in vp9e_encode()
811 pkt.data.frame.flags |= VPX_FRAME_IS_INVISIBLE; in vp9e_encode()
817 pkt.data.frame.pts = ((cpi->last_time_stamp_seen in vp9e_encode()
820 pkt.data.frame.duration = 0; in vp9e_encode()
824 pkt.data.frame.flags |= VPX_FRAME_IS_DROPPABLE; in vp9e_encode()
[all …]

12