mirror of
https://github.com/opencv/opencv.git
synced 2025-06-07 17:44:04 +08:00
Fixed typo.
This commit is contained in:
parent
d792086ba6
commit
e4ef88c623
2
3rdparty/libjasper/jas_stream.c
vendored
2
3rdparty/libjasper/jas_stream.c
vendored
@ -889,7 +889,7 @@ int jas_stream_copy(jas_stream_t *out, jas_stream_t *in, int n)
|
|||||||
while (all || m > 0) {
|
while (all || m > 0) {
|
||||||
if ((c = jas_stream_getc_macro(in)) == EOF) {
|
if ((c = jas_stream_getc_macro(in)) == EOF) {
|
||||||
/* The next character of input could not be read. */
|
/* The next character of input could not be read. */
|
||||||
/* Return with an error if an I/O error occured
|
/* Return with an error if an I/O error occurred
|
||||||
(not including EOF) or if an explicit copy count
|
(not including EOF) or if an explicit copy count
|
||||||
was specified. */
|
was specified. */
|
||||||
return (!all || jas_stream_error(in)) ? (-1) : 0;
|
return (!all || jas_stream_error(in)) ? (-1) : 0;
|
||||||
|
2
3rdparty/libjasper/jpc_bs.h
vendored
2
3rdparty/libjasper/jpc_bs.h
vendored
@ -100,7 +100,7 @@
|
|||||||
#define JPC_BITSTREAM_NOCLOSE 0x01
|
#define JPC_BITSTREAM_NOCLOSE 0x01
|
||||||
/* End of file has been reached while reading. */
|
/* End of file has been reached while reading. */
|
||||||
#define JPC_BITSTREAM_EOF 0x02
|
#define JPC_BITSTREAM_EOF 0x02
|
||||||
/* An I/O error has occured. */
|
/* An I/O error has occurerd. */
|
||||||
#define JPC_BITSTREAM_ERR 0x04
|
#define JPC_BITSTREAM_ERR 0x04
|
||||||
|
|
||||||
/******************************************************************************\
|
/******************************************************************************\
|
||||||
|
@ -117,10 +117,10 @@ static void OnDeviceError(void* /* ctx */, ACameraDevice* dev, int err) {
|
|||||||
LOGI("Camera in use");
|
LOGI("Camera in use");
|
||||||
break;
|
break;
|
||||||
case ERROR_CAMERA_SERVICE:
|
case ERROR_CAMERA_SERVICE:
|
||||||
LOGI("Fatal Error occured in Camera Service");
|
LOGI("Fatal Error occurred in Camera Service");
|
||||||
break;
|
break;
|
||||||
case ERROR_CAMERA_DEVICE:
|
case ERROR_CAMERA_DEVICE:
|
||||||
LOGI("Fatal Error occured in Camera Device");
|
LOGI("Fatal Error occurred in Camera Device");
|
||||||
break;
|
break;
|
||||||
case ERROR_CAMERA_DISABLED:
|
case ERROR_CAMERA_DISABLED:
|
||||||
LOGI("Camera disabled");
|
LOGI("Camera disabled");
|
||||||
@ -269,7 +269,7 @@ public:
|
|||||||
if (mStatus != AMEDIA_OK) {
|
if (mStatus != AMEDIA_OK) {
|
||||||
if (mStatus == AMEDIA_IMGREADER_NO_BUFFER_AVAILABLE) {
|
if (mStatus == AMEDIA_IMGREADER_NO_BUFFER_AVAILABLE) {
|
||||||
// this error is not fatal - we just need to wait for a buffer to become available
|
// this error is not fatal - we just need to wait for a buffer to become available
|
||||||
LOGW("No Buffer Available error occured - waiting for callback");
|
LOGW("No Buffer Available error occurred - waiting for callback");
|
||||||
waitingCapture = true;
|
waitingCapture = true;
|
||||||
captureSuccess = false;
|
captureSuccess = false;
|
||||||
auto start = std::chrono::system_clock::now();
|
auto start = std::chrono::system_clock::now();
|
||||||
|
Loading…
Reference in New Issue
Block a user