Loading camera/CameraParameters.cpp +5 −0 Original line number Diff line number Diff line Loading @@ -490,6 +490,11 @@ void CameraParameters::getSupportedPreviewFormats(Vector<int>& formats) const { const char* supportedPreviewFormats = get(CameraParameters::KEY_SUPPORTED_PREVIEW_FORMATS); if (supportedPreviewFormats == NULL) { ALOGW("%s: No supported preview formats.", __FUNCTION__); return; } String8 fmtStr(supportedPreviewFormats); char* prevFmts = fmtStr.lockBuffer(fmtStr.size()); Loading camera/camera2/CaptureRequest.cpp +3 −3 Original line number Diff line number Diff line Loading @@ -63,9 +63,9 @@ status_t CaptureRequest::readFromParcel(Parcel* parcel) { } // Surface.writeToParcel String16 name = parcel->readString16(); ALOGV("%s: Read surface name = %s", __FUNCTION__, String8(name).string()); const char16_t* name = parcel->readString16Inplace(&len); ALOGV("%s: Read surface name = %s", __FUNCTION__, name != NULL ? String8(name).string() : "<null>"); sp<IBinder> binder(parcel->readStrongBinder()); ALOGV("%s: Read surface binder = %p", __FUNCTION__, binder.get()); Loading cmds/screenrecord/FrameOutput.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -206,7 +206,7 @@ void FrameOutput::reduceRgbaToRgb(uint8_t* buf, unsigned int pixelCount) { } // Callback; executes on arbitrary thread. void FrameOutput::onFrameAvailable() { void FrameOutput::onFrameAvailable(const BufferItem& /* item */) { Mutex::Autolock _l(mMutex); mFrameAvailable = true; mEventCond.signal(); Loading cmds/screenrecord/FrameOutput.h +1 −1 Original line number Diff line number Diff line Loading @@ -62,7 +62,7 @@ private: } // (overrides GLConsumer::FrameAvailableListener method) virtual void onFrameAvailable(); virtual void onFrameAvailable(const BufferItem& item); // Reduces RGBA to RGB, in place. static void reduceRgbaToRgb(uint8_t* buf, unsigned int pixelCount); Loading cmds/screenrecord/Overlay.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -274,7 +274,7 @@ void Overlay::getTimeString_l(nsecs_t monotonicNsec, char* buf, size_t bufLen) { } // Callback; executes on arbitrary thread. void Overlay::onFrameAvailable() { void Overlay::onFrameAvailable(const BufferItem& /* item */) { ALOGV("Overlay::onFrameAvailable"); Mutex::Autolock _l(mMutex); mFrameAvailable = true; Loading Loading
camera/CameraParameters.cpp +5 −0 Original line number Diff line number Diff line Loading @@ -490,6 +490,11 @@ void CameraParameters::getSupportedPreviewFormats(Vector<int>& formats) const { const char* supportedPreviewFormats = get(CameraParameters::KEY_SUPPORTED_PREVIEW_FORMATS); if (supportedPreviewFormats == NULL) { ALOGW("%s: No supported preview formats.", __FUNCTION__); return; } String8 fmtStr(supportedPreviewFormats); char* prevFmts = fmtStr.lockBuffer(fmtStr.size()); Loading
camera/camera2/CaptureRequest.cpp +3 −3 Original line number Diff line number Diff line Loading @@ -63,9 +63,9 @@ status_t CaptureRequest::readFromParcel(Parcel* parcel) { } // Surface.writeToParcel String16 name = parcel->readString16(); ALOGV("%s: Read surface name = %s", __FUNCTION__, String8(name).string()); const char16_t* name = parcel->readString16Inplace(&len); ALOGV("%s: Read surface name = %s", __FUNCTION__, name != NULL ? String8(name).string() : "<null>"); sp<IBinder> binder(parcel->readStrongBinder()); ALOGV("%s: Read surface binder = %p", __FUNCTION__, binder.get()); Loading
cmds/screenrecord/FrameOutput.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -206,7 +206,7 @@ void FrameOutput::reduceRgbaToRgb(uint8_t* buf, unsigned int pixelCount) { } // Callback; executes on arbitrary thread. void FrameOutput::onFrameAvailable() { void FrameOutput::onFrameAvailable(const BufferItem& /* item */) { Mutex::Autolock _l(mMutex); mFrameAvailable = true; mEventCond.signal(); Loading
cmds/screenrecord/FrameOutput.h +1 −1 Original line number Diff line number Diff line Loading @@ -62,7 +62,7 @@ private: } // (overrides GLConsumer::FrameAvailableListener method) virtual void onFrameAvailable(); virtual void onFrameAvailable(const BufferItem& item); // Reduces RGBA to RGB, in place. static void reduceRgbaToRgb(uint8_t* buf, unsigned int pixelCount); Loading
cmds/screenrecord/Overlay.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -274,7 +274,7 @@ void Overlay::getTimeString_l(nsecs_t monotonicNsec, char* buf, size_t bufLen) { } // Callback; executes on arbitrary thread. void Overlay::onFrameAvailable() { void Overlay::onFrameAvailable(const BufferItem& /* item */) { ALOGV("Overlay::onFrameAvailable"); Mutex::Autolock _l(mMutex); mFrameAvailable = true; Loading