LOCAL_MODULE := libjni_tinyplanet
LOCAL_SRC_FILES := tinyplanet.cc
-LOCAL_CFLAGS += -ffast-math -O3 -funroll-loops
+LOCAL_CFLAGS += -ffast-math -O3 -funroll-loops
+LOCAL_CFLAGS += -Wall -Wextra -Werror
LOCAL_ARM_MODE := arm
include $(BUILD_SHARED_LIBRARY)
# JpegUtil
include $(CLEAR_VARS)
-LOCAL_CFLAGS := -std=c++11
LOCAL_NDK_STL_VARIANT := c++_static
LOCAL_LDFLAGS := -llog -ldl -ljnigraphics
LOCAL_SDK_VERSION := 17
LOCAL_STATIC_LIBRARIES := libjpeg_static_ndk
-LOCAL_CFLAGS += -ffast-math -O3 -funroll-loops
+LOCAL_CFLAGS := -std=c++11
+LOCAL_CFLAGS += -ffast-math -O3 -funroll-loops
+LOCAL_CFLAGS += -Wall -Wextra -Werror
LOCAL_ARM_MODE := arm
include $(BUILD_SHARED_LIBRARY)
return true;
};
- dest.term_destination = [](j_compress_ptr cinfo) {
+ dest.term_destination = [](j_compress_ptr cinfo __unused) {
// do nothing to terminate the output buffer
};
const Plane cbP = {width / 2, height / 2, cbBuf, cbPStride, cbRStride};
const Plane crP = {width / 2, height / 2, crBuf, crPStride, crRStride};
- auto flush = [](size_t numBytes) {
+ auto flush = [](size_t numBytes __unused) {
// do nothing
};
const std::array<unsigned char*, ROWS> jpegutil::RowIterator<ROWS>::LoadAt(
int y_base) {
std::array<unsigned char*, ROWS> buf_ptrs;
- for (int i = 0; i < ROWS; i++) {
+ for (unsigned int i = 0; i < ROWS; i++) {
buf_ptrs[i] = &buf_[padded_row_length_ * i];
}
return buf_ptrs;
}
- for (int i = 0; i < ROWS; i++) {
+ for (unsigned int i = 0; i < ROWS; i++) {
int y = i + y_base;
y = min(y, transform_.output_height() - 1);
*/
extern "C" JNIEXPORT jint JNICALL
Java_com_android_camera_util_JpegUtilNative_compressJpegFromYUV420pNative(
- JNIEnv* env, jclass clazz,
+ JNIEnv* env, jclass clazz __unused,
/** Input image dimensions */
jint width, jint height,
/** Y Plane */
*/
extern "C" JNIEXPORT void JNICALL
Java_com_android_camera_util_JpegUtilNative_copyImagePlaneToBitmap(
- JNIEnv* env, jclass clazz, jint width, jint height, jobject planeBuf,
+ JNIEnv* env, jclass clazz __unused, jint width, jint height, jobject planeBuf,
jint pStride, jint rStride, jobject outBitmap, jint rot90) {
jbyte* src = (jbyte*)env->GetDirectBufferAddress(planeBuf);
}
-JNIEXPORT void JNICALL Java_com_android_camera_tinyplanet_TinyPlanetNative_process(JNIEnv* env, jobject obj, jobject bitmap_in, jint width, jint height, jobject bitmap_out, jint output_size, jfloat scale, jfloat angle)
+JNIEXPORT void JNICALL Java_com_android_camera_tinyplanet_TinyPlanetNative_process(JNIEnv* env,
+ jobject obj __unused, jobject bitmap_in, jint width, jint height, jobject bitmap_out,
+ jint output_size, jfloat scale, jfloat angle)
{
char* source = 0;
char* destination = 0;
<string name="error_cannot_connect_camera" msgid="2713059773224193128">"Der kan ikke oprettes forbindelse til kameraet."</string>
<string name="error_camera_disabled" msgid="5582398275657419692">"Kameraet er deaktiveret på grund af sikkerhedspolitikker."</string>
<string name="error_media_storage_failure" msgid="7711687330673245629">"Dit billede eller din video kunne ikke gemmes."</string>
- <string name="error_permissions" msgid="3454167403425651254">"Appen mangler kritiske tilladelser for at kunne køre. Kontrollér dine indstillinger for tilladelser."</string>
+ <string name="error_permissions" msgid="3454167403425651254">"Appen mangler kritiske tilladelser for at kunne køre. Tjek dine indstillinger for tilladelser."</string>
<string name="reason_storage_failure" msgid="6818898304774654969">"Billedet blev ikke gemt."</string>
<string name="wait" msgid="765601745709933047">"Vent…"</string>
<string name="no_storage" product="default" msgid="5922012950780548098">"Indsæt et SD-kort, før kameraet tages i brug."</string>
<string name="time_lapse_hours" msgid="5294001144133261436">"ชั่วโมง"</string>
<string name="time_lapse_interval_set" msgid="2418594453248958440">"เสร็จสิ้น"</string>
<string name="set_time_interval" msgid="2531393962847535331">"ตั้งค่าช่วงเวลา"</string>
- <string name="set_time_interval_help" msgid="64145154088021389">"à¸\84ุà¸\93ลัà¸\81ษà¸\93ะà¸\8aà¹\88วà¸\87à¹\80วลาà¸\9bิà¸\94à¸à¸¢à¸¹à¹\88 à¹\80à¸\9bิà¸\94à¸\84ุà¸\93ลัà¸\81ษà¸\93ะนี้เพื่อตั้งค่าช่วงเวลา"</string>
+ <string name="set_time_interval_help" msgid="64145154088021389">"à¸\9fีà¹\80à¸\88à¸à¸£à¹\8cà¸\8aà¹\88วà¸\87à¹\80วลาà¸\9bิà¸\94à¸à¸¢à¸¹à¹\88 à¹\80à¸\9bิà¸\94à¸\9fีà¹\80à¸\88à¸à¸£à¹\8cนี้เพื่อตั้งค่าช่วงเวลา"</string>
<string name="set_duration" msgid="1638453882581604341">"ตั้งระยะเวลาเป็นวินาที"</string>
<string name="count_down_title_text" msgid="7586031110595513050">"นับถอยหลังเพื่อถ่ายภาพ"</string>
<string name="remember_location_title" msgid="3045040613094030429">"จดจำตำแหน่งภาพไหม"</string>
<string name="cling_text_for_refocus_editor_button" msgid="4785017397116829802">"แตะที่นี่ เพื่อปรับโฟกัส"</string>
<string name="pref_category_advanced" msgid="5921085080077574872">"ขั้นสูง"</string>
<string name="pref_camera_exposure_compensation" msgid="4143245817259719147">"การรับแสงแบบปรับเอง"</string>
- <string name="settings_cling_text" msgid="5368054627268181292">"à¹\83à¸\99 \"à¸\81ารà¸\95ัà¹\89à¸\87à¸\84à¹\88า\" à¹\83หà¹\89à¹\80à¸\9bลีà¹\88ยà¸\99à¸\84วามละà¹\80à¸à¸µà¸¢à¸\94à¹\81ละà¸\84ุà¸\93ภาà¸\9e หรืà¸à¸¥à¸à¸\87à¹\83à¸\8aà¹\89à¸\84ุà¸\93ลัà¸\81ษà¸\93ะขั้นสูง"</string>
+ <string name="settings_cling_text" msgid="5368054627268181292">"à¹\83à¸\99 \"à¸\81ารà¸\95ัà¹\89à¸\87à¸\84à¹\88า\" à¹\83หà¹\89à¹\80à¸\9bลีà¹\88ยà¸\99à¸\84วามละà¹\80à¸à¸µà¸¢à¸\94à¹\81ละà¸\84ุà¸\93ภาà¸\9e หรืà¸à¸¥à¸à¸\87à¹\83à¸\8aà¹\89à¸\9fีà¹\80à¸\88à¸à¸£à¹\8cขั้นสูง"</string>
<string name="photo_size_selection_title" msgid="2789753590719172645">"เลือกขนาดรูปภาพ"</string>
<string name="photo_aspect_ratio_selection_content" msgid="6668224437962196229">"คุณสามารถเปลี่ยนค่านี้ได้ภายหลัง ใน \"การตั้งค่า\""</string>
<string name="share_to" msgid="5144911209144798122">"แชร์ไปยัง"</string>