Add support for reading a flipped image to accommodate front cameras

git-svn-id: https://zxing.googlecode.com/svn/trunk@1682 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
srowen 2010-12-16 13:36:04 +00:00
parent 99d09e0a44
commit 625ab14af9
25 changed files with 370 additions and 285 deletions

View file

@ -107,6 +107,8 @@
<string name="preferences_remember_duplicates_summary">بفحص مخزن متعددة من نفس الباركود في التاريخ</string>
<string name="preferences_remember_duplicates_title">تذكر التكرارات</string>
<string name="preferences_result_title">إعدادات النتائج</string>
<string name="preferences_reverse_image_summary">تمكين على الأجهزة مع كاميرا أمامية فقط</string>
<string name="preferences_reverse_image_title">عكس الكاميرا صورة</string>
<string name="preferences_scanning_title">عندما لمسح الباركود</string>
<string name="preferences_supplemental_summary">محاولة لاسترداد مزيد من المعلومات حول محتويات الباركود</string>
<string name="preferences_supplemental_title">استرداد مزيد من المعلومات</string>

View file

@ -107,6 +107,8 @@
<string name="preferences_remember_duplicates_summary">Duplikáty čárových kódú v historii ukládat samostatně, nebo jako jeden čárový kód</string>
<string name="preferences_remember_duplicates_title">Pamatovat všechny duplikáty</string>
<string name="preferences_result_title">Výsledek nastavení</string>
<string name="preferences_reverse_image_summary">Povolit na zařízeních s pouze přední fotoaparát</string>
<string name="preferences_reverse_image_title">Obrácený obraz z kamery</string>
<string name="preferences_scanning_title">Při skenování čárových kódů pro, dekódovat\u2026</string>
<string name="preferences_supplemental_summary">Získat více informací o obsahu čárového kódu</string>
<string name="preferences_supplemental_title">Získat více informací</string>

View file

