Home
last modified time | relevance | path

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

/frameworks/av/media/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.java676 private static byte[] readSad(String sad) { in readSad() argument
677 if (sad == null || sad.length() == 0) { in readSad()
680 byte[] sadBytes = HexDump.hexStringToByteArray(sad); in readSad()
767 public final byte[] sad; field in HdmiUtils.CodecSad
769 public CodecSad(int audioCodec, byte[] sad) { in CodecSad() argument
771 this.sad = sad; in CodecSad()
774 public CodecSad(int audioCodec, String sad) { in CodecSad() argument
776 this.sad = HexDump.hexStringToByteArray(sad); in CodecSad()
784 && Arrays.equals(that.sad, this.sad); in equals()
793 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()
207 private void updateResult(byte[] sad) { in updateResult() argument
208 mSupportedSads.add(sad); in updateResult()
DHdmiCecLocalDeviceAudioSystem.java515 byte[] sad = getSupportedShortAudioDescriptor(deviceInfo, audioFormatCode); in getSupportedShortAudioDescriptors()
516 if (sad != null) { in getSupportedShortAudioDescriptors()
517 if (sad.length == 3) { in getSupportedShortAudioDescriptors()
519 sads.add(sad); in getSupportedShortAudioDescriptors()
523 sad.length, audioFormatCode); in getSupportedShortAudioDescriptors()
549 map.put(codecSad.audioCodec, codecSad.sad); in getSupportedShortAudioDescriptorsFromConfig()
553 byte[] sad = map.get(audioFormatCodes[i]); in getSupportedShortAudioDescriptorsFromConfig()
554 if (sad != null && sad.length == 3) { in getSupportedShortAudioDescriptorsFromConfig()
555 sads.add(sad); in getSupportedShortAudioDescriptorsFromConfig()
566 for (byte[] sad : sads) { in getShortAudioDescriptorBytes()
[all …]
DHdmiCecLocalDeviceTv.java856 .map(sad -> new AudioDescriptor(AudioDescriptor.STANDARD_EDID, in notifyArcStatusToAudioService()
857 AudioProfile.AUDIO_ENCAPSULATION_TYPE_NONE, sad)) in notifyArcStatusToAudioService()
/frameworks/av/media/codecs/m4v_h263/enc/
DAndroid.bp61 "src/sad.cpp",
/frameworks/base/services/tests/servicestests/src/com/android/server/hdmi/
DHdmiCecLocalDeviceTvTest.java193 for (String sad : SADS_NOT_TO_QUERY) { in setUp()
195 sad, HdmiControlManager.QUERY_SAD_DISABLED); in setUp()
DHdmiUtilsTest.java122 byte[] sad = {0x0a, 0x1b, 0x2c}; in testEqualsCodecSad()
126 new HdmiUtils.CodecSad(Constants.AUDIO_CODEC_LPCM, sad), in testEqualsCodecSad()
/frameworks/base/core/java/android/hardware/hdmi/
DHdmiControlManager.java2502 for (String sad : settings) {
2503 mService.setCecSettingIntValue(sad, value);