Home
last modified time | relevance | path

Searched refs:g_env (Results 1 – 3 of 3) sorted by relevance

/external/v4l2_codec2/tests/c2_e2e_test/jni/
Dvideo_encoder_e2e_test.cpp48 C2VideoEncoderTestEnvironment* g_env; variable
202 encoder_ = MediaCodecEncoder::Create(g_env->input_file_path(), g_env->codec(), in SetUp()
203 g_env->visible_size(), g_env->use_sw_encoder()); in SetUp()
205 g_env->configure_cb()->OnCodecReady(encoder_.get()); in SetUp()
209 ASSERT_TRUE(encoder_->Configure(static_cast<int32_t>(g_env->requested_bitrate()), in SetUp()
210 static_cast<int32_t>(g_env->requested_framerate()))); in SetUp()
222 if (g_env->output_file_path().empty()) return false; in CreateOutputFile()
224 if (!output_file_.Open(g_env->output_file_path(), g_env->codec())) { in CreateOutputFile()
225 printf("[ERR] Failed to open file: %s\n", g_env->output_file_path().c_str()); in CreateOutputFile()
228 if (!output_file_.WriteHeader(g_env->visible_size(), g_env->requested_framerate(), 0)) { in CreateOutputFile()
[all …]
Dvideo_decoder_e2e_test.cpp30 C2VideoDecoderTestEnvironment* g_env; variable
255 ANativeWindow* surface = useSurface() ? g_env->surface() : nullptr; in SetUp()
256 decoder_ = MediaCodecDecoder::Create(g_env->input_file_path(), g_env->video_codec_profile(), in SetUp()
257 g_env->use_sw_decoder(), g_env->visible_size(), in SetUp()
258 g_env->frame_rate(), surface, renderOnRelease(), in SetUp()
259 g_env->loop(), g_env->use_fake_renderer()); in SetUp()
262 g_env->configure_cb()->OnCodecReady(decoder_.get()); in SetUp()
283 EXPECT_EQ(g_env->visible_size().width, output_format_.visible_size.width); in TearDown()
284 EXPECT_EQ(g_env->visible_size().height, output_format_.visible_size.height); in TearDown()
286 if (g_env->loop()) { in TearDown()
[all …]
/external/pdfium/testing/
Dxfa_unit_test_support.cpp38 XFATestEnvironment* g_env = nullptr; variable
44 g_env = new XFATestEnvironment(); in InitializeXFATestEnvironment()
45 AddGlobalTestEnvironment(g_env); in InitializeXFATestEnvironment()
54 return g_env->FontManager(); in GetGlobalFontManager()