Home
last modified time | relevance | path

Searched refs:sad (Results 1 – 17 of 17) sorted by relevance

/frameworks/av/media/module/codecs/m4v_h263/enc/src/
Dsad.cpp109 Int sad = 0; in SAD_MB_HTFM_Collect() local
129 sad = SUB_SAD(sad, tmp, tmp2); in SAD_MB_HTFM_Collect()
132 sad = SUB_SAD(sad, tmp, tmp2); in SAD_MB_HTFM_Collect()
135 sad = SUB_SAD(sad, tmp, tmp2); in SAD_MB_HTFM_Collect()
139 sad = SUB_SAD(sad, tmp, tmp2); in SAD_MB_HTFM_Collect()
144 sad = SUB_SAD(sad, tmp, tmp2); in SAD_MB_HTFM_Collect()
147 sad = SUB_SAD(sad, tmp, tmp2); in SAD_MB_HTFM_Collect()
150 sad = SUB_SAD(sad, tmp, tmp2); in SAD_MB_HTFM_Collect()
154 sad = SUB_SAD(sad, tmp, tmp2); in SAD_MB_HTFM_Collect()
159 sad = SUB_SAD(sad, tmp, tmp2); in SAD_MB_HTFM_Collect()
[all …]
Dsad_halfpel.cpp67 Int sad = 0; in HalfPel1_SAD_MB() local
84 sad += PV_ABS(temp); in HalfPel1_SAD_MB()
87 if (sad > dmin) in HalfPel1_SAD_MB()
88 return sad; in HalfPel1_SAD_MB()
92 return sad; in HalfPel1_SAD_MB()
99 Int sad = 0; in HalfPel2_SAD_MB() local
115 sad += PV_ABS(temp); in HalfPel2_SAD_MB()
118 if (sad > dmin) in HalfPel2_SAD_MB()
119 return sad; in HalfPel2_SAD_MB()
126 return sad; in HalfPel2_SAD_MB()
[all …]
Dsad_halfpel_inline.h34 __inline int32 INTERP1_SUB_SAD(int32 sad, int32 tmp, int32 tmp2) in INTERP1_SUB_SAD() argument
37 if (tmp > 0) sad += tmp; in INTERP1_SUB_SAD()
38 else sad -= tmp; in INTERP1_SUB_SAD()
40 return sad; in INTERP1_SUB_SAD()
43 __inline int32 INTERP2_SUB_SAD(int32 sad, int32 tmp, int32 tmp2) in INTERP2_SUB_SAD() argument
46 if (tmp > 0) sad += tmp; in INTERP2_SUB_SAD()
47 else sad -= tmp; in INTERP2_SUB_SAD()
49 return sad; in INTERP2_SUB_SAD()
54 __inline int32 INTERP1_SUB_SAD(int32 sad, int32 tmp, int32 tmp2)
60 add sad, sad, tmp ;
[all …]
Dfastcodemb.cpp52 Int sad, k, CBP, mbnum = video->mbnum; in CodeMB_H263() local
143 sad = video->mot[mbnum][k+1].sad; in CodeMB_H263()
168 sad = getBlockSum(input, width); in CodeMB_H263()
178 sad = Sad8x8(input, pred, width); in CodeMB_H263()
187 sad = getBlockSum(input, width); in CodeMB_H263()
190 sad = Sad8x8(input, pred, width); in CodeMB_H263()
194 if (sad < DctTh1 && !(shortHeader && intra)) /* all-zero */ in CodeMB_H263()
200 else if (sad < 18*QP/*(QP<<4)*/) /* DC-only */ in CodeMB_H263()
214 if (sad < 22*QP/*(QP<<4)+(QP<<1)*/) /* 2x2 DCT */ in CodeMB_H263()
220 else if (sad < (QP << 5)) /* 4x4 DCT */ in CodeMB_H263()
[all …]
Dmotion_est.cpp198 totalSAD += mot_mb[0].sad; in MotionEstimation()
295 … fprintf(fp_debug, "#%d (%d,%d,%d) : ", mbnum, mot_mb[0].x, mot_mb[0].y, mot_mb[0].sad); in MotionEstimation()
297 mot_mb[1].x, mot_mb[1].y, mot_mb[1].sad, in MotionEstimation()
298 mot_mb[2].x, mot_mb[2].y, mot_mb[2].sad, in MotionEstimation()
299 mot_mb[3].x, mot_mb[3].y, mot_mb[3].sad, in MotionEstimation()
300 mot_mb[4].x, mot_mb[4].y, mot_mb[4].sad); in MotionEstimation()
303 sad16 = mot_mb[0].sad; in MotionEstimation()
307 sad8 = mot_mb[1].sad + mot_mb[2].sad + mot_mb[3].sad + mot_mb[4].sad; in MotionEstimation()
350 fprintf(fp_debug, "(%d,%d), %d\n", mot_mb[0].x, mot_mb[0].y, mot_mb[0].sad); in MotionEstimation()
353 skip_halfpel_4mv = ((sad16 - mot_mb[0].sad) <= (MB_Nb >> 1) + 1); in MotionEstimation()
[all …]
Dsad_inline.h33 __inline int32 SUB_SAD(int32 sad, int32 tmp, int32 tmp2) in SUB_SAD() argument
36 if (tmp > 0) sad += tmp; in SUB_SAD()
37 else sad -= tmp; in SUB_SAD()
39 return sad; in SUB_SAD()
177 __inline int32 SUB_SAD(int32 sad, int32 tmp, int32 tmp2)
183 add sad, sad, tmp ;
186 return sad;
346 __inline int32 SUB_SAD(int32 sad, int32 tmp, int32 tmp2)
350 register int32 ss = sad;
Dfindhalfpel.cpp123 dmin = mot[0].sad; in FindHalfPelMB()
168 mot[0].sad = dmin; in FindHalfPelMB()
241 dmin = mot[comp+1].sad; in FindHalfPelBlk()
264 mot[comp+1].sad = dmin; in FindHalfPelBlk()
272 mot[k].sad = (mot[0].sad + 2) >> 2; in FindHalfPelBlk()
Dme_utils.cpp378 mot_mb[1].sad = sad1; in ComputeMBSum_C()
379 mot_mb[2].sad = sad2; in ComputeMBSum_C()
380 mot_mb[3].sad = sad3; in ComputeMBSum_C()
381 mot_mb[4].sad = sad4; in ComputeMBSum_C()
382 mot_mb[0].sad = sad1 + sad2 + sad3 + sad4; in ComputeMBSum_C()
Dmp4lib_int.h158 Int sad; /* SAD */ member
/frameworks/base/services/core/java/com/android/server/hdmi/
DHdmiUtils.java674 private static byte[] readSad(String sad) { in readSad() argument
675 if (sad == null || sad.length() == 0) { in readSad()
678 byte[] sadBytes = HexDump.hexStringToByteArray(sad); in readSad()
765 public final byte[] sad; field in HdmiUtils.CodecSad
767 public CodecSad(int audioCodec, byte[] sad) { in CodecSad() argument
769 this.sad = sad; in CodecSad()
772 public CodecSad(int audioCodec, String sad) { in CodecSad() argument
774 this.sad = HexDump.hexStringToByteArray(sad); in CodecSad()
782 && Arrays.equals(that.sad, this.sad); in equals()
791 Arrays.hashCode(sad)); in hashCode()
DRequestSadAction.java170 byte[] sad = new byte[]{cmd.getParams()[i], cmd.getParams()[i + 1], in processCommand()
172 updateResult(sad); in processCommand()
213 private void updateResult(byte[] sad) { in updateResult() argument
214 mSupportedSads.add(sad); in updateResult()
DHdmiCecLocalDeviceAudioSystem.java544 byte[] sad = getSupportedShortAudioDescriptor(deviceInfo, audioCodec); in getSupportedShortAudioDescriptors()
545 if (sad != null) { in getSupportedShortAudioDescriptors()
546 if (sad.length == 3) { in getSupportedShortAudioDescriptors()
548 sads.add(sad); in getSupportedShortAudioDescriptors()
552 sad.length, audioCodec); in getSupportedShortAudioDescriptors()
578 map.put(codecSad.audioCodec, codecSad.sad); in getSupportedShortAudioDescriptorsFromConfig()
582 byte[] sad = map.get(audioCodecs[i]); in getSupportedShortAudioDescriptorsFromConfig()
583 if (sad != null && sad.length == 3) { in getSupportedShortAudioDescriptorsFromConfig()
584 sads.add(sad); in getSupportedShortAudioDescriptorsFromConfig()
595 for (byte[] sad : sads) { in getShortAudioDescriptorBytes()
[all …]
DHdmiCecLocalDeviceTv.java896 .map(sad -> new AudioDescriptor(AudioDescriptor.STANDARD_EDID, in notifyArcStatusToAudioService()
897 AudioProfile.AUDIO_ENCAPSULATION_TYPE_NONE, sad)) in notifyArcStatusToAudioService()
/frameworks/av/media/module/codecs/m4v_h263/enc/
DAndroid.bp61 "src/sad.cpp",
/frameworks/base/services/tests/servicestests/src/com/android/server/hdmi/
DHdmiUtilsTest.java122 byte[] sad = {0x0a, 0x1b, 0x2c}; in testEqualsCodecSad()
126 new HdmiUtils.CodecSad(Constants.AUDIO_CODEC_LPCM, sad), in testEqualsCodecSad()
DHdmiCecLocalDeviceTvTest.java236 for (String sad : SADS_NOT_TO_QUERY) { in setUp()
238 sad, HdmiControlManager.QUERY_SAD_DISABLED); in setUp()
/frameworks/base/core/java/android/hardware/hdmi/
DHdmiControlManager.java2725 for (String sad : settings) {
2726 mService.setCecSettingIntValue(sad, value);