@ -1,139 +1,141 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2010 ZXing authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<resources>
<string name="app_name">Barcode Scanner</string>
<string name="app_picker_name">Applikationer</string>
<string name="bookmark_picker_name">Bogmærker</string>
<string name="button_add_calendar">Tilføj til kalendar</string>
<string name="button_add_contact">Tilføj kontaktperson</string>
<string name="button_back">Tilbage</string>
<string name="button_book_search">Bogsøgning</string>
<string name="button_cancel">Annullér</string>
<string name="button_clipboard_empty">Udklipsholder tom</string>
<string name="button_custom_product_search">Brugerdefineret søgning</string>
<string name="button_dial">Ring til nummeret</string>
<string name="button_done">Færdig</string>
<string name="button_email">Send e-mail</string>
<string name="button_get_directions">Få kørselsanvisninger</string>
<string name="button_google_shopper">Google Shopper</string>
<string name="button_mms">Send MMS</string>
<string name="button_ok">OK</string>
<string name="button_open_browser">Åben browser</string>
<string name="button_product_search">Produktsøgning</string>
<string name="button_read_book">Gennemse bog</string>
<string name="button_search_book_contents">Søg indhold</string>
<string name="button_share_app">Applikationer</string>
<string name="button_share_bookmark">Bogmærker</string>
<string name="button_share_by_email">Del via e-mail</string>
<string name="button_share_by_sms">Del via SMS</string>
<string name="button_share_clipboard">Udklipsholder</string>
<string name="button_share_contact">Kontakter</string>
<string name="button_show_map">Vis kort</string>
<string name="button_sms">Send SMS</string>
<string name="button_web_search">Internetsøgning</string>
<string name="button_wifi">Forbind til netværk</string>
<string name="contents_contact">Kontaktinfo</string>
<string name="contents_email">E-mailadresse</string>
<string name="contents_location">Geografiske koordinater</string>
<string name="contents_phone">Telefonnummer</string>
<string name="contents_sms">SMS-adresse</string>
<string name="contents_text">Almindelig tekst</string>
<string name="history_clear_text">Ryd historik</string>
<string name="history_email_title">Barcode Scanner-historik</string>
<string name="history_send">Send historik</string>
<string name="history_title">Historik</string>
<string name="menu_about">Om</string>
<string name="menu_help">Hjælp</string>
<string name="menu_history">Historik</string>
<string name="menu_settings">Indstillinger</string>
<string name="menu_share">Del</string>
<string name="msg_about">Baseret på open source ZXing Barcode Library</string>
<string name="msg_buggy">Denne enhed har kendte fejl, der forårsager stregkodescanningsproblemer. For mere information, besøg http://code.google.com/p/zxing/wiki/FrequentlyAskedQuestions (på engelsk)</string>
<string name="msg_bulk_mode_scanned">Massetilstand: stregkode scannet og gemt</string>
<string name="msg_camera_framework_bug">Beklager, Android-kameraet er stødt på et problem. Du skal muligvis genstarte enheden.</string>
<string name="msg_default_contents">Indhold</string>
<string name="msg_default_format">Format</string>
<string name="msg_default_meta">Metadata</string>
<string name="msg_default_mms_subject">Hej</string>
<string name="msg_default_status">Peg på en stregkode så den er inde i firkanten for at scanne den.</string>
<string name="msg_default_time">Tid</string>
<string name="msg_default_type">Type</string>
<string name="msg_encode_barcode_failed">Kunne ikke generere den ønskede stregkode.</string>
<string name="msg_encode_contents_failed">Kunne ikke indkode en stregkode fra oplysningerne.</string>
<string name="msg_google_shopper_missing">Google Shopper er ikke installeret</string>
<string name="msg_install_google_shopper">Google Shopper kombinerer stregkodescanning med priser, anmeldelser og meget mere uden at åbne en browser. Kunne du tænke dig at prøve det?</string>
<string name="msg_intent_failed">Beklager, den ønskede applikation kunne ikke blive startet. Stregkodeindholdet er måsket ugyldigt.</string>
<string name="msg_loading_apps">Indlæser liste over applikationer\u2026</string>
<string name="msg_not_our_results">Du er ved at forlade denne applikation. Søgeresultaterne du ser er relateret til denne applikation.</string>
<string name="msg_redirect">Omdirigér</string>
<string name="msg_sbc_book_not_searchable">Beklager, denne bog er ikke søgbar.</string>
<string name="msg_sbc_failed">Beklager, søgningen er stødt på et problem.</string>
<string name="msg_sbc_no_page_returned">Ingen side tilbage</string>
<string name="msg_sbc_page">Side</string>
<string name="msg_sbc_searching_book">Søger bog\u2026</string>
<string name="msg_sbc_snippet_unavailable">Uddragsvisning ikke tilgængelig</string>
<string name="msg_sbc_unknown_page">Ukendt side</string>
<string name="msg_share_explanation">Du kan dele data ved at vise en stregkode på denne skærm og derefter scanne den med en anden telefon.</string>
<string name="msg_share_subject_line">Her er indholdet af en stregkode jeg har scannet.</string>
<string name="msg_unmount_usb">Beklager, SD-kortet er ikke tilgængelig.</string>
<string name="preferences_actions_title">Når en stregkode er fundet\u2026</string>
<string name="preferences_bulk_mode_summary">Scan og gem mange stregkoder uden afbrydelser</string>
<string name="preferences_bulk_mode_title">Massescanningstilstand</string>
<string name="preferences_copy_to_clipboard_title">Kopiér til udklipsholder</string>
<string name="preferences_custom_product_search_summary">Brug %s som en pladsholder for produkt-id, og %f for format</string>
<string name="preferences_custom_product_search_title">Brugerdefineret søge-URL</string>
<string name="preferences_decode_1D_title">Oversæt 1D stregkoder</string>
<string name="preferences_decode_Data_Matrix_title">Oversæt Data Matrix</string>
<string name="preferences_decode_QR_title">Oversæt QR Koder</string>
<string name="preferences_front_light_summary">Forbedrer scanning i svagt lys på nogle telefoner, men kan forårsage blænding. Virker ikke på alle telefoner.</string>
<string name="preferences_front_light_title">Brug frontlys</string>
<string name="preferences_general_title">Generelle indstillinger</string>
<string name="preferences_name">Indstillinger</string>
<string name="preferences_play_beep_title">Bip</string>
<string name="preferences_remember_duplicates_summary">Gem flere scanninger af de samme stregkoder i historik</string>
<string name="preferences_remember_duplicates_title">Husk dubletter</string>
<string name="preferences_result_title">Resultatindstillinger</string>
<string name="preferences_scanning_title">Når der scannes efter stregkoder\u2026</string>
<string name="preferences_supplemental_summary">Prøv at hente mere information om stregkodens indhold</string>
<string name="preferences_supplemental_title">Hent mere info</string>
<string name="preferences_vibrate_title">Vibrér</string>
<string name="result_address_book">Kontaktinfo fundet</string>
<string name="result_calendar">Kalendarbegivenhed fundet</string>
<string name="result_email_address">E-mailadresse fundet</string>
<string name="result_geo">Geografiske koordinater fundet</string>
<string name="result_isbn">Bog fundet</string>
<string name="result_product">Produkt fundet</string>
<string name="result_sms">SMS-adresse fundet</string>
<string name="result_tel">Telefonnummer fundet</string>
<string name="result_text">Almindelig tekst fundet</string>
<string name="result_uri">URL fundet</string>
<string name="result_wifi">WLAN-forbindelse fundet</string>
<string name="sbc_name">Google Bøger-søgning</string>
<string name="share_name">Del via stregkode</string>
<string name="title_about">Barcode Scanner v</string>
<string name="wa_name">WLAN-forbindelse</string>
<string name="wifi_changing_network">Skifter netværk</string>
<string name="wifi_connect_failed">Netværksforbindelse mislykkedes</string>
<string name="wifi_connected">Forbundet</string>
<string name="wifi_creating_network">Opretter netværk</string>
<string name="wifi_modifying_network">Ændrer netværk</string>
<string name="wifi_ssid_label">Netværksnavn</string>
<string name="wifi_ssid_missing">Netværksnavn mangler</string>
<string name="wifi_type_incorrect">Netværkstype forkert</string>
<string name="wifi_type_label">Type</string>
<string name="zxing_url">http://code.google.com/p/zxing</string>
</resources>
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (C) 2010 ZXing authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<resources>
<string name="app_name">Barcode Scanner</string>
<string name="app_picker_name">Applikationer</string>
<string name="bookmark_picker_name">Bogmærker</string>
<string name="button_add_calendar">Tilføj til kalendar</string>
<string name="button_add_contact">Tilføj kontaktperson</string>
<string name="button_back">Tilbage</string>
<string name="button_book_search">Bogsøgning</string>
<string name="button_cancel">Annullér</string>
<string name="button_clipboard_empty">Udklipsholder tom</string>
<string name="button_custom_product_search">Brugerdefineret søgning</string>
<string name="button_dial">Ring til nummeret</string>
<string name="button_done">Færdig</string>
<string name="button_email">Send e-mail</string>
<string name="button_get_directions">Få kørselsanvisninger</string>
<string name="button_google_shopper">Google Shopper</string>
<string name="button_mms">Send MMS</string>
<string name="button_ok">OK</string>
<string name="button_open_browser">Åben browser</string>
<string name="button_product_search">Produktsøgning</string>
<string name="button_read_book">Gennemse bog</string>
<string name="button_search_book_contents">Søg indhold</string>
<string name="button_share_app">Applikationer</string>
<string name="button_share_bookmark">Bogmærker</string>
<string name="button_share_by_email">Del via e-mail</string>
<string name="button_share_by_sms">Del via SMS</string>
<string name="button_share_clipboard">Udklipsholder</string>
<string name="button_share_contact">Kontakter</string>
<string name="button_show_map">Vis kort</string>
<string name="button_sms">Send SMS</string>
<string name="button_web_search">Internetsøgning</string>
<string name="button_wifi">Forbind til netværk</string>
<string name="contents_contact">Kontaktinfo</string>
<string name="contents_email">E-mailadresse</string>
<string name="contents_location">Geografiske koordinater</string>
<string name="contents_phone">Telefonnummer</string>
<string name="contents_sms">SMS-adresse</string>
<string name="contents_text">Almindelig tekst</string>
<string name="history_clear_text">Ryd historik</string>
<string name="history_email_title">Barcode Scanner-historik</string>
<string name="history_send">Send historik</string>
<string name="history_title">Historik</string>
<string name="menu_about">Om</string>
<string name="menu_help">Hjælp</string>
<string name="menu_history">Historik</string>
<string name="menu_settings">Indstillinger</string>
<string name="menu_share">Del</string>
<string name="msg_about">Baseret på open source ZXing Barcode Library</string>
<string name="msg_buggy">Denne enhed har kendte fejl, der forårsager stregkodescanningsproblemer. For mere information, besøg http://code.google.com/p/zxing/wiki/FrequentlyAskedQuestions (på engelsk)</string>
<string name="msg_bulk_mode_scanned">Massetilstand: stregkode scannet og gemt</string>
<string name="msg_camera_framework_bug">Beklager, Android-kameraet er stødt på et problem. Du skal muligvis genstarte enheden.</string>
<string name="msg_default_contents">Indhold</string>
<string name="msg_default_format">Format</string>
<string name="msg_default_meta">Metadata</string>
<string name="msg_default_mms_subject">Hej</string>
<string name="msg_default_status">Peg på en stregkode så den er inde i firkanten for at scanne den.</string>
<string name="msg_default_time">Tid</string>
<string name="msg_default_type">Type</string>
<string name="msg_encode_barcode_failed">Kunne ikke generere den ønskede stregkode.</string>
<string name="msg_encode_contents_failed">Kunne ikke indkode en stregkode fra oplysningerne.</string>
<string name="msg_google_shopper_missing">Google Shopper er ikke installeret</string>
<string name="msg_install_google_shopper">Google Shopper kombinerer stregkodescanning med priser, anmeldelser og meget mere uden at åbne en browser. Kunne du tænke dig at prøve det?</string>
<string name="msg_intent_failed">Beklager, den ønskede applikation kunne ikke blive startet. Stregkodeindholdet er måsket ugyldigt.</string>
<string name="msg_loading_apps">Indlæser liste over applikationer\u2026</string>
<string name="msg_not_our_results">Du er ved at forlade denne applikation. Søgeresultaterne du ser er relateret til denne applikation.</string>
<string name="msg_redirect">Omdirigér</string>
<string name="msg_sbc_book_not_searchable">Beklager, denne bog er ikke søgbar.</string>
<string name="msg_sbc_failed">Beklager, søgningen er stødt på et problem.</string>
<string name="msg_sbc_no_page_returned">Ingen side tilbage</string>
<string name="msg_sbc_page">Side</string>
<string name="msg_sbc_searching_book">Søger bog\u2026</string>
<string name="msg_sbc_snippet_unavailable">Uddragsvisning ikke tilgængelig</string>
<string name="msg_sbc_unknown_page">Ukendt side</string>
<string name="msg_share_explanation">Du kan dele data ved at vise en stregkode på denne skærm og derefter scanne den med en anden telefon.</string>
<string name="msg_share_subject_line">Her er indholdet af en stregkode jeg har scannet.</string>
<string name="msg_unmount_usb">Beklager, SD-kortet er ikke tilgængelig.</string>
<string name="preferences_actions_title">Når en stregkode er fundet\u2026</string>
<string name="preferences_bulk_mode_summary">Scan og gem mange stregkoder uden afbrydelser</string>
<string name="preferences_bulk_mode_title">Massescanningstilstand</string>
<string name="preferences_copy_to_clipboard_title">Kopiér til udklipsholder</string>
<string name="preferences_custom_product_search_summary">Brug %s som en pladsholder for produkt-id, og %f for format</string>
<string name="preferences_custom_product_search_title">Brugerdefineret søge-URL</string>
<string name="preferences_decode_1D_title">Oversæt 1D stregkoder</string>
<string name="preferences_decode_Data_Matrix_title">Oversæt Data Matrix</string>
<string name="preferences_decode_QR_title">Oversæt QR Koder</string>
<string name="preferences_front_light_summary">Forbedrer scanning i svagt lys på nogle telefoner, men kan forårsage blænding. Virker ikke på alle telefoner.</string>
<string name="preferences_front_light_title">Brug frontlys</string>
<string name="preferences_general_title">Generelle indstillinger</string>
<string name="preferences_name">Indstillinger</string>
<string name="preferences_play_beep_title">Bip</string>
<string name="preferences_remember_duplicates_summary">Gem flere scanninger af de samme stregkoder i historik</string>
<string name="preferences_remember_duplicates_title">Husk dubletter</string>
<string name="preferences_result_title">Resultatindstillinger</string>
<string name="preferences_reverse_image_summary">Aktiver på enheder med en front kamera kun</string>
<string name="preferences_reverse_image_title">Tilbageført kamerabilledets</string>
<string name="preferences_scanning_title">Når der scannes efter stregkoder\u2026</string>
<string name="preferences_supplemental_summary">Prøv at hente mere information om stregkodens indhold</string>
<string name="preferences_supplemental_title">Hent mere info</string>
<string name="preferences_vibrate_title">Vibrér</string>
<string name="result_address_book">Kontaktinfo fundet</string>
<string name="result_calendar">Kalendarbegivenhed fundet</string>
<string name="result_email_address">E-mailadresse fundet</string>
<string name="result_geo">Geografiske koordinater fundet</string>
<string name="result_isbn">Bog fundet</string>
<string name="result_product">Produkt fundet</string>
<string name="result_sms">SMS-adresse fundet</string>
<string name="result_tel">Telefonnummer fundet</string>
<string name="result_text">Almindelig tekst fundet</string>
<string name="result_uri">URL fundet</string>
<string name="result_wifi">WLAN-forbindelse fundet</string>
<string name="sbc_name">Google Bøger-søgning</string>
<string name="share_name">Del via stregkode</string>
<string name="title_about">Barcode Scanner v</string>
<string name="wa_name">WLAN-forbindelse</string>
<string name="wifi_changing_network">Skifter netværk</string>
<string name="wifi_connect_failed">Netværksforbindelse mislykkedes</string>
<string name="wifi_connected">Forbundet</string>
<string name="wifi_creating_network">Opretter netværk</string>
<string name="wifi_modifying_network">Ændrer netværk</string>
<string name="wifi_ssid_label">Netværksnavn</string>
<string name="wifi_ssid_missing">Netværksnavn mangler</string>
<string name="wifi_type_incorrect">Netværkstype forkert</string>
<string name="wifi_type_label">Type</string>
<string name="zxing_url">http://code.google.com/p/zxing</string>
</resources>

