/third_party/ffmpeg/libavcodec/tests/ |
H A D | cabac.c | 62 static void put_cabac(CABACTestContext *c, uint8_t * const state, int bit) in put_cabac() argument 64 int RangeLPS = ff_h264_lps_range[2 * (c->dec.range & 0xC0) + *state]; in put_cabac() 66 if(bit == ((*state)&1)){ in put_cabac() 68 *state = ff_h264_mlps_state[128 + *state]; in put_cabac() 72 *state= ff_h264_mlps_state[127 - *state]; in put_cabac() 144 uint8_t state[10]= {0}; in main() local 160 put_cabac(&c, state, r[i]&1); in main() 169 memset(state, in main() [all...] |
/third_party/ffmpeg/libavfilter/ |
H A D | vf_repeatfields.c | 27 int state; member 84 int state = s->state; in filter_frame() local 95 if ((state == 0 && !in->top_field_first) || in filter_frame() 96 (state == 1 && in->top_field_first)) { in filter_frame() 98 "state=%d top_field_first=%d repeat_first_field=%d\n", in filter_frame() 99 state, in->top_field_first, in->repeat_pict); in filter_frame() 100 state ^= 1; in filter_frame() 103 if (state == 0) { in filter_frame() 120 state in filter_frame() [all...] |
/third_party/benchmark/test/ |
H A D | internal_threading_test.cc | 37 void BM_MainThread(benchmark::State& state) { in BM_MainThread() argument 38 for (auto _ : state) { in BM_MainThread() 40 state.SetIterationTime(time_frame_in_sec); in BM_MainThread() 42 state.counters["invtime"] = in BM_MainThread() 79 void BM_WorkerThread(benchmark::State& state) { in BM_WorkerThread() argument 80 for (auto _ : state) { in BM_WorkerThread() 83 state.SetIterationTime(time_frame_in_sec); in BM_WorkerThread() 85 state.counters["invtime"] = in BM_WorkerThread() 122 void BM_MainThreadAndWorkerThread(benchmark::State& state) { in BM_MainThreadAndWorkerThread() argument 123 for (auto _ : state) { in BM_MainThreadAndWorkerThread() [all...] |
/third_party/skia/third_party/externals/brotli/java/org/brotli/wrapper/enc/ |
H A D | encoder_jni.cc | 14 /* A structure used to persist the encoder's state in between calls. */ 16 BrotliEncoderState* state; member 69 handle->state = BrotliEncoderCreateInstance(nullptr, nullptr, nullptr); in Java_org_brotli_wrapper_enc_EncoderJNI_nativeCreate() 70 ok = !!handle->state; in Java_org_brotli_wrapper_enc_EncoderJNI_nativeCreate() 76 BrotliEncoderSetParameter(handle->state, BROTLI_PARAM_QUALITY, quality); in Java_org_brotli_wrapper_enc_EncoderJNI_nativeCreate() 80 BrotliEncoderSetParameter(handle->state, BROTLI_PARAM_LGWIN, lgwin); in Java_org_brotli_wrapper_enc_EncoderJNI_nativeCreate() 142 handle->state, op, &in_size, &in, &out_size, nullptr, nullptr); in Java_org_brotli_wrapper_enc_EncoderJNI_nativePush() 146 context[2] = BrotliEncoderHasMoreOutput(handle->state) ? 1 : 0; in Java_org_brotli_wrapper_enc_EncoderJNI_nativePush() 148 context[4] = BrotliEncoderIsFinished(handle->state) ? 1 : 0; in Java_org_brotli_wrapper_enc_EncoderJNI_nativePush() 168 const uint8_t* data = BrotliEncoderTakeOutput(handle->state, in Java_org_brotli_wrapper_enc_EncoderJNI_nativePull() [all...] |
/third_party/skia/third_party/externals/abseil-cpp/absl/algorithm/ |
H A D | equal_benchmark.cc | 40 void BM_absl_equal_benchmark(benchmark::State& state) { in BM_absl_equal_benchmark() argument 41 std::vector<T> xs(state.range(0), T(0)); in BM_absl_equal_benchmark() 43 while (state.KeepRunning()) { in BM_absl_equal_benchmark() 50 void BM_std_equal_benchmark(benchmark::State& state) { in BM_std_equal_benchmark() argument 51 std::vector<T> xs(state.range(0), T(0)); in BM_std_equal_benchmark() 53 while (state.KeepRunning()) { in BM_std_equal_benchmark() 60 void BM_memcmp_benchmark(benchmark::State& state) { in BM_memcmp_benchmark() argument 61 std::vector<T> xs(state.range(0), T(0)); in BM_memcmp_benchmark() 63 while (state.KeepRunning()) { in BM_memcmp_benchmark() 73 void BM_absl_equal_self_benchmark(benchmark::State& state) { in BM_absl_equal_self_benchmark() argument [all...] |
/third_party/ffmpeg/libavcodec/ |
H A D | ipu_parser.c | 38 uint32_t state = ipc->pc.state; in ipu_parse() local 51 state = (state << 8) | buf[i]; in ipu_parse() 52 if (state == 0x1b0) { in ipu_parse() 58 ipc->pc.state = state; in ipu_parse()
|
/third_party/ffmpeg/libavutil/ |
H A D | lfg.h | 34 unsigned int state[64]; member 41 * Seed the state of the ALFG using binary data. 50 * Please also consider a simple LCG like state= state*1664525+1013904223, 54 unsigned a = c->state[c->index & 63] = c->state[(c->index-24) & 63] + c->state[(c->index-55) & 63]; in av_lfg_get() 65 unsigned int a= c->state[(c->index-55) & 63]; in av_mlfg_get() 66 unsigned int b= c->state[(c->index-24) & 63]; in av_mlfg_get() 67 a = c->state[ in av_mlfg_get() [all...] |
/third_party/ffmpeg/libavformat/ |
H A D | avs3dec.c | 33 uint8_t state = 0; in avs3video_probe() local 39 state = code & 0xFF; in avs3video_probe() 41 if (state < AVS3_SEQ_START_CODE) { in avs3video_probe() 48 if (state == AVS3_SEQ_START_CODE) { in avs3video_probe() 52 } else if (AVS3_ISPIC(state)) { in avs3video_probe() 54 } else if ((state == AVS3_UNDEF_START_CODE) || in avs3video_probe() 55 (state > AVS3_VIDEO_EDIT_CODE)) { in avs3video_probe()
|
/third_party/mesa3d/src/asahi/compiler/ |
H A D | agx_validate.c | 56 enum agx_block_state state = AGX_BLOCK_STATE_PHI; in agx_validate_block_form() local 61 agx_validate_assert(state == AGX_BLOCK_STATE_PHI); in agx_validate_block_form() 65 agx_validate_assert(state != AGX_BLOCK_STATE_CF); in agx_validate_block_form() 66 state = AGX_BLOCK_STATE_BODY; in agx_validate_block_form() 70 agx_validate_assert(state != AGX_BLOCK_STATE_CF); in agx_validate_block_form() 71 state = AGX_BLOCK_STATE_CF; in agx_validate_block_form() 83 agx_validate_assert(state == AGX_BLOCK_STATE_CF); in agx_validate_block_form()
|
/third_party/rust/crates/libc/src/unix/bsd/freebsdlike/dragonfly/ |
H A D | mod.rs | 576 fn hash<H: ::hash::Hasher>(&self, state: &mut H) { in hash() 577 self.ut_name.hash(state); in hash() 578 self.ut_id.hash(state); in hash() 579 self.ut_line.hash(state); in hash() 580 self.ut_host.hash(state); in hash() 581 self.ut_unused.hash(state); in hash() 582 self.ut_session.hash(state); in hash() 583 self.ut_type.hash(state); in hash() 584 self.ut_pid.hash(state); in hash() 585 self.ut_exit.hash(state); in hash() [all...] |
/third_party/mesa3d/src/gallium/drivers/zink/ |
H A D | zink_state.c | 180 struct zink_gfx_pipeline_state *state = &ctx->gfx_pipeline_state; in zink_bind_vertex_elements_state() local 183 if (state->element_state != &ctx->element_state->hw_state) { in zink_bind_vertex_elements_state() 226 state->element_state = &ctx->element_state->hw_state; in zink_bind_vertex_elements_state() 228 state->element_state = NULL; in zink_bind_vertex_elements_state() 365 /* TODO: these are multisampling-state, and should be set there instead of in zink_create_blend_state() 416 struct zink_gfx_pipeline_state* state = &zink_context(pctx)->gfx_pipeline_state; in zink_bind_blend_state() local 419 if (state->blend_state != cso) { in zink_bind_blend_state() 420 state->blend_state = cso; in zink_bind_blend_state() 421 state->blend_id = blend ? blend->hash : 0; in zink_bind_blend_state() 422 state in zink_bind_blend_state() 528 struct zink_gfx_pipeline_state *state = &ctx->gfx_pipeline_state; zink_bind_depth_stencil_alpha_state() local 572 struct zink_rasterizer_state *state = CALLOC_STRUCT(zink_rasterizer_state); zink_create_rasterizer_state() local [all...] |
/foundation/resourceschedule/resource_schedule_service/ressched/plugins/cgroup_sched_plugin/framework/sched_controller/ |
H A D | app_state_observer.cpp | 35 CGS_LOGE("%{public}s : validate app state data failed!", __func__); in OnForegroundApplicationChanged() 42 ResSchedUtils::GetInstance().ReportDataInProcess(ResType::RES_TYPE_APP_STATE_CHANGE, appStateData.state, payload); in OnForegroundApplicationChanged() 48 CGS_LOGE("%{public}s : validate ability state data failed!", __func__); in OnAbilityStateChanged() 83 CGS_LOGE("%{public}s : validate extension state data failed!", __func__); in OnExtensionStateChanged() 117 payload["state"] = std::to_string(static_cast<uint32_t>(processData.state)); in MarshallingProcessData() 176 CGS_LOGE("%{public}s : validate app state data failed!", __func__); in OnApplicationStateChanged() 185 auto state = appStateData.state; in OnApplicationStateChanged() local 187 cgHandler->PostTask([cgHandler, uid, pid, bundleName, state] { in OnApplicationStateChanged() 249 auto state = static_cast<int32_t>(processData.state); OnProcessStateChanged() local [all...] |
/foundation/window/window_manager/window_scene/screen_session_manager/src/fold_screen_controller/sensor_fold_state_manager/ |
H A D | single_display_sensor_pocket_fold_state_manager.cpp | 182 FoldStatus state; in GetNextFoldState() local 186 state = FoldStatus::FOLDED; in GetNextFoldState() 189 state = FoldStatus::HALF_FOLD; in GetNextFoldState() 191 state = FoldStatus::EXPAND; in GetNextFoldState() 193 state = currentState; in GetNextFoldState() 194 if (state == FoldStatus::UNKNOWN) { in GetNextFoldState() 195 state = FoldStatus::HALF_FOLD; in GetNextFoldState() 198 return state; in GetNextFoldState() 202 state = currentState; in GetNextFoldState() 204 state in GetNextFoldState() [all...] |
/third_party/libexif/libexif/ |
H A D | exif-loader.c | 78 ExifLoaderState state; member 171 switch (eld->state) { in exif_loader_write() 185 eld->state = EL_READ_SIZE_BYTE_24; in exif_loader_write() 188 eld->state = EL_READ; in exif_loader_write() 226 eld->state = EL_SKIP_BYTES; in exif_loader_write() 233 eld->state = EL_READ_SIZE_BYTE_08; in exif_loader_write() 240 switch (eld->state) { in exif_loader_write() 249 eld->state = EL_READ; in exif_loader_write() 254 eld->state = EL_READ; in exif_loader_write() 264 eld->state in exif_loader_write() [all...] |
/third_party/lzma/C/ |
H A D | Bcj2.c | 19 p->state = BCJ2_STREAM_RC; // BCJ2_DEC_STATE_OK;
in Bcj2Dec_Init() 35 p->state = BCJ2_DEC_STATE_ERROR; /* for case if we return SZ_ERROR_DATA; */
in Bcj2Dec_Decode() 42 p->state = BCJ2_STREAM_RC;
in Bcj2Dec_Decode() 54 unsigned state = p->state;
in Bcj2Dec_Decode() local 56 if (BCJ2_IS_32BIT_STREAM(state))
in Bcj2Dec_Decode() 58 const Byte *cur = p->bufs[state];
in Bcj2Dec_Decode() 59 if (cur == p->lims[state])
in Bcj2Dec_Decode() 61 p->bufs[state] = cur + 4;
in Bcj2Dec_Decode() 67 state in Bcj2Dec_Decode() [all...] |
/third_party/node/deps/openssl/openssl/crypto/md2/ |
H A D | md2_dgst.c | 80 memset(c->state, 0, sizeof(c->state)); in MD2_Init() 127 MD2_INT state[48]; in md2_block() local 129 sp1 = c->state; in md2_block() 133 state[i] = sp1[i]; in md2_block() 134 state[i + 16] = t = d[i]; in md2_block() 135 state[i + 32] = (t ^ sp1[i]); in md2_block() 141 t = state[j + 0] ^= S[t]; in md2_block() 142 t = state[j + 1] ^= S[t]; in md2_block() 143 t = state[ in md2_block() [all...] |
/third_party/pulseaudio/src/pulsecore/ |
H A D | hashmap.c | 234 void *pa_hashmap_iterate(const pa_hashmap *h, void **state, const void **key) { in pa_hashmap_iterate() argument 238 pa_assert(state); in pa_hashmap_iterate() 240 if (*state == (void*) -1) in pa_hashmap_iterate() 243 if (!*state && !h->iterate_list_head) in pa_hashmap_iterate() 246 e = *state ? *state : h->iterate_list_head; in pa_hashmap_iterate() 249 *state = e->iterate_next; in pa_hashmap_iterate() 251 *state = (void*) -1; in pa_hashmap_iterate() 259 *state = (void *) -1; in pa_hashmap_iterate() 267 void *pa_hashmap_iterate_backwards(const pa_hashmap *h, void **state, cons argument [all...] |
/third_party/openssl/crypto/md2/ |
H A D | md2_dgst.c | 80 memset(c->state, 0, sizeof(c->state)); in MD2_Init() 127 MD2_INT state[48]; in md2_block() local 129 sp1 = c->state; in md2_block() 133 state[i] = sp1[i]; in md2_block() 134 state[i + 16] = t = d[i]; in md2_block() 135 state[i + 32] = (t ^ sp1[i]); in md2_block() 141 t = state[j + 0] ^= S[t]; in md2_block() 142 t = state[j + 1] ^= S[t]; in md2_block() 143 t = state[ in md2_block() [all...] |
/third_party/python/Modules/ |
H A D | _queuemodule.c | 18 simplequeue_state *state = _PyModule_GetState(module); in simplequeue_get_state() local 19 assert(state); in simplequeue_get_state() 20 return state; in simplequeue_get_state() 261 simplequeue_state *state = simplequeue_get_state(module); in _queue_SimpleQueue_get_impl() local 263 PyErr_SetNone(state->EmptyError); in _queue_SimpleQueue_get_impl() 337 simplequeue_state *state = simplequeue_get_state(m); in queue_traverse() local 338 Py_VISIT(state->SimpleQueueType); in queue_traverse() 339 Py_VISIT(state->EmptyError); in queue_traverse() 346 simplequeue_state *state = simplequeue_get_state(m); in queue_clear() local 347 Py_CLEAR(state in queue_clear() 407 simplequeue_state *state = simplequeue_get_state(module); queuemodule_exec() local [all...] |
/third_party/vk-gl-cts/modules/gles3/functional/ |
H A D | es3fRboStateQueryTests.cpp | 21 * \brief Rbo state query tests. 68 StateQueryMemoryWriteGuard<GLint> state; in checkRenderbufferComponentSize() local 69 gl.glGetRenderbufferParameteriv(GL_RENDERBUFFER, paramNames[ndx], &state); in checkRenderbufferComponentSize() 71 if (!state.verifyValidity(testCtx)) in checkRenderbufferComponentSize() 74 if (state < referenceSizes[ndx]) in checkRenderbufferComponentSize() 76 testCtx.getLog() << TestLog::Message << "// ERROR: Expected greater or equal to " << referenceSizes[ndx] << "; got " << state << TestLog::EndMessage; in checkRenderbufferComponentSize() 109 StateQueryMemoryWriteGuard<GLint> state; in checkRenderbufferParam() local 110 gl.glGetRenderbufferParameteriv(GL_RENDERBUFFER, pname, &state); in checkRenderbufferParam() 112 if (state.verifyValidity(testCtx)) in checkRenderbufferParam() 113 checkIntEquals(testCtx, state, referenc in checkRenderbufferParam() 118 StateQueryMemoryWriteGuard<GLint> state; checkRenderbufferParamGreaterOrEqual() local 314 StateQueryMemoryWriteGuard<GLint> state; test() local [all...] |
/foundation/CastEngine/castengine_wifi_display/tests/unittest/impl/session/mock/ |
H A D | mock_wfd_source_session.cpp | 29 void MockWfdSourceSession::SetInterruptState(bool state) in SetInterruptState() argument 31 interrupting_ = state; in SetInterruptState() 34 void MockWfdSourceSession::SetWfdState(WfdSessionState state) in SetWfdState() argument 36 wfdState_ = state; in SetWfdState() 44 void MockWfdSourceSession::SetRunningState(SessionRunningStatus state) in SetRunningState() argument 46 status_ = state; in SetRunningState()
|
/foundation/CastEngine/castengine_wifi_display/tests/unittest/impl/rtp/mock/ |
H A D | mock_wfd_rtp_producer.cpp | 32 void MockWfdRtpProducer::SetInitState(bool state) in SetInitState() argument 34 isInit_ = state; in SetInitState() 37 void MockWfdRtpProducer::SetPauseState(bool state) in SetPauseState() argument 39 isPaused_ = state; in SetPauseState() 42 void MockWfdRtpProducer::SetRunningState(bool state) in SetRunningState() argument 44 isRunning_ = state; in SetRunningState()
|
/third_party/mesa3d/src/imagination/vulkan/ |
H A D | pvr_job_context.c | 129 /* This PDS program is passed to the HW via the PPP state words. These only in pvr_pds_pt_store_program_create_and_upload() 202 /* This PDS program is passed to the HW via the PPP state words. These only in pvr_pds_pt_resume_program_create_and_upload() 481 /* USC state update: SR state store. */ in pvr_ctx_sr_programs_setup() 497 /* USC state update: SR state load. */ in pvr_ctx_sr_programs_setup() 531 /* PDS state update: SR state store. */ in pvr_ctx_sr_programs_setup() 541 /* PDS state update: SR state loa in pvr_ctx_sr_programs_setup() [all...] |
/third_party/libinput/src/ |
H A D | evdev-mt-touchpad-gestures.c | 54 * Look at the state diagram in doc/touchpad-gestures-state-machine.svg 61 gesture_state_to_str(enum tp_gesture_state state) in gesture_state_to_str() argument 63 switch (state) { in gesture_state_to_str() 158 switch (tp->gesture.state) { in tp_gesture_start() 198 if (tp->buttons.is_clickpad && tp->buttons.state) in tp_get_raw_pointer_motion() 489 "invalid gesture event %s in state %s\n", in log_gesture_bug() 491 gesture_state_to_str(tp->gesture.state)); in log_gesture_bug() 522 /* If the tap state machine is already in a hold status, for example in tp_gesture_use_hold_timer() 525 if (tp->tap.state in tp_gesture_use_hold_timer() 1350 enum tp_gesture_state state = tp->gesture.state; tp_gesture_end() local [all...] |
/foundation/filemanagement/file_api/interfaces/kits/cj/src/ |
H A D | stream_impl.cpp | 97 auto [state, retLen] = GetActualLen(bufLen, 0, offset, length); in GetReadArg() 98 if (state != SUCCESS_CODE) { in GetReadArg() 161 auto [state, buf, len, offsetResult] = GetReadArg(static_cast<size_t>(buLen), length, 0.0); in ReadCur() 162 if (state != SUCCESS_CODE) { in ReadCur() 164 return {GetErrorCode(state), 0}; in ReadCur() 180 auto [state, buf, len, offsetResult] = GetReadArg(static_cast<size_t>(buLen), length, offset); in Read() 181 if (state != SUCCESS_CODE) { in Read() 183 return {GetErrorCode(state), 0}; in Read() 201 auto [state, bufGuard, buf, len, offsetResult] = in WriteCur() 203 if (state ! in WriteCur() [all...] |