Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b2ed830b authored by Dichen Zhang's avatar Dichen Zhang
Browse files

jpegr refactor: rename namespace

Bug: 264715926
Test: build
Change-Id: Ie60ae4f9362de50fe7d7d93790922333bc26a238
parent 5e5454fb
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -25,7 +25,7 @@ extern "C" {
}
}
#include <utils/Errors.h>
#include <utils/Errors.h>
#include <vector>
#include <vector>
namespace android::recoverymap {
namespace android::jpegrecoverymap {
/*
/*
 * Encapsulates a converter from JPEG to raw image (YUV420planer or grey-scale) format.
 * Encapsulates a converter from JPEG to raw image (YUV420planer or grey-scale) format.
 * This class is not thread-safe.
 * This class is not thread-safe.
@@ -115,6 +115,6 @@ private:
    // Position of EXIF package, default value is -1 which means no EXIF package appears.
    // Position of EXIF package, default value is -1 which means no EXIF package appears.
    size_t mExifPos;
    size_t mExifPos;
};
};
} /* namespace android  */
} /* namespace android::jpegrecoverymap  */


#endif // ANDROID_JPEGRECOVERYMAP_JPEGDECODERHELPER_H
#endif // ANDROID_JPEGRECOVERYMAP_JPEGDECODERHELPER_H
+2 −2
Original line number Original line Diff line number Diff line
@@ -28,7 +28,7 @@ extern "C" {
#include <utils/Errors.h>
#include <utils/Errors.h>
#include <vector>
#include <vector>


namespace android::recoverymap {
namespace android::jpegrecoverymap {


/*
/*
 * Encapsulates a converter from raw image (YUV420planer or grey-scale) to JPEG format.
 * Encapsulates a converter from raw image (YUV420planer or grey-scale) to JPEG format.
@@ -90,6 +90,6 @@ private:
    std::vector<JOCTET> mResultBuffer;
    std::vector<JOCTET> mResultBuffer;
};
};


} /* namespace android  */
} /* namespace android::jpegrecoverymap  */


#endif // ANDROID_JPEGRECOVERYMAP_JPEGENCODERHELPER_H
#endif // ANDROID_JPEGRECOVERYMAP_JPEGENCODERHELPER_H
+2 −2
Original line number Original line Diff line number Diff line
@@ -19,7 +19,7 @@


#include "jpegrerrorcode.h"
#include "jpegrerrorcode.h"


namespace android::recoverymap {
namespace android::jpegrecoverymap {


// Color gamuts for image data
// Color gamuts for image data
typedef enum {
typedef enum {
@@ -323,6 +323,6 @@ private:
                     jr_uncompressed_ptr dest);
                     jr_uncompressed_ptr dest);
};
};


} // namespace android::recoverymap
} // namespace android::jpegrecoverymap


#endif // ANDROID_JPEGRECOVERYMAP_JPEGR_H
#endif // ANDROID_JPEGRECOVERYMAP_JPEGR_H
+2 −2
Original line number Original line Diff line number Diff line
@@ -16,7 +16,7 @@


#include <utils/Errors.h>
#include <utils/Errors.h>


namespace android::recoverymap {
namespace android::jpegrecoverymap {


enum {
enum {
    // status_t map for errors in the media framework
    // status_t map for errors in the media framework
@@ -48,4 +48,4 @@ enum {
    ERROR_JPEGR_TONEMAP_ERROR           = JPEGR_RUNTIME_ERROR_BASE - 5,
    ERROR_JPEGR_TONEMAP_ERROR           = JPEGR_RUNTIME_ERROR_BASE - 5,
};
};


}  // namespace android::recoverymap
}  // namespace android::jpegrecoverymap
+2 −2
Original line number Original line Diff line number Diff line
@@ -24,7 +24,7 @@
#include <string>
#include <string>
#include <cstdio>
#include <cstdio>


namespace android::recoverymap {
namespace android::jpegrecoverymap {


struct jpegr_metadata;
struct jpegr_metadata;


@@ -92,6 +92,6 @@ bool getMetadataFromXMP(uint8_t* xmp_data, size_t xmp_size, jpegr_metadata* meta
 * @return XMP metadata in type of string
 * @return XMP metadata in type of string
 */
 */
std::string generateXmp(int secondary_image_length, jpegr_metadata& metadata);
std::string generateXmp(int secondary_image_length, jpegr_metadata& metadata);
}
}  // namespace android::jpegrecoverymap


#endif //ANDROID_JPEGRECOVERYMAP_JPEGRUTILS_H
#endif //ANDROID_JPEGRECOVERYMAP_JPEGRUTILS_H
Loading