View file

@ -107,6 +107,8 @@
<string name="preferences_remember_duplicates_summary">Speichern mehrerer Scans der gleichen Barcode in Historie</string>
<string name="preferences_remember_duplicates_title">Denken Sie daran, Duplikate</string>
<string name="preferences_result_title">Ergebnis-Einstellungen</string>
<string name="preferences_reverse_image_summary">Aktivieren Sie bei Geräten mit einer Frontkamera nur</string>
<string name="preferences_reverse_image_title">Reversed Kamerabild</string>
<string name="preferences_scanning_title">Beim Scannen von Barcodes, dekodieren\u2026</string>
<string name="preferences_supplemental_summary">Versuchen Sie, mehr Informationen über die Barcode-Inhalte abrufen</string>
<string name="preferences_supplemental_title">Rufen Sie weitere Informationen</string>

View file

@ -107,6 +107,8 @@
<string name="preferences_remember_duplicates_summary">Guarde varios escáneres del mismo código de barras en la historia</string>
<string name="preferences_remember_duplicates_title">Recuerde duplicados</string>
<string name="preferences_result_title">Configuración de resultados</string>
<string name="preferences_reverse_image_summary">Activar en dispositivos con cámara frontal sólo</string>
<string name="preferences_reverse_image_title">Imagen invertida de la cámara</string>
<string name="preferences_scanning_title">Al escanear códigos de barras, descodificar\u2026</string>
<string name="preferences_supplemental_summary">Buscar más información sobre el contenido del código de barras</string>
<string name="preferences_supplemental_title">Buscar más información</string>

