Home
last modified time | relevance | path

Searched refs:ref (Results 1 - 25 of 1466) sorted by relevance

12345678910>>...59

/third_party/ffmpeg/libavfilter/
H A Dvf_perspective.c42 double ref[4][2]; member
127 double (*ref)[2] = s->ref; in calc_persp_luts()
142 ret = av_expr_parse_and_eval(&s->ref[i][j], s->expr_str[i][j], in calc_persp_luts()
153 x6 = ((ref[0][0] - ref[1][0] - ref[2][0] + ref[3][0]) * in calc_persp_luts()
154 (ref[2][1] - ref[ in calc_persp_luts()
[all...]
H A Dvf_maskedthreshold.c42 void (*maskedthreshold)(const uint8_t *src, const uint8_t *ref, uint8_t *dst, int threshold, int w);
49 AVFrame *src, *ref, *dst; member
80 static void threshold8(const uint8_t *src, const uint8_t *ref, uint8_t *dst, int threshold, int w) in threshold8() argument
83 dst[x] = FFABS(src[x] - ref[x]) <= threshold ? src[x] : ref[x]; in threshold8()
89 const uint16_t *ref = (const uint16_t *)rref; in threshold16() local
93 dst[x] = FFABS(src[x] - ref[x]) <= threshold ? src[x] : ref[x]; in threshold16()
133 const ptrdiff_t ref_linesize = td->ref->linesize[p]; in threshold_slice()
140 const uint8_t *ref in threshold_slice() local
166 AVFrame *out, *src, *ref; process_frame() local
202 AVFilterLink *ref = ctx->inputs[1]; config_output() local
[all...]
/third_party/mesa3d/src/gallium/drivers/llvmpipe/
H A Dlp_scene.c252 /* Decrement texture ref counts in lp_scene_end_rasterization()
255 for (struct resource_ref *ref = scene->resources; ref; ref = ref->next) { in lp_scene_end_rasterization()
256 for (int i = 0; i < ref->count; i++) { in lp_scene_end_rasterization()
260 (void *) ref->resource[i], in lp_scene_end_rasterization()
261 ref->resource[i]->width0, in lp_scene_end_rasterization()
262 ref->resource[i]->height0, in lp_scene_end_rasterization()
263 llvmpipe_resource_size(ref in lp_scene_end_rasterization()
410 struct resource_ref *ref; lp_scene_add_resource_reference() local
477 struct shader_ref *ref, **last = &scene->frag_shaders; lp_scene_add_frag_shader_reference() local
523 const struct resource_ref *ref; lp_scene_is_resource_referenced() local
[all...]
/third_party/mesa3d/src/gallium/frontends/clover/util/
H A Dpointer.hpp77 ref_holder(const ref_holder &ref) : in ref_holder() argument
78 ref_holder(*ref.p) { in ref_holder()
81 ref_holder(ref_holder &&ref) : in ref_holder() argument
82 p(ref.p) { in ref_holder()
83 ref.p = NULL; in ref_holder()
92 operator=(ref_holder ref) { in operator =() argument
93 std::swap(ref.p, p); in operator =()
98 operator==(const ref_holder &ref) const { in operator ==()
99 return p == ref.p; in operator ==()
103 operator!=(const ref_holder &ref) cons
191 intrusive_ref(const intrusive_ref &ref) intrusive_ref() argument
195 intrusive_ref(intrusive_ref &&ref) intrusive_ref() argument
206 operator =(intrusive_ref ref) operator =() argument
[all...]
/third_party/skia/bench/
H A DRefCntBench.cpp30 SkRefCnt ref; variable
32 ref.ref();
33 ref.unref();
65 PlacedRefCnt* ref = new (memory) PlacedRefCnt(); variable
67 ref->ref();
68 ref->unref();
70 ref->unref();
91 SkRefCnt* ref variable
119 SkWeakRefCnt ref; global() variable
151 PlacedWeakRefCnt* ref = new (memory) PlacedWeakRefCnt(); global() variable
177 SkWeakRefCnt* ref = new SkWeakRefCnt(); global() variable
[all...]
/third_party/skia/third_party/externals/abseil-cpp/absl/functional/
H A Dfunction_ref_test.cc39 FunctionRef<int()> ref(&Function); in TEST()
40 EXPECT_EQ(1337, ref()); in TEST()
44 FunctionRef<int()> ref(Function); in TEST()
45 EXPECT_EQ(1337, ref()); in TEST()
52 FunctionRef<int()> ref(NoExceptFunction); in TEST()
53 EXPECT_EQ(1337, ref()); in TEST()
58 FunctionRef<int(std::unique_ptr<int>)> ref(l); in TEST()
59 EXPECT_EQ(42, ref(absl::make_unique<int>(42))); in TEST()
64 FunctionRef<std::unique_ptr<int>()> ref(l); in TEST()
65 EXPECT_EQ(29, *ref()); in TEST()
[all...]
/third_party/typescript/tests/baselines/reference/
H A DnormalizedIntersectionTooComplex.js5 ref: T;
14 "0": { common?: string; "0"?: number, ref?: Obj<Big["0"]> | Func<Big["0"]>; }
15 "1": { common?: string; "1"?: number, ref?: Obj<Big["1"]> | Func<Big["1"]>; }
16 "2": { common?: string; "2"?: number, ref?: Obj<Big["2"]> | Func<Big["2"]>; }
17 "3": { common?: string; "3"?: number, ref?: Obj<Big["3"]> | Func<Big["3"]>; }
18 "4": { common?: string; "4"?: number, ref?: Obj<Big["4"]> | Func<Big["4"]>; }
19 "5": { common?: string; "5"?: number, ref?: Obj<Big["5"]> | Func<Big["5"]>; }
20 "6": { common?: string; "6"?: number, ref?: Obj<Big["6"]> | Func<Big["6"]>; }
21 "7": { common?: string; "7"?: number, ref?: Obj<Big["7"]> | Func<Big["7"]>; }
22 "8": { common?: string; "8"?: number, ref
[all...]
/third_party/skia/third_party/externals/dawn/src/tests/unittests/
H A DRefBaseTests.cpp119 Ref ref(tracker1); in TEST()
122 { ref.Acquire(tracker2); } in TEST()
123 EXPECT_THAT(events, testing::ElementsAre(Event{Action::kRelease, 1}, // release ref in TEST()
131 Ref ref(tracker); in TEST()
134 { DAWN_UNUSED(ref.Detach()); } in TEST()
135 EXPECT_THAT(events, testing::ElementsAre(Event{Action::kAssign, 1, 0} // nullify ref in TEST()
140 Ref ref; in TEST() local
141 EXPECT_EQ(ref.Get(), RefTrackerTraits::kNullValue); in TEST()
150 Ref ref(tracker); in TEST()
155 Event{Action::kRelease, 1} // destruct ref in TEST()
184 Ref ref; TEST() local
218 Ref ref; TEST() local
270 Ref ref; TEST() local
285 Ref ref; TEST() local
297 Ref ref; TEST() local
[all...]
/third_party/skia/third_party/externals/angle2/src/libANGLE/
H A DVaryingPacking.cpp520 void VaryingPacking::collectUserVarying(const ProgramVaryingRef &ref, in collectUserVarying() argument
523 const sh::ShaderVariable *input = ref.frontShader; in collectUserVarying()
524 const sh::ShaderVariable *output = ref.backShader; in collectUserVarying()
529 VaryingInShaderRef frontVarying(ref.frontShaderStage, input); in collectUserVarying()
530 VaryingInShaderRef backVarying(ref.backShaderStage, output); in collectUserVarying()
535 (*uniqueFullNames)[ref.frontShaderStage].insert( in collectUserVarying()
536 mPackedVaryings.back().fullName(ref.frontShaderStage)); in collectUserVarying()
540 (*uniqueFullNames)[ref.backShaderStage].insert( in collectUserVarying()
541 mPackedVaryings.back().fullName(ref.backShaderStage)); in collectUserVarying()
545 void VaryingPacking::collectUserVaryingField(const ProgramVaryingRef &ref, in collectUserVaryingField() argument
614 collectUserVaryingTF(const ProgramVaryingRef &ref, size_t subscript) collectUserVaryingTF() argument
627 collectUserVaryingFieldTF(const ProgramVaryingRef &ref, const sh::ShaderVariable &field, GLuint fieldIndex, GLuint secondaryFieldIndex) collectUserVaryingFieldTF() argument
660 collectVarying(const sh::ShaderVariable &varying, const ProgramVaryingRef &ref, PackMode packMode, VaryingUniqueFullNames *uniqueFullNames) collectVarying() argument
738 collectTFVarying(const std::string &tfVarying, const ProgramVaryingRef &ref, VaryingUniqueFullNames *uniqueFullNames) collectTFVarying() argument
1098 ProgramVaryingRef ref; GetMergedVaryingsFromLinkingVariables() local
1109 ProgramVaryingRef ref; GetMergedVaryingsFromLinkingVariables() local
1138 ProgramVaryingRef ref; GetMergedVaryingsFromLinkingVariables() local
[all...]
/third_party/ffmpeg/libavcodec/
H A Dvp9mvs.c38 VP56mv *pmv, int ref, int z, int idx, int sb) in find_ref_mvs()
141 if (mv->ref[0] == ref) in find_ref_mvs()
143 else if (mv->ref[1] == ref) in find_ref_mvs()
148 if (mv->ref[0] == ref) in find_ref_mvs()
150 else if (mv->ref[1] == ref) in find_ref_mvs()
166 if (mv->ref[ in find_ref_mvs()
37 find_ref_mvs(VP9TileData *td, VP56mv *pmv, int ref, int z, int idx, int sb) find_ref_mvs() argument
[all...]
H A Dhevc_refs.c59 const HEVCFrame *ref, int x0, int y0) in ff_hevc_get_ref_list()
65 return &ref->rpl_tab[ctb_addr_ts]->refPicList[0]; in ff_hevc_get_ref_list()
139 HEVCFrame *ref; in ff_hevc_set_new_ref() local
154 ref = alloc_frame(s); in ff_hevc_set_new_ref()
155 if (!ref) in ff_hevc_set_new_ref()
158 *frame = ref->frame; in ff_hevc_set_new_ref()
159 s->ref = ref; in ff_hevc_set_new_ref()
162 ref->flags = HEVC_FRAME_FLAG_OUTPUT | HEVC_FRAME_FLAG_SHORT_REF; in ff_hevc_set_new_ref()
164 ref in ff_hevc_set_new_ref()
58 ff_hevc_get_ref_list(const HEVCContext *s, const HEVCFrame *ref, int x0, int y0) ff_hevc_get_ref_list() argument
375 HEVCFrame *ref = &s->DPB[i]; find_ref_idx() local
432 HEVCFrame *ref = find_ref_idx(s, poc, use_msb); add_candidate_ref() local
[all...]
/third_party/skia/tests/
H A DRefCntTest.cpp16 SkRefCnt* ref = static_cast<SkRefCnt*>(data); in bounce_ref() local
18 ref->ref(); in bounce_ref()
19 ref->unref(); in bounce_ref()
24 SkRefCnt* ref = new SkRefCnt(); in test_refCnt() local
26 std::thread thing1(bounce_ref, ref); in test_refCnt()
27 std::thread thing2(bounce_ref, ref); in test_refCnt()
32 REPORTER_ASSERT(reporter, ref->unique()); in test_refCnt()
33 ref->unref(); in test_refCnt()
37 SkWeakRefCnt* ref in bounce_weak_ref() local
46 SkWeakRefCnt* ref = static_cast<SkWeakRefCnt*>(data); bounce_weak_weak_ref() local
54 SkWeakRefCnt* ref = new SkWeakRefCnt(); test_weakRefCnt() local
98 void ref() { ref() function in Effect
[all...]
/third_party/skia/third_party/externals/libwebp/src/enc/
H A Dpicture_psnr_enc.c26 const uint8_t* ref, int ref_stride,
38 const uint8_t* ref, int ref_stride, in AccumulateLSIM()
49 const double value = (double)ref[y * ref_stride + x]; in AccumulateLSIM()
67 const uint8_t* ref, int ref_stride, in AccumulateSSE()
72 total_sse += VP8AccumulateSSE(src, ref, w); in AccumulateSSE()
74 ref += ref_stride; in AccumulateSSE()
82 const uint8_t* ref, int ref_stride, in AccumulateSSIM()
92 sum += VP8SSIMGetClipped(src, src_stride, ref, ref_stride, x, y, w, h); in AccumulateSSIM()
97 sum += VP8SSIMGetClipped(src, src_stride, ref, ref_stride, x, y, w, h); in AccumulateSSIM()
102 sum += VP8SSIMGet(src + off1, src_stride, ref in AccumulateSSIM()
37 AccumulateLSIM(const uint8_t* src, int src_stride, const uint8_t* ref, int ref_stride, int w, int h) AccumulateLSIM() argument
66 AccumulateSSE(const uint8_t* src, int src_stride, const uint8_t* ref, int ref_stride, int w, int h) AccumulateSSE() argument
81 AccumulateSSIM(const uint8_t* src, int src_stride, const uint8_t* ref, int ref_stride, int w, int h) AccumulateSSIM() argument
132 WebPPlaneDistortion(const uint8_t* src, size_t src_stride, const uint8_t* ref, size_t ref_stride, int width, int height, size_t x_step, int type, float* distortion, float* result) WebPPlaneDistortion() argument
179 WebPPictureDistortion(const WebPPicture* src, const WebPPicture* ref, int type, float results[5]) WebPPictureDistortion() argument
229 WebPPlaneDistortion(const uint8_t* src, size_t src_stride, const uint8_t* ref, size_t ref_stride, int width, int height, size_t x_step, int type, float* distortion, float* result) WebPPlaneDistortion() argument
247 WebPPictureDistortion(const WebPPicture* src, const WebPPicture* ref, int type, float results[5]) WebPPictureDistortion() argument
[all...]
/third_party/NuttX/drivers/usbdev/gadget/fconfig/include/
H A Dobj_ref.h63 static inline void objref_init(struct obj_ref *ref, int val) in objref_init() argument
65 atomic_set(&ref->refcount, val); in objref_init()
68 static inline void objref_get(struct obj_ref *ref) in objref_get() argument
70 atomic_inc(&ref->refcount); in objref_get()
73 static inline int objref_put(struct obj_ref *ref, void (*release)(struct obj_ref *ref)) in objref_put() argument
75 if (atomic_dec_and_test(&ref->refcount)) in objref_put()
77 release(ref); in objref_put()
83 static inline uint32_t objref_read(struct obj_ref *ref) in objref_read() argument
85 return atomic_read(&ref in objref_read()
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/
H A DCBindingWrapping.h19 #define DEFINE_SIMPLE_CONVERSION_FUNCTIONS(ty, ref) \
20 inline ty *unwrap(ref P) { \
24 inline ref wrap(const ty *P) { \
25 return reinterpret_cast<ref>(const_cast<ty*>(P)); \
28 #define DEFINE_ISA_CONVERSION_FUNCTIONS(ty, ref) \
29 DEFINE_SIMPLE_CONVERSION_FUNCTIONS(ty, ref) \
32 inline T *unwrap(ref P) { \
36 #define DEFINE_STDCXX_CONVERSION_FUNCTIONS(ty, ref) \
37 DEFINE_SIMPLE_CONVERSION_FUNCTIONS(ty, ref) \
40 inline T *unwrap(ref
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/include/llvm/Support/
H A DCBindingWrapping.h20 #define DEFINE_SIMPLE_CONVERSION_FUNCTIONS(ty, ref) \
21 inline ty *unwrap(ref P) { \
25 inline ref wrap(const ty *P) { \
26 return reinterpret_cast<ref>(const_cast<ty*>(P)); \
29 #define DEFINE_ISA_CONVERSION_FUNCTIONS(ty, ref) \
30 DEFINE_SIMPLE_CONVERSION_FUNCTIONS(ty, ref) \
33 inline T *unwrap(ref P) { \
37 #define DEFINE_STDCXX_CONVERSION_FUNCTIONS(ty, ref) \
38 DEFINE_SIMPLE_CONVERSION_FUNCTIONS(ty, ref) \
41 inline T *unwrap(ref
[all...]
/third_party/node/test/js-native-api/test_reference_double_free/
H A Dtest_reference_double_free.c9 napi_ref* ref = data; in Destructor() local
10 NODE_API_CALL_RETURN_VOID(env, napi_delete_reference(env, *ref)); in Destructor()
11 free(ref); in Destructor()
15 napi_ref* ref = data; in NoDeleteDestructor() local
21 free(ref); in NoDeleteDestructor()
28 napi_ref* ref = malloc(sizeof(*ref)); in New() local
36 napi_wrap(env, js_this, ref, Destructor, NULL, ref)); in New()
39 napi_wrap(env, js_this, ref, NoDeleteDestructo in New()
58 napi_ref ref; DeleteImmediately() local
[all...]
/third_party/vixl/test/
H A Dtest-pool-manager.cc107 ForwardReference<int32_t> *ref = *iter; variable
108 VIXL_ASSERT(ref->LocationIsEncodable(location));
109 delete ref;
118 void AddReference(ForwardReference<int32_t> *ref) { in AddReference() argument
119 references_.push_back(ref); in AddReference()
167 ForwardReference<int32_t> *ref = variable
173 AddReference(ref); variable
184 ForwardReference<int32_t> *ref = *iter; variable
185 VIXL_ASSERT(ref->LocationIsEncodable(location));
186 delete ref;
195 AddReference(ForwardReference<int32_t> *ref) AddReference() argument
205 const ForwardReference<int32_t> *ref = *iter; global() variable
217 const ForwardReference<int32_t> *ref = *iter; global() variable
394 ForwardReference<int32_t> *ref = CreateReference(object->GetID(), TEST() local
472 ForwardReference<int32_t> *ref = CreateReference(object->GetID(), TEST() local
549 ForwardReference<int32_t> *ref = TEST() local
604 ForwardReference<int32_t> *ref = new ForwardReference<int32_t>(0 /*location*/, TEST() local
634 ForwardReference<int32_t> *ref = new ForwardReference<int32_t>(0 /*location*/, TEST() local
665 ForwardReference<int32_t> *ref = AddNBranches() local
756 ForwardReference<int32_t> *ref = TEST() local
840 ForwardReference<int32_t> *ref = TEST() local
[all...]
/third_party/spirv-tools/source/opt/
H A Dinst_bindless_check_pass.cpp156 RefAnalysis* ref, InstructionBuilder* builder) { in CloneOriginalReference()
159 if (ref->desc_load_id != 0) { in CloneOriginalReference()
161 ref->ref_inst->GetSingleWordInOperand(kSpvImageSampleImageIdInIdx); in CloneOriginalReference()
165 std::unique_ptr<Instruction> new_ref_inst(ref->ref_inst->Clone(context())); in CloneOriginalReference()
166 uint32_t ref_result_id = ref->ref_inst->result_id(); in CloneOriginalReference()
172 // Update new ref with new image if created in CloneOriginalReference()
178 uid2offset_[ref->ref_inst->unique_id()]; in CloneOriginalReference()
231 RefAnalysis* ref) { in AnalyzeDescriptorReference()
232 ref->ref_inst = ref_inst; in AnalyzeDescriptorReference()
235 ref in AnalyzeDescriptorReference()
155 CloneOriginalReference( RefAnalysis* ref, InstructionBuilder* builder) CloneOriginalReference() argument
230 AnalyzeDescriptorReference(Instruction* ref_inst, RefAnalysis* ref) AnalyzeDescriptorReference() argument
425 GenLastByteIdx(RefAnalysis* ref, InstructionBuilder* builder) GenLastByteIdx() argument
575 GenCheckCode( uint32_t check_id, RefAnalysis* ref, std::vector<std::unique_ptr<BasicBlock>>* new_blocks) GenCheckCode() argument
646 RefAnalysis ref; GenDescCheckCode() local
[all...]
/third_party/mesa3d/src/freedreno/common/
H A Dfreedreno_dev_info.c40 * Compare device 'id' against reference id ('ref') from gpu table.
43 dev_id_compare(const struct fd_dev_id *ref, const struct fd_dev_id *id) in dev_id_compare() argument
45 if (ref->gpu_id && id->gpu_id) { in dev_id_compare()
46 return ref->gpu_id == id->gpu_id; in dev_id_compare()
48 assert(ref->chip_id && id->chip_id); in dev_id_compare()
52 if (ref->chip_id == id->chip_id) in dev_id_compare()
57 if (((ref->chip_id & 0xff) == 0xff) && in dev_id_compare()
58 ((ref->chip_id & UINT64_C(0xffffff00)) == in dev_id_compare()
65 if ((ref->chip_id & WILDCARD_FUSE_ID) == WILDCARD_FUSE_ID) { in dev_id_compare()
69 if (ref in dev_id_compare()
[all...]
/third_party/node/lib/internal/util/
H A Diterable_weak_map.js26 this.#weakMap.set(key, { value, ref: entry.ref });
28 const ref = new SafeWeakRef(key);
29 this.#weakMap.set(key, { value, ref });
30 this.#refSet.add(ref);
33 ref,
34 }, ref);
52 this.#refSet.delete(entry.ref);
53 this.#finalizationGroup.unregister(entry.ref);
76 function cleanup({ set, ref }) {
[all...]
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
H A DSimpleCache.java12 import java.lang.ref.Reference;
13 import java.lang.ref.SoftReference;
14 import java.lang.ref.WeakReference;
44 Reference<Map<K, V>> ref = cacheRef; in get()
45 if (ref != null) { in get()
46 Map<K, V> map = ref.get(); in get()
56 Reference<Map<K, V>> ref = cacheRef; in put()
58 if (ref != null) { in put()
59 map = ref.get(); in put()
64 ref in put()
[all...]
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/
H A DSimpleCache.java13 import java.lang.ref.Reference;
14 import java.lang.ref.SoftReference;
15 import java.lang.ref.WeakReference;
48 Reference<Map<K, V>> ref = cacheRef; in get()
49 if (ref != null) { in get()
50 Map<K, V> map = ref.get(); in get()
60 Reference<Map<K, V>> ref = cacheRef; in put()
62 if (ref != null) { in put()
63 map = ref.get(); in put()
68 ref in put()
[all...]
/third_party/ffmpeg/libavcodec/tests/
H A Djpeg2000dwt.c34 static int test_dwt(int *array, int *ref, int border[2][2], int decomp_levels, int type, int max_diff) { in test_dwt() argument
55 if (FFABS(array[j] - ref[j]) > max_diff) { in test_dwt()
57 j, array[j], ref[j],decomp_levels, border[0][0], border[0][1], border[1][0], border[1][1]); in test_dwt()
60 err2 += (array[j] - ref[j]) * (array[j] - ref[j]); in test_dwt()
61 array[j] = ref[j]; in test_dwt()
73 static int test_dwtf(float *array, float *ref, int border[2][2], int decomp_levels, float max_diff) { in test_dwtf() argument
94 if (FFABS(array[j] - ref[j]) > max_diff) { in test_dwtf()
96 j, array[j], ref[j],decomp_levels, border[0][0], border[0][1], border[1][0], border[1][1]); in test_dwtf()
99 err2 += (array[j] - ref[ in test_dwtf()
112 static int ref [MAX_W * MAX_W]; global() variable
[all...]
/third_party/node/test/node-api/test_instance_data/
H A Daddon.c6 napi_ref* ref = data; in addon_free() local
7 napi_delete_reference(env, *ref); in addon_free()
8 free(ref); in addon_free()
13 napi_ref* ref = malloc(sizeof(*ref)); in addon_new() local
15 napi_create_reference(env, exports, 1, ref); in addon_new()
16 napi_set_instance_data(env, ref, addon_free, NULL); in addon_new()
18 napi_set_instance_data(env, ref, addon_free, NULL); in addon_new()
19 napi_create_reference(env, exports, 1, ref); in addon_new()

Completed in 14 milliseconds

12345678910>>...59