Home
last modified time | relevance | path

Searched refs:frames (Results 1 – 25 of 1119) sorted by relevance

12345678910>>...45

/external/webrtc/modules/video_coding/svc/
Dscalability_structure_l2t2_key_shift_unittest.cc39 std::vector<GenericFrameInfo> frames; in TEST() local
40 wrapper.GenerateFrames(/*num_temporal_units=*/5, frames); in TEST()
41 ASSERT_THAT(frames, SizeIs(10)); in TEST()
43 EXPECT_EQ(frames[0].spatial_id, 0); in TEST()
44 EXPECT_EQ(frames[1].spatial_id, 1); in TEST()
45 EXPECT_EQ(frames[2].spatial_id, 0); in TEST()
46 EXPECT_EQ(frames[3].spatial_id, 1); in TEST()
47 EXPECT_EQ(frames[4].spatial_id, 0); in TEST()
48 EXPECT_EQ(frames[5].spatial_id, 1); in TEST()
49 EXPECT_EQ(frames[6].spatial_id, 0); in TEST()
[all …]
Dscalability_structure_key_svc_unittest.cc32 std::vector<GenericFrameInfo> frames; in TEST() local
35 wrapper.GenerateFrames(/*num_temporal_units=*/2, frames); in TEST()
36 EXPECT_THAT(frames, SizeIs(4)); in TEST()
38 wrapper.GenerateFrames(/*num_temporal_units=*/1, frames); in TEST()
39 EXPECT_THAT(frames, SizeIs(5)); in TEST()
41 wrapper.GenerateFrames(/*num_temporal_units=*/1, frames); in TEST()
42 ASSERT_THAT(frames, SizeIs(7)); in TEST()
44 EXPECT_EQ(frames[0].temporal_id, 0); in TEST()
45 EXPECT_EQ(frames[1].temporal_id, 0); in TEST()
46 EXPECT_EQ(frames[2].temporal_id, 2); in TEST()
[all …]
Dscalability_structure_full_svc_unittest.cc25 std::vector<GenericFrameInfo> frames; in TEST() local
32 wrapper.GenerateFrames(/*num_temporal_units=*/1, frames); in TEST()
33 EXPECT_THAT(frames, SizeIs(1)); in TEST()
39 wrapper.GenerateFrames(/*num_temporal_units=*/1, frames); in TEST()
40 EXPECT_THAT(frames, SizeIs(3)); in TEST()
42 EXPECT_TRUE(wrapper.FrameReferencesAreValid(frames)); in TEST()
50 auto frames = wrapper.GenerateFrames(/*num_temporal_units=*/1); in TEST() local
51 EXPECT_THAT(frames, SizeIs(2)); in TEST()
52 EXPECT_EQ(frames[0].temporal_id, 0); in TEST()
54 frames = wrapper.GenerateFrames(/*num_temporal_units=*/1); in TEST()
[all …]
/external/cronet/net/websockets/
Dwebsocket_deflate_stream_test.cc116 Result Predict(const std::vector<std::unique_ptr<WebSocketFrame>>& frames, in Predict() argument
171 const std::vector<std::unique_ptr<WebSocketFrame>>& frames) { in AddFramesToBeInput() argument
172 for (const auto& frame : frames) in AddFramesToBeInput()
176 const std::vector<std::unique_ptr<WebSocketFrame>>& frames) { in VerifySentFrames() argument
177 for (const auto& frame : frames) in VerifySentFrames()
226 void AppendTo(std::vector<std::unique_ptr<WebSocketFrame>>* frames, in AppendTo() argument
232 frames->push_back(std::move(frame)); in AppendTo()
235 void AppendTo(std::vector<std::unique_ptr<WebSocketFrame>>* frames, in AppendTo() argument
247 frames->push_back(std::move(frame)); in AppendTo()
314 int Call(std::vector<std::unique_ptr<WebSocketFrame>>* frames, in Call() argument
[all …]
Dwebsocket_deflate_stream.cc60 std::vector<std::unique_ptr<WebSocketFrame>>* frames, in ReadFrames() argument
65 frames, base::BindOnce(&WebSocketDeflateStream::OnReadComplete, in ReadFrames()
66 base::Unretained(this), base::Unretained(frames))); in ReadFrames()
70 DCHECK(!frames->empty()); in ReadFrames()
72 return InflateAndReadIfNecessary(frames); in ReadFrames()
76 std::vector<std::unique_ptr<WebSocketFrame>>* frames, in WriteFrames() argument
79 int result = Deflate(frames); in WriteFrames()
82 if (frames->empty()) in WriteFrames()
84 return stream_->WriteFrames(frames, std::move(callback)); in WriteFrames()
102 std::vector<std::unique_ptr<WebSocketFrame>>* frames, in OnReadComplete() argument
[all …]
Dwebsocket_channel_test.cc89 const std::vector<std::unique_ptr<WebSocketFrame>>& frames) { in operator <<() argument
92 for (const auto& frame : frames) { in operator <<()
269 int ReadFrames(std::vector<std::unique_ptr<WebSocketFrame>>* frames, in ReadFrames() argument
274 int WriteFrames(std::vector<std::unique_ptr<WebSocketFrame>>* frames, in WriteFrames() argument
333 std::ostream& operator<<(std::ostream& os, const InitFrame (&frames)[N]) { in operator <<()
342 os << frames[i]; in operator <<()
454 const InitFrame (&frames)[N]) { in EqualsFrames()
455 return ::testing::MakeMatcher(new EqualsFramesMatcher<N>(&frames)); in EqualsFrames()
492 const InitFrame (&frames)[N]) { in PrepareReadFrames()
494 async, error, CreateFrameVector(frames, &result_frame_data_))); in PrepareReadFrames()
[all …]
/external/zstd/contrib/recovery/
Drecover_directory.c43 size_t frames; member
61 ZstdFrames frames; in readFile() local
62 frames.data = (char *)data; in readFile()
63 frames.size = fileSize; in readFile()
64 frames.frames = 0; in readFile()
75 frames.frames += 1; in readFile()
79 frames.maxFrameSize = maxFrameSize; in readFile()
81 return frames; in readFile()
96 ZstdFrames frames = readFile(zstdFile); in main() local
98 if (frames.frames <= 1) { in main()
[all …]
/external/elfutils/src/
Dstack.c63 struct frames struct
65 int frames; member
180 struct frames *frames = (struct frames *) arg; in frame_callback() local
181 int nr = frames->frames; in frame_callback()
182 if (! dwfl_frame_pc (state, &frames->frame[nr].pc, in frame_callback()
183 &frames->frame[nr].isactivation)) in frame_callback()
186 frames->frames++; in frame_callback()
187 if (frames->frames == maxframes) in frame_callback()
190 if (frames->frames == frames->allocated) in frame_callback()
192 frames->allocated *= 2; in frame_callback()
[all …]
/external/google-breakpad/src/processor/
Dstackwalker_address_list_unittest.cc107 const std::vector<StackFrame*>* frames = call_stack.frames(); in CheckCallStack() local
108 ASSERT_EQ(arraysize(kDummyFrames), frames->size()); in CheckCallStack()
110 ASSERT_EQ(kDummyFrames[i], frames->at(i)->instruction); in CheckCallStack()
111 ASSERT_EQ(StackFrame::FRAME_TRUST_PREWALKED, frames->at(i)->trust); in CheckCallStack()
113 ASSERT_EQ(static_cast<const CodeModule*>(&module2), frames->at(0)->module); in CheckCallStack()
114 ASSERT_EQ(static_cast<const CodeModule*>(&module2), frames->at(1)->module); in CheckCallStack()
115 ASSERT_EQ(static_cast<const CodeModule*>(&module2), frames->at(2)->module); in CheckCallStack()
116 ASSERT_EQ(static_cast<const CodeModule*>(&module1), frames->at(3)->module); in CheckCallStack()
117 ASSERT_EQ(static_cast<const CodeModule*>(&module1), frames->at(4)->module); in CheckCallStack()
177 const std::vector<StackFrame*>* frames = call_stack.frames(); in TEST_F() local
[all …]
Dmicrodump_processor_unittest.cc147 ASSERT_EQ(11U, state.threads()->at(0)->frames()->size()); in TEST_F()
150 state.threads()->at(0)->frames()->at(0)->function_name); in TEST_F()
152 state.threads()->at(0)->frames()->at(3)->function_name); in TEST_F()
181 ASSERT_EQ(8U, state.threads()->at(0)->frames()->size()); in TEST_F()
183 state.threads()->at(0)->frames()->at(0)->function_name); in TEST_F()
185 state.threads()->at(0)->frames()->at(1)->function_name); in TEST_F()
187 state.threads()->at(0)->frames()->at(6)->function_name); in TEST_F()
189 state.threads()->at(0)->frames()->at(6)->module->code_file()); in TEST_F()
200 ASSERT_EQ(9U, state.threads()->at(0)->frames()->size()); in TEST_F()
202 state.threads()->at(0)->frames()->at(0)->function_name); in TEST_F()
[all …]
Dstackwalker_amd64_unittest.cc141 const vector<StackFrame *> *frames; member in StackwalkerAMD64Fixture
167 frames = call_stack.frames(); in TEST_F()
168 ASSERT_GE(1U, frames->size()); in TEST_F()
169 StackFrameAMD64 *frame = static_cast<StackFrameAMD64 *>(frames->at(0)); in TEST_F()
193 frames = call_stack.frames(); in TEST_F()
194 ASSERT_GE(1U, frames->size()); in TEST_F()
195 StackFrameAMD64 *frame = static_cast<StackFrameAMD64 *>(frames->at(0)); in TEST_F()
217 frames = call_stack.frames(); in TEST_F()
218 ASSERT_GE(1U, frames->size()); in TEST_F()
219 StackFrameAMD64 *frame = static_cast<StackFrameAMD64 *>(frames->at(0)); in TEST_F()
[all …]
Dstackwalker_arm_unittest.cc143 const vector<StackFrame *> *frames; member in StackwalkerARMFixture
162 frames = call_stack.frames(); in TEST_F()
163 ASSERT_EQ(1U, frames->size()); in TEST_F()
164 StackFrameARM *frame = static_cast<StackFrameARM *>(frames->at(0)); in TEST_F()
185 frames = call_stack.frames(); in TEST_F()
186 ASSERT_EQ(1U, frames->size()); in TEST_F()
187 StackFrameARM *frame = static_cast<StackFrameARM *>(frames->at(0)); in TEST_F()
205 frames = call_stack.frames(); in TEST_F()
206 ASSERT_EQ(1U, frames->size()); in TEST_F()
207 StackFrameARM *frame = static_cast<StackFrameARM *>(frames->at(0)); in TEST_F()
[all …]
Dstackwalker_mips_unittest.cc142 const vector<StackFrame*>* frames; member in StackwalkerMIPSFixture
166 frames = call_stack.frames(); in TEST_F()
167 ASSERT_EQ(1U, frames->size()); in TEST_F()
168 StackFrameMIPS* frame = static_cast<StackFrameMIPS*>(frames->at(0)); in TEST_F()
194 frames = call_stack.frames(); in TEST_F()
195 StackFrameMIPS* frame = static_cast<StackFrameMIPS*>(frames->at(0)); in TEST_F()
218 frames = call_stack.frames(); in TEST_F()
219 StackFrameMIPS* frame = static_cast<StackFrameMIPS*>(frames->at(0)); in TEST_F()
275 frames = call_stack.frames(); in TEST_F()
276 ASSERT_EQ(3U, frames->size()); in TEST_F()
[all …]
Dstackwalker_mips64_unittest.cc143 const vector<StackFrame*>* frames; member in StackwalkerMIPSFixture
168 frames = call_stack.frames(); in TEST_F()
169 ASSERT_EQ(1U, frames->size()); in TEST_F()
170 StackFrameMIPS* frame = static_cast<StackFrameMIPS*>(frames->at(0)); in TEST_F()
197 frames = call_stack.frames(); in TEST_F()
198 StackFrameMIPS* frame = static_cast<StackFrameMIPS*>(frames->at(0)); in TEST_F()
222 frames = call_stack.frames(); in TEST_F()
223 StackFrameMIPS* frame = static_cast<StackFrameMIPS*>(frames->at(0)); in TEST_F()
280 frames = call_stack.frames(); in TEST_F()
281 ASSERT_EQ(3U, frames->size()); in TEST_F()
[all …]
/external/webrtc/api/video/
Drtp_video_frame_assembler_unittests.cc141 RtpVideoFrameAssembler::FrameVector frames; in TEST() local
153 frames); in TEST()
161 frames); in TEST()
163 ASSERT_THAT(frames, SizeIs(2)); in TEST()
165 auto first_frame = frames[0].ExtractFrame(); in TEST()
170 auto second_frame = frames[1].ExtractFrame(); in TEST()
178 RtpVideoFrameAssembler::FrameVector frames; in TEST() local
193 frames); in TEST()
202 frames); in TEST()
204 ASSERT_THAT(frames, SizeIs(2)); in TEST()
[all …]
/external/icing/icing/query/
Dquery-processor.cc236 std::stack<ParserStateFrame> frames; in ParseRawQuery() local
237 frames.emplace(); in ParseRawQuery()
247 frames.emplace(ParserStateFrame()); in ParseRawQuery()
251 if (frames.empty()) { in ParseRawQuery()
256 std::move(frames.top()), document_store_.last_added_document_id()); in ParseRawQuery()
257 frames.pop(); in ParseRawQuery()
261 if (frames.empty()) { in ParseRawQuery()
265 frames.top().saw_exclude = true; in ParseRawQuery()
269 if (frames.empty()) { in ParseRawQuery()
273 frames.top().saw_or = true; in ParseRawQuery()
[all …]
/external/libvpx/tools/3D-Reconstruction/genY4M/
DgenY4M.py24 def generate(args, frames): argument
25 if len(frames) == 0:
28 frames = sorted(frames, key=lambda x: x[0])
30 frames = [f.convert("YCbCr") for _, f in frames]
32 header = "YUV4MPEG2 W%d H%d F%s %s A%s" % (frames[0].width, frames[0].height,
44 for f in frames:
56 frames = [] variable
67 frames.append((idx, img))
68 if len(frames) == 0:
72 print("width: %d" % frames[0][1].width)
[all …]
/external/perfetto/src/profiling/symbolizer/
Dbreakpad_symbolizer_unittest.cc37 std::vector<std::vector<SymbolizedFrame>> frames = in TEST() local
39 EXPECT_TRUE(frames.empty()); in TEST()
75 std::vector<std::vector<SymbolizedFrame>> frames = in TEST() local
77 ASSERT_EQ(frames.size(), 8u); in TEST()
78 EXPECT_EQ(frames[0][0].function_name, "foo_foo()"); in TEST()
79 EXPECT_EQ(frames[1][0].function_name, "bar_bar_bar()"); in TEST()
80 EXPECT_EQ(frames[2][0].function_name, "foo::bar()"); in TEST()
81 EXPECT_EQ(frames[3][0].function_name, "baz()"); in TEST()
82 EXPECT_TRUE(frames[4][0].function_name.empty()); in TEST()
83 EXPECT_TRUE(frames[5][0].function_name.empty()); in TEST()
[all …]
/external/webrtc/modules/audio_coding/codecs/opus/test/
Daudio_ring_buffer.cc33 size_t frames) { in Write() argument
36 const size_t written = WebRtc_WriteBuffer(buffers_[i], data[i], frames); in Write()
37 RTC_CHECK_EQ(written, frames); in Write()
41 void AudioRingBuffer::Read(float* const* data, size_t channels, size_t frames) { in Read() argument
45 WebRtc_ReadBuffer(buffers_[i], nullptr, data[i], frames); in Read()
46 RTC_CHECK_EQ(read, frames); in Read()
60 void AudioRingBuffer::MoveReadPositionForward(size_t frames) { in MoveReadPositionForward() argument
63 static_cast<size_t>(WebRtc_MoveReadPtr(buf, static_cast<int>(frames))); in MoveReadPositionForward()
64 RTC_CHECK_EQ(moved, frames); in MoveReadPositionForward()
68 void AudioRingBuffer::MoveReadPositionBackward(size_t frames) { in MoveReadPositionBackward() argument
[all …]
/external/tinyalsa_new/examples/
Dpcm-readi.c6 static size_t read_frames(void **frames) in read_frames() argument
36 *frames = malloc(frame_size * frames_per_sec); in read_frames()
37 if (*frames == NULL) { in read_frames()
43 int read_count = pcm_readi(pcm, *frames, frames_per_sec); in read_frames()
52 static int write_file(const void *frames, size_t size) in write_file() argument
59 fwrite(frames, 1, size, output_file); in write_file()
66 void *frames = NULL; in main() local
69 size = read_frames(&frames); in main()
74 if (write_file(frames, size) < 0) { in main()
75 free(frames); in main()
[all …]
Dpcm-writei.c18 static size_t read_file(void ** frames){ in read_file() argument
33 *frames = malloc(size); in read_file()
34 if (*frames == NULL) { in read_file()
40 size = fread(*frames, 1, size, input_file); in read_file()
47 static int write_frames(const void * frames, size_t byte_count){ in write_frames() argument
76 int err = pcm_writei(pcm, frames, frame_count); in write_frames()
88 void *frames; in main() local
91 size = read_file(&frames); in main()
96 if (write_frames(frames, size) < 0) { in main()
100 free(frames); in main()
/external/pdfium/core/fxcodec/
Dprogressive_decoder_unittest.cpp84 size_t frames; in TEST() local
85 std::tie(status, frames) = decoder.GetFrames(); in TEST()
87 ASSERT_EQ(1u, frames); in TEST()
117 size_t frames; in TEST() local
118 std::tie(status, frames) = decoder.GetFrames(); in TEST()
120 ASSERT_EQ(1u, frames); in TEST()
148 size_t frames; in TEST() local
149 std::tie(status, frames) = decoder.GetFrames(); in TEST()
151 ASSERT_EQ(1u, frames); in TEST()
180 size_t frames; in TEST() local
[all …]
/external/perfetto/protos/perfetto/metrics/android/
Dsurfaceflinger.proto22 // Counts the number of missed frames in the trace.
25 // Counts the number of missed HWC frames in the trace.
28 // Counts the number of missed GPU frames in the trace.
31 // Calculate the number of missed frames divided by
32 // total frames
35 // Calculate the number of missed HWC frames divided by
36 // total HWC frames
39 // Calculate the number of missed GPU frames divided by
40 // total GPU frames
62 // Counts the number of missed frames in the trace.
[all …]
/external/tensorflow/tensorflow/core/grappler/optimizers/
Dloop_optimizer_test.cc113 FrameView frames; in TEST_F() local
114 TF_EXPECT_OK(frames.InferFromGraphView(view)); in TEST_F()
116 EXPECT_EQ(frames.num_frames(), 1); in TEST_F()
120 ASSERT_EQ(frames.Frames(*invariant_add_node_def).size(), 1); in TEST_F()
121 EXPECT_EQ(frames.Frames(*invariant_add_node_def).back(), 0); in TEST_F()
125 ASSERT_EQ(frames.Frames(*variant_add_node_def).size(), 1); in TEST_F()
126 EXPECT_EQ(frames.Frames(*variant_add_node_def).back(), 0); in TEST_F()
133 FrameView frames; in TEST_F() local
134 TF_EXPECT_OK(frames.InferFromGraphView(view)); in TEST_F()
136 EXPECT_EQ(frames.num_frames(), 1); in TEST_F()
[all …]
/external/python/cpython2/Lib/test/
Dtest_wave.py25 frames = audiotests.fromhex("""\ variable in WavePCM8Test
42 frames = audiotests.fromhex("""\ variable in WavePCM16Test
51 frames = audiotests.byteswap2(frames) variable in WavePCM16Test
69 frames = audiotests.fromhex("""\ variable in WavePCM24Test
84 frames = audiotests.byteswap3(frames) variable in WavePCM24Test
96 frames = audiotests.fromhex("""\ variable in WavePCM32Test
111 frames = audiotests.byteswap4(frames) variable in WavePCM32Test

12345678910>>...45