View file

@ -107,6 +107,8 @@
<string name="preferences_remember_duplicates_summary">Tallentaa useita kopioita samaa viivakoodia historiassa</string>
<string name="preferences_remember_duplicates_title">Muista kaksoiskappaleet</string>
<string name="preferences_result_title">Tuloksien asetukset</string>
<string name="preferences_reverse_image_summary">Ota käyttöön laitteita etukameraa vain</string>
<string name="preferences_reverse_image_title">Käänteinen kameran kuva</string>
<string name="preferences_scanning_title">Kun skannaus viivakoodeja, dekoodaa\u2026</string>
<string name="preferences_supplemental_summary">Yritä hakea lisätietoja viivakoodin sisältö</string>
<string name="preferences_supplemental_title">Hae lisää tietoa</string>

View file

@ -107,6 +107,8 @@
<string name="preferences_remember_duplicates_summary">Enregistrer dans l\'historique les lectures multiples d\'un même code-barres</string>
<string name="preferences_remember_duplicates_title">Enregistrer les doublons</string>
<string name="preferences_result_title">Paramètres de résultat</string>
<string name="preferences_reverse_image_summary">Activer sur les appareils avec un appareil photo avant seulement</string>
<string name="preferences_reverse_image_title">Image inversée</string>
<string name="preferences_scanning_title">Pendant la numérisation, lire les codes\u2026</string>
<string name="preferences_supplemental_summary">Essayez de retrouver plus d\'informations sur le contenu de codes-barres</string>
<string name="preferences_supplemental_title">Retrouver plus d\'informations</string>

View file

@ -107,6 +107,8 @@
<string name="preferences_remember_duplicates_summary">Tárolni több vizsgál az azonos vonalkód történelem</string>
<string name="preferences_remember_duplicates_title">Emlékezzen duplázik</string>
<string name="preferences_result_title">Találati beállítások</string>
<string name="preferences_reverse_image_summary">Engedélyezze a készülék egy első kamera csak a</string>
<string name="preferences_reverse_image_title">Fordított fényképezőgép</string>
<string name="preferences_scanning_title">A szkennelés a vonalkódok, megfejtése\u2026</string>
<string name="preferences_supplemental_summary">Próbáld meg letölteni több információt a vonalkód tartalma</string>
<string name="preferences_supplemental_title">Letölt További információk</string>

View file

@ -107,6 +107,8 @@
<string name="preferences_remember_duplicates_summary">Conservare scansioni multiple del codice a barre stesso nella Cronologia</string>
<string name="preferences_remember_duplicates_title">Ricordate i duplicati</string>
<string name="preferences_result_title">Impostazioni risultato</string>
<string name="preferences_reverse_image_summary">Attiva su dispositivi con una fotocamera frontale solo</string>
<string name="preferences_reverse_image_title">Invertita dell\'immagine della fotocamera</string>
<string name="preferences_scanning_title">Durante la scansione di codici a barre, decodifica\u2026</string>
<string name="preferences_supplemental_summary">Prova a cercare ulteriori informazioni sul contenuto del codice a barre</string>
<string name="preferences_supplemental_title">Recuperare più informazioni</string>

View file

@ -107,6 +107,8 @@
<string name="preferences_remember_duplicates_summary">歴史の中で、同じバーコードのストア複数のスキャン</string>
<string name="preferences_remember_duplicates_title">覚えておいて重複</string>
<string name="preferences_result_title">検索結果の設定</string>
<string name="preferences_reverse_image_summary">唯一のフロントカメラを持つデバイスで有効にする</string>
<string name="preferences_reverse_image_title">逆カメラ画像</string>
<string name="preferences_scanning_title">時バーコードスキャン</string>
<string name="preferences_supplemental_summary">バーコード内容についての詳細情報を取得してみてください</string>
<string name="preferences_supplemental_title">取得の詳細情報をもっと見る</string>

View file

@ -107,6 +107,8 @@
<string name="preferences_remember_duplicates_summary">복수의 같은 바코드를 기록에 저장</string>
<string name="preferences_remember_duplicates_title">중복된 바코드 저장</string>
<string name="preferences_result_title">결과 설정</string>
<string name="preferences_reverse_image_summary">단지 전면 카메라와 장치에 사용</string>
<string name="preferences_reverse_image_title">반대로 카메라 이미지</string>
<string name="preferences_scanning_title">바코드 스캐닝 시\u2026</string>
<string name="preferences_supplemental_summary">바코드 내용에 대한 자세한 정보를 검색하려고</string>
<string name="preferences_supplemental_title">검색 상세 정보</string>

View file

@ -107,6 +107,8 @@
<string name="preferences_remember_duplicates_summary">Onthoud meerdere scans van dezelfde barcode in de geschiedenis</string>
<string name="preferences_remember_duplicates_title">Onthoud duplicaten</string>
<string name="preferences_result_title">Instellingen voor resultaat</string>
<string name="preferences_reverse_image_summary">Staat op apparaten met een camera aan de voorkant alleen</string>
<string name="preferences_reverse_image_title">Omgekeerd beeld van de camera</string>
<string name="preferences_scanning_title">Bij het scannen van barcodes, decodeer\u2026</string>
<string name="preferences_supplemental_summary">Proberen om meer informatie over de inhoud van barcode ophalen</string>
<string name="preferences_supplemental_title">Halen meer info</string>

View file

@ -107,6 +107,8 @@
<string name="preferences_remember_duplicates_summary">Przechowywanie wielu skanowanie kodów kreskowych w tej samej historii</string>
<string name="preferences_remember_duplicates_title">Pamiętaj, duplikaty</string>
<string name="preferences_result_title">Ustawienia rezultatów</string>
<string name="preferences_reverse_image_summary">Włącz na urządzeniach z przedniej kamery tylko</string>
<string name="preferences_reverse_image_title">Odwrócony obraz z kamery</string>
<string name="preferences_scanning_title">Podczas skanowania kodów kreskowych\u2026</string>
<string name="preferences_supplemental_summary">Prosimy spróbować wyszukać więcej informacji na temat kodów kreskowych treści</string>
<string name="preferences_supplemental_title">Pobierz więcej informacji</string>

View file

@ -107,6 +107,8 @@
<string name="preferences_remember_duplicates_summary">Armazenar vários scans do mesmo código de barras em História</string>
<string name="preferences_remember_duplicates_title">Lembre-se de duplicatas</string>
<string name="preferences_result_title">Definições de resultados</string>
<string name="preferences_reverse_image_summary">Use em dispositivos com uma câmera frontal só</string>
<string name="preferences_reverse_image_title">Invertida imagem da câmara</string>
<string name="preferences_scanning_title">Quando a digitalização de códigos de barras, descodificar\u2026</string>
<string name="preferences_supplemental_summary">Tente obter mais informações sobre o conteúdo do código de barras</string>
<string name="preferences_supplemental_title">Obter mais informações</string>

View file

@ -107,6 +107,8 @@
<string name="preferences_remember_duplicates_summary">Сохранять в истории результат сканирования одного и того же штрих-кода</string>
<string name="preferences_remember_duplicates_title">Запоминать дубликаты</string>
<string name="preferences_result_title">Настройки результатов</string>
<string name="preferences_reverse_image_summary">Включить на устройствах с фронтальной камеры только</string>
<string name="preferences_reverse_image_title">Обратный изображения камеры</string>
<string name="preferences_scanning_title">При сканировании штрих-кодов\u2026</string>
<string name="preferences_supplemental_summary">Показывать подробную информацию о штрих-коде</string>
<string name="preferences_supplemental_title">Подробности</string>
@ -137,4 +139,3 @@
<string name="wifi_type_label">Тип</string>
<string name="zxing_url">http://code.google.com/p/zxing</string>
</resources>

View file

@ -107,6 +107,8 @@
<string name="preferences_remember_duplicates_summary">Shranjevanje več skandiranje iste črtne kode v zgodovini</string>
<string name="preferences_remember_duplicates_title">Zapomni si dvojnikov</string>
<string name="preferences_result_title">Nastavitve rezultatov branja</string>
<string name="preferences_reverse_image_summary">Omogoči na napravah z sprednjo kamero samo</string>
<string name="preferences_reverse_image_title">Zamenjano kamera slike</string>
<string name="preferences_scanning_title">Ko berete črtne kode, preberi\u2026</string>
<string name="preferences_supplemental_summary">Poskusite pridobiti več informacij o vsebini črtne kode</string>
<string name="preferences_supplemental_title">Naloži Več info</string>

View file

@ -107,6 +107,8 @@
<string name="preferences_remember_duplicates_summary">Lagra flera skanningar av samma streckkod i historia</string>
<string name="preferences_remember_duplicates_title">Kom ihåg dubbletter</string>
<string name="preferences_result_title">Resultatinställningar</string>
<string name="preferences_reverse_image_summary">Aktivera på enheter med en främre kamera</string>
<string name="preferences_reverse_image_title">Återförda kamerabilden</string>
<string name="preferences_scanning_title">När du skannar för streckkoder, avkoda\u2026</string>
<string name="preferences_supplemental_summary">Försök att hämta mer information om streckkoden innehåll</string>
<string name="preferences_supplemental_title">Hämta mer info</string>

View file

@ -107,6 +107,8 @@
<string name="preferences_remember_duplicates_summary">Aynı kodlu barkodları hatırlama</string>
<string name="preferences_remember_duplicates_title">Aynı barkodları hatırlar</string>
<string name="preferences_result_title">Sonuç ayarları</string>
<string name="preferences_reverse_image_summary">sadece bir ön kamera ile cihazlarda etkinleştirin</string>
<string name="preferences_reverse_image_title">Ters kamera görüntüsü</string>
<string name="preferences_scanning_title">Barkodlar taraması \u2026</string>
<string name="preferences_supplemental_summary">Barkod içeriği hakkında daha fazla bilgi almak için</string>
<string name="preferences_supplemental_title">Daha fazla bilgi</string>

View file

@ -1,139 +1,141 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (C) 2010 ZXing authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<resources>
<string name="app_name">条码扫描器</string>
<string name="app_picker_name">应用</string>
<string name="bookmark_picker_name">书签</string>
<string name="button_add_calendar">添加事件至日历</string>
<string name="button_add_contact">添加联系人</string>
<string name="button_back">返回</string>
<string name="button_book_search">打开图书搜索</string>
<string name="button_cancel">取消</string>
<string name="button_clipboard_empty">清空剪切板</string>
<string name="button_custom_product_search">自定义搜索</string>
<string name="button_dial">拨号</string>
<string name="button_done">完成</string>
<string name="button_email">发送email</string>
<string name="button_get_directions">获取地址</string>
<string name="button_google_shopper">谷歌购物</string>
<string name="button_mms">发送彩信</string>
<string name="button_ok">确定</string>
<string name="button_open_browser">打开浏览器</string>
<string name="button_product_search">打开产品搜索</string>
<string name="button_read_book">浏览本书</string>
<string name="button_search_book_contents">搜索图书内容</string>
<string name="button_share_app">共享应用</string>
<string name="button_share_bookmark">分享书签</string>
<string name="button_share_by_email">通过email分享</string>
<string name="button_share_by_sms">通过短信分享</string>
<string name="button_share_clipboard">分享剪切板</string>
<string name="button_share_contact">分享联系人</string>
<string name="button_show_map">显示地图</string>
<string name="button_sms">发送短信</string>
<string name="button_web_search">网页搜索</string>
<string name="button_wifi">连接到网络</string>
<string name="contents_contact">联系人信息</string>
<string name="contents_email">Email地址</string>
<string name="contents_location">地理坐标</string>
<string name="contents_phone">电话号码</string>
<string name="contents_sms">短信地址</string>
<string name="contents_text">纯文本</string>
<string name="history_clear_text">删除历史</string>
<string name="history_email_title">条码扫描器历史</string>
<string name="history_send">发送历史</string>
<string name="history_title">历史</string>
<string name="menu_about">关于</string>
<string name="menu_help">帮助</string>
<string name="menu_history">历史</string>
<string name="menu_settings">设置</string>
<string name="menu_share">分享</string>
<string name="msg_about">基于ZXing开源条码引擎</string>
<string name="msg_buggy">此设备存在已知问题,将导致条码扫描器出错。更多信息,请访问 http://code.google.com/p/zxing/wiki/FrequentlyAskedQuestions</string>
<string name="msg_bulk_mode_scanned">批量扫描:找到条码,已保存</string>
<string name="msg_camera_framework_bug">抱歉Android相机出现问题。您可能需要重启设备。</string>
<string name="msg_default_contents">内容</string>
<string name="msg_default_format">格式</string>
<string name="msg_default_meta">元数据</string>
<string name="msg_default_mms_subject">Hi</string>
<string name="msg_default_status">请将条码置于取景框内扫描。 </string>
<string name="msg_default_time">时间</string>
<string name="msg_default_type">类型</string>
<string name="msg_encode_barcode_failed">无法生成条码。</string>
<string name="msg_encode_contents_failed">无法根据已有数据生成条码。 </string>
<string name="msg_google_shopper_missing">谷歌购物未安装</string>
<string name="msg_install_google_shopper">谷歌购物是一款将条码扫描和商品比价相结合的应用,谷歌购物不使用浏览器,您想尝试吗?</string>
<string name="msg_intent_failed">抱歉,无法打开所需软件。 条码内容可能无效。</string>
<string name="msg_loading_apps">加载应用名单…</string>
<string name="msg_not_our_results">您将离开此应用程序,得到的搜索结果与此应用程序无关</string>
<string name="msg_redirect">重定向</string>
<string name="msg_sbc_book_not_searchable">抱歉,无法找到此图书。</string>
<string name="msg_sbc_failed">抱歉,搜索时遇到错误。</string>
<string name="msg_sbc_no_page_returned">无页面返回</string>
<string name="msg_sbc_page">页面</string>
<string name="msg_sbc_searching_book">搜索图书…</string>
<string name="msg_sbc_snippet_unavailable">摘录不可用</string>
<string name="msg_sbc_unknown_page">未知页面</string>
<string name="msg_share_explanation">您可以通过在自己的手机上显示条码,并使用其它手机扫描此条码的方式进行分享</string>
<string name="msg_share_subject_line">这是我所扫描条码的内容</string>
<string name="msg_unmount_usb">抱歉SD卡不可访问。</string>
<string name="preferences_actions_title">找到条码时</string>
<string name="preferences_bulk_mode_summary">连续扫描并保存多个条形码</string>
<string name="preferences_bulk_mode_title">批量扫描模式</string>
<string name="preferences_copy_to_clipboard_title">复制到剪切板</string>
<string name="preferences_custom_product_search_summary">使用%s作为产品ID占位符</string>
<string name="preferences_custom_product_search_title">自定义搜索网址</string>
<string name="preferences_decode_1D_title">扫描 一维条码</string>
<string name="preferences_decode_Data_Matrix_title">扫描 DM码</string>
<string name="preferences_decode_QR_title">扫描 QR码</string>
<string name="preferences_front_light_summary">前灯可用时,打开前灯</string>
<string name="preferences_front_light_title">前灯</string>
<string name="preferences_general_title">一般设置</string>
<string name="preferences_name">设置</string>
<string name="preferences_play_beep_title">提示音</string>
<string name="preferences_remember_duplicates_summary">在历史记录中保存重复记录</string>
<string name="preferences_remember_duplicates_title">记住重复</string>
<string name="preferences_result_title">结果设置</string>
<string name="preferences_scanning_title">条码类型选择</string>
<string name="preferences_supplemental_summary">尝试检索关于条码内容的更多信息</string>
<string name="preferences_supplemental_title">检索更多信息</string>
<string name="preferences_vibrate_title">振动</string>
<string name="result_address_book">找到联系人信息</string>
<string name="result_calendar">找到日历事件</string>
<string name="result_email_address">找到email地址</string>
<string name="result_geo">找到地理坐标</string>
<string name="result_isbn">找到图书</string>
<string name="result_product">找到产品</string>
<string name="result_sms">找到短信地址</string>
<string name="result_tel">找到电话号码</string>
<string name="result_text">找到纯文本</string>
<string name="result_uri">找到URL</string>
<string name="result_wifi">发现网络配置</string>
<string name="sbc_name">Google图书搜索</string>
<string name="share_name">通过条码分享</string>
<string name="title_about">条码扫描器</string>
<string name="wa_name">网络配置</string>
<string name="wifi_changing_network">不稳定的网络</string>
<string name="wifi_connect_failed">网络连接失败</string>
<string name="wifi_connected">已连接</string>
<string name="wifi_creating_network">创建网络</string>
<string name="wifi_modifying_network">修改网络</string>
<string name="wifi_ssid_label">网络SSID</string>
<string name="wifi_ssid_missing">未找到SSID名称</string>
<string name="wifi_type_incorrect">网络类型不正确</string>
<string name="wifi_type_label">类型</string>
<string name="zxing_url">http://code.google.com/p/zxing</string>
</resources>
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (C) 2010 ZXing authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<resources>
<string name="app_name">条码扫描器</string>
<string name="app_picker_name">应用</string>
<string name="bookmark_picker_name">书签</string>
<string name="button_add_calendar">添加事件至日历</string>
<string name="button_add_contact">添加联系人</string>
<string name="button_back">返回</string>
<string name="button_book_search">打开图书搜索</string>
<string name="button_cancel">取消</string>
<string name="button_clipboard_empty">清空剪切板</string>
<string name="button_custom_product_search">自定义搜索</string>
<string name="button_dial">拨号</string>
<string name="button_done">完成</string>
<string name="button_email">发送email</string>
<string name="button_get_directions">获取地址</string>
<string name="button_google_shopper">谷歌购物</string>
<string name="button_mms">发送彩信</string>
<string name="button_ok">确定</string>
<string name="button_open_browser">打开浏览器</string>
<string name="button_product_search">打开产品搜索</string>
<string name="button_read_book">浏览本书</string>
<string name="button_search_book_contents">搜索图书内容</string>
<string name="button_share_app">共享应用</string>
<string name="button_share_bookmark">分享书签</string>
<string name="button_share_by_email">通过email分享</string>
<string name="button_share_by_sms">通过短信分享</string>
<string name="button_share_clipboard">分享剪切板</string>
<string name="button_share_contact">分享联系人</string>
<string name="button_show_map">显示地图</string>
<string name="button_sms">发送短信</string>
<string name="button_web_search">网页搜索</string>
<string name="button_wifi">连接到网络</string>
<string name="contents_contact">联系人信息</string>
<string name="contents_email">Email地址</string>
<string name="contents_location">地理坐标</string>
<string name="contents_phone">电话号码</string>
<string name="contents_sms">短信地址</string>
<string name="contents_text">纯文本</string>
<string name="history_clear_text">删除历史</string>
<string name="history_email_title">条码扫描器历史</string>
<string name="history_send">发送历史</string>
<string name="history_title">历史</string>
<string name="menu_about">关于</string>
<string name="menu_help">帮助</string>
<string name="menu_history">历史</string>
<string name="menu_settings">设置</string>
<string name="menu_share">分享</string>
<string name="msg_about">基于ZXing开源条码引擎</string>
<string name="msg_buggy">此设备存在已知问题,将导致条码扫描器出错。更多信息,请访问 http://code.google.com/p/zxing/wiki/FrequentlyAskedQuestions</string>
<string name="msg_bulk_mode_scanned">批量扫描:找到条码,已保存</string>
<string name="msg_camera_framework_bug">抱歉Android相机出现问题。您可能需要重启设备。</string>
<string name="msg_default_contents">内容</string>
<string name="msg_default_format">格式</string>
<string name="msg_default_meta">元数据</string>
<string name="msg_default_mms_subject">Hi</string>
<string name="msg_default_status">请将条码置于取景框内扫描。 </string>
<string name="msg_default_time">时间</string>
<string name="msg_default_type">类型</string>
<string name="msg_encode_barcode_failed">无法生成条码。</string>
<string name="msg_encode_contents_failed">无法根据已有数据生成条码。 </string>
<string name="msg_google_shopper_missing">谷歌购物未安装</string>
<string name="msg_install_google_shopper">谷歌购物是一款将条码扫描和商品比价相结合的应用,谷歌购物不使用浏览器,您想尝试吗?</string>
<string name="msg_intent_failed">抱歉,无法打开所需软件。 条码内容可能无效。</string>
<string name="msg_loading_apps">加载应用名单…</string>
<string name="msg_not_our_results">您将离开此应用程序,得到的搜索结果与此应用程序无关</string>
<string name="msg_redirect">重定向</string>
<string name="msg_sbc_book_not_searchable">抱歉,无法找到此图书。</string>
<string name="msg_sbc_failed">抱歉,搜索时遇到错误。</string>
<string name="msg_sbc_no_page_returned">无页面返回</string>
<string name="msg_sbc_page">页面</string>
<string name="msg_sbc_searching_book">搜索图书…</string>
<string name="msg_sbc_snippet_unavailable">摘录不可用</string>
<string name="msg_sbc_unknown_page">未知页面</string>
<string name="msg_share_explanation">您可以通过在自己的手机上显示条码,并使用其它手机扫描此条码的方式进行分享</string>
<string name="msg_share_subject_line">这是我所扫描条码的内容</string>
<string name="msg_unmount_usb">抱歉SD卡不可访问。</string>
<string name="preferences_actions_title">找到条码时</string>
<string name="preferences_bulk_mode_summary">连续扫描并保存多个条形码</string>
<string name="preferences_bulk_mode_title">批量扫描模式</string>
<string name="preferences_copy_to_clipboard_title">复制到剪切板</string>
<string name="preferences_custom_product_search_summary">使用%s作为产品ID占位符</string>
<string name="preferences_custom_product_search_title">自定义搜索网址</string>
<string name="preferences_decode_1D_title">扫描 一维条码</string>
<string name="preferences_decode_Data_Matrix_title">扫描 DM码</string>
<string name="preferences_decode_QR_title">扫描 QR码</string>
<string name="preferences_front_light_summary">前灯可用时,打开前灯</string>
<string name="preferences_front_light_title">前灯</string>
<string name="preferences_general_title">一般设置</string>
<string name="preferences_name">设置</string>
<string name="preferences_play_beep_title">提示音</string>
<string name="preferences_remember_duplicates_summary">在历史记录中保存重复记录</string>
<string name="preferences_remember_duplicates_title">记住重复</string>
<string name="preferences_result_title">结果设置</string>
<string name="preferences_reverse_image_summary">设备上启用了前置摄像头只</string>
<string name="preferences_reverse_image_title">反转摄像机的图像</string>
<string name="preferences_scanning_title">条码类型选择</string>
<string name="preferences_supplemental_summary">尝试检索关于条码内容的更多信息</string>
<string name="preferences_supplemental_title">检索更多信息</string>
<string name="preferences_vibrate_title">振动</string>
<string name="result_address_book">找到联系人信息</string>
<string name="result_calendar">找到日历事件</string>
<string name="result_email_address">找到email地址</string>
<string name="result_geo">找到地理坐标</string>
<string name="result_isbn">找到图书</string>
<string name="result_product">找到产品</string>
<string name="result_sms">找到短信地址</string>
<string name="result_tel">找到电话号码</string>
<string name="result_text">找到纯文本</string>
<string name="result_uri">找到URL</string>
<string name="result_wifi">发现网络配置</string>
<string name="sbc_name">Google图书搜索</string>
<string name="share_name">通过条码分享</string>
<string name="title_about">条码扫描器</string>
<string name="wa_name">网络配置</string>
<string name="wifi_changing_network">不稳定的网络</string>
<string name="wifi_connect_failed">网络连接失败</string>
<string name="wifi_connected">已连接</string>
<string name="wifi_creating_network">创建网络</string>
<string name="wifi_modifying_network">修改网络</string>
<string name="wifi_ssid_label">网络SSID</string>
<string name="wifi_ssid_missing">未找到SSID名称</string>
<string name="wifi_type_incorrect">网络类型不正确</string>
<string name="wifi_type_label">类型</string>
<string name="zxing_url">http://code.google.com/p/zxing</string>
</resources>

View file

@ -107,6 +107,8 @@
<string name="preferences_remember_duplicates_summary">存儲多個條碼掃描相同的歷史</string>
<string name="preferences_remember_duplicates_title">記住重複</string>
<string name="preferences_result_title">結果設定</string>
<string name="preferences_reverse_image_summary">啟用設備上只有一個前置攝像頭</string>
<string name="preferences_reverse_image_title">反轉攝像機的圖像</string>
<string name="preferences_scanning_title">當掃描條形碼</string>
<string name="preferences_supplemental_summary">嘗試檢索更多的信息條碼內容</string>
<string name="preferences_supplemental_title">檢索更多的信息</string>

View file

@ -106,6 +106,8 @@
<string name="preferences_play_beep_title">Beep</string>
<string name="preferences_remember_duplicates_summary">Store multiple scans of the same barcode in History</string>
<string name="preferences_remember_duplicates_title">Remember duplicates</string>
<string name="preferences_reverse_image_summary">Enable on devices with a front camera only</string>
<string name="preferences_reverse_image_title">Reversed camera image</string>
<string name="preferences_result_title">Result settings</string>
<string name="preferences_scanning_title">When scanning for barcodes, decode\u2026</string>
<string name="preferences_supplemental_summary">Try to retrieve more information about the barcode contents</string>

View file

@ -28,6 +28,11 @@
android:key="preferences_decode_Data_Matrix"
android:defaultValue="true"
android:title="@string/preferences_decode_Data_Matrix_title"/>
<CheckBoxPreference
android:key="preferences_reverse_image"
android:defaultValue="flse"
android:title="@string/preferences_reverse_image_title"
android:summary="@string/preferences_reverse_image_summary"/>
</PreferenceCategory>
<PreferenceCategory android:title="@string/preferences_actions_title">
<CheckBoxPreference

View file

@ -31,14 +31,21 @@ import android.graphics.Bitmap;
* @author dswitkin@google.com (Daniel Switkin)
*/
public final class PlanarYUVLuminanceSource extends LuminanceSource {
private final byte[] yuvData;
private final int dataWidth;
private final int dataHeight;
private final int left;
private final int top;
public PlanarYUVLuminanceSource(byte[] yuvData, int dataWidth, int dataHeight, int left, int top,
int width, int height) {
public PlanarYUVLuminanceSource(byte[] yuvData,
int dataWidth,
int dataHeight,
int left,
int top,
int width,
int height,
boolean reverseHorizontal) {
super(width, height);
if (left + width > dataWidth || top + height > dataHeight) {
@ -50,6 +57,9 @@ public final class PlanarYUVLuminanceSource extends LuminanceSource {
this.dataHeight = dataHeight;
this.left = left;
this.top = top;
if (reverseHorizontal) {
reverseHorizontal(width, height);
}
}
@Override
@ -130,4 +140,17 @@ public final class PlanarYUVLuminanceSource extends LuminanceSource {
bitmap.setPixels(pixels, 0, width, 0, 0, width, height);
return bitmap;
}
private void reverseHorizontal(int width, int height) {
byte[] yuvData = this.yuvData;
for (int y = 0, rowStart = top * dataWidth + left; y < height; y++, rowStart += dataWidth) {
int middle = rowStart + width / 2;
for (int x1 = rowStart, x2 = rowStart + width - 1; x1 < middle; x1++, x2--) {
byte temp = yuvData[x1];
yuvData[x1] = yuvData[x2];
yuvData[x2] = temp;
}
}
}
}

View file

@ -39,6 +39,7 @@ public final class PreferencesActivity extends PreferenceActivity
public static final String KEY_DECODE_DATA_MATRIX = "preferences_decode_Data_Matrix";
public static final String KEY_CUSTOM_PRODUCT_SEARCH = "preferences_custom_product_search";
public static final String KEY_REVERSE_IMAGE = "preferences_reverse_image";
public static final String KEY_PLAY_BEEP = "preferences_play_beep";
public static final String KEY_VIBRATE = "preferences_vibrate";
public static final String KEY_COPY_TO_CLIPBOARD = "preferences_copy_to_clipboard";

View file

@ -295,6 +295,9 @@ public final class CameraManager {
Rect rect = getFramingRectInPreview();
int previewFormat = configManager.getPreviewFormat();
String previewFormatString = configManager.getPreviewFormatString();
SharedPreferences sharedPrefs = PreferenceManager.getDefaultSharedPreferences(context);
boolean reverseHorizontal = sharedPrefs.getBoolean(PreferencesActivity.KEY_REVERSE_IMAGE, false);
switch (previewFormat) {
// This is the standard Android format which all devices are REQUIRED to support.
// In theory, it's the only one we should ever care about.
@ -302,14 +305,26 @@ public final class CameraManager {
// This format has never been seen in the wild, but is compatible as we only care
// about the Y channel, so allow it.
case PixelFormat.YCbCr_422_SP:
return new PlanarYUVLuminanceSource(data, width, height, rect.left, rect.top,
rect.width(), rect.height());
return new PlanarYUVLuminanceSource(data,
width,
height,
rect.left,
rect.top,
rect.width(),
rect.height(),
reverseHorizontal);
default:
// The Samsung Moment incorrectly uses this variant instead of the 'sp' version.
// Fortunately, it too has all the Y data up front, so we can read it.
if ("yuv420p".equals(previewFormatString)) {
return new PlanarYUVLuminanceSource(data, width, height, rect.left, rect.top,
rect.width(), rect.height());
return new PlanarYUVLuminanceSource(data,
width,
height,
rect.left,
rect.top,
rect.width(),
rect.height(),
reverseHorizontal);
}
}
throw new IllegalArgumentException("Unsupported picture format: " +