WO2015000308A1 - 留声照片生成方法及图片数据与声音数据合并存储方法 - Google Patents

留声照片生成方法及图片数据与声音数据合并存储方法 Download PDF

Info

Publication number
WO2015000308A1
WO2015000308A1 PCT/CN2014/073532 CN2014073532W WO2015000308A1 WO 2015000308 A1 WO2015000308 A1 WO 2015000308A1 CN 2014073532 W CN2014073532 W CN 2014073532W WO 2015000308 A1 WO2015000308 A1 WO 2015000308A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
recorded data
storing
sound
jpeg file
Prior art date
Application number
PCT/CN2014/073532
Other languages
English (en)
French (fr)
Inventor
徐滢
Original Assignee
成都品果科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 成都品果科技有限公司 filed Critical 成都品果科技有限公司
Publication of WO2015000308A1 publication Critical patent/WO2015000308A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N9/00Details of colour television systems
    • H04N9/79Processing of colour television signals in connection with recording
    • H04N9/80Transformation of the television signal for recording, e.g. modulation, frequency changing; Inverse transformation for playback
    • H04N9/804Transformation of the television signal for recording, e.g. modulation, frequency changing; Inverse transformation for playback involving pulse code modulation of the colour picture signal components
    • H04N9/8042Transformation of the television signal for recording, e.g. modulation, frequency changing; Inverse transformation for playback involving pulse code modulation of the colour picture signal components involving data reduction
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N9/00Details of colour television systems
    • H04N9/79Processing of colour television signals in connection with recording
    • H04N9/80Transformation of the television signal for recording, e.g. modulation, frequency changing; Inverse transformation for playback
    • H04N9/82Transformation of the television signal for recording, e.g. modulation, frequency changing; Inverse transformation for playback the individual colour picture signal components being recorded simultaneously only
    • H04N9/8205Transformation of the television signal for recording, e.g. modulation, frequency changing; Inverse transformation for playback the individual colour picture signal components being recorded simultaneously only involving the multiplexing of an additional signal and the colour video signal
    • H04N9/8211Transformation of the television signal for recording, e.g. modulation, frequency changing; Inverse transformation for playback the individual colour picture signal components being recorded simultaneously only involving the multiplexing of an additional signal and the colour video signal the additional signal being a sound signal

Definitions

  • the present invention relates to image processing technology, and in particular to a sound-receiving photo of a mobile device such as a mobile phone or a tablet brain.
  • the present invention proposes a method for generating a sound-receiving photograph, which brings the sound to the photograph.
  • a method for generating a voice-taking photo in the present invention includes:
  • Step 1 Continue to obtain recorded data
  • Step 2 Obtain photo data at any time during the acquisition of the recorded data
  • Step 3 Select a piece of recording data according to the user instruction, and combine the selected recording data and photo data.
  • the step 1 includes:
  • Step 101 Generate a loop queue
  • Step 102 The recording data is continuously acquired and sequentially stored in the loop ⁇ person column; when the loop queue is full, the new recording data sequentially covers the existing data in the loop queue.
  • the step 3 includes storing the recorded data and the photo data in a JPEG file.
  • the method for storing the recorded data in the JPEG file in the step 3 includes:
  • Step 301 Select a piece of recorded data in the queue.
  • Step 302 Determine whether the size of the recorded data exceeds the W value: if the threshold is not exceeded, store the recorded data in an APP15 segment in the JPEG file; if the threshold is exceeded, the recorded number ft is sliced , then each piece Description
  • the recorded data is stored in a plurality of APP15 segments in the JPEG file, respectively;
  • Each of the APP15 segments also includes the number of fragments S of the recorded data, and the number of the corpses corresponding to the stored recorded data.
  • the step 102 further includes:
  • the acquired recorded data is first encoded and compressed, and then the encoded compressed data is sequentially stored in the cyclic P-person column. [0011]
  • the recorded data is first encoded and compressed.
  • the threshold is 64K bytes; and the number of sounds * after the slice is not more than 64K bytes.
  • An object of the present invention is to provide a method for combining and storing sound data and ffl slice data, comprising: Step i: storing W J 'f data in a JPEG file;
  • Step 2 determining whether the size of the sound data exceeds a threshold: if the threshold is not exceeded, storing the sound data in an APP15 segment in the JPEG file; ⁇ exceeding the threshold, then segmenting the sound data, And storing each fragment separately into a plurality of APP15 segments in the JPEG file;
  • Each of the APP 15 segments further includes a slice number fl of the sound data, and a slice sequence corresponding to the stored sound data.
  • the method for generating a sound-retaining photo uses a unique ⁇ mode to enter the framing boundary ⁇ before starting to record, and the saving mode is saved by a quick A.
  • the generated photo can be recorded in the ambient sound of about 10 seconds before and after the shutter. No User Perform any complicated operations, and it is often convenient to use *.
  • the invention combines the recorded sound data and the W slice data, and stores the recorded sound data into a certain segment of the W file, which effectively reduces the use of the memory of the mobile phone itself, and ensures the consistency of the sound data and the image data.
  • One of the values of the photo itself is to store memory, but over time, the photo fades away without environmental memory.
  • the present invention can provide a photo of the retained sound, and the actual recording of the ambient sound before and after the photo, for example, about 10s before and after the photo, so that the information of the photo itself contains fi larger and saves longer.
  • FIG. 2 is a flow chart of a method for acquiring a recording according to the present invention.
  • m 3 is a flow chart of another embodiment of the method for acquiring a recording according to the present invention. Instruction manual
  • W ⁇ 4 is a schematic diagram of storing sounds in a circular queue.
  • W 5 is a schematic diagram of a JPEG file format.
  • FIG. 6 is a schematic diagram of the APP15 header information.
  • [0023] 7 is a schematic diagram of the APP15 TIFF header information.
  • Step 1 Continue to obtain recorded data
  • Step 2 Obtain photo data at any time during the acquisition of the recorded data
  • Step 3 Select a piece of recording data according to the user instruction, and combine the recording data and the photo data.
  • ⁇ 1 shows the relationship between the time of acquiring the sound data and the time of the illumination in the present invention.
  • the recording starts before the ⁇ , and the event can be generated at any time during the recording phase according to the user's preference.
  • a storage space is opened as a circular queue when the program is initialized.
  • the mobile device such as S
  • the mobile phone continues to record, and the obtained recorded data is sequentially stored in the circular queue.
  • the new recorded data overwrites the existing data in the circular queue in order.
  • the loop queue includes a header and a tail pointer, the head pointer points to the start address of the recorded data storage, and the tail pointer points to the last address of the recorded data storage. All or part of the recorded data can be read by recording these two pointers.
  • the recorded data can be compressed. According to the difference in performance of different mobile devices and the requirements that are not asked, select the strategy that is not asked to perform the recording data operation.
  • a real-time sound data encoding ffi reduction operation can be performed. As shown in FIG. 2, the acquired recorded data is first encoded and compressed, and then the encoded compressed data is sequentially stored in the circular queue.
  • the recording data is stored in the circular queue without compression encoding, and the original PCM format recording data is directly stored in the circular queue.
  • the encoding compression format mentioned in the above embodiments adopts a more popular MP3 format, and the format can be used. Description
  • the present invention combines recorded data and photo data.
  • the JPEG format is used for most compressed images. This file conforms to the TIFF standard. As shown in Figure 5, in the TIFF standard, the JPEG format file contains SOL APP0-APP15, DQT, ..., EOI and other fields for recording. WJi' information. It seems that the APP15 segment is generally not used in 3 ⁇ 4P applications.
  • the present invention utilizes the APP15 segment to store recorded data to avoid conflicts of information and improve picture compatibility. Since there is a 64k byte size limit for each APP segment, it should be checked whether the size of the recorded data exceeds the set «value, which is no more than 64k bytes before storing the recorded data. Multiple APP15 segments can be set as needed, for example APP15-K APP15-2, ..., ⁇ 15- ⁇ rad
  • the recorded data may be encoded and compressed as needed, as shown in FIG. 3; For mobile devices with larger memory, it is also possible to not encode and compress the recorded data; determine whether the size of the recorded data to be combined and stored exceeds the threshold. If the value is not exceeded, the number of recordings can be directly stored in ⁇ 15; For the threshold, the sound data is sliced so that the size of the recorded data of the cymbal does not exceed 64 k, and then each shard is stored in APP15-1, APP15-2, ..., ⁇ 15- ⁇ .
  • the recorded data is divided, at least the total number of fragments and the points stored in the 15 segments of the APP are stored in the APP15 segment.
  • the corresponding ordinal number that is, the first fragment, so that you can browse W
  • the deep copy technique can be used, and the deep copy can ensure the processing of the data without affecting the operation of the thread by the acquiring thread.
  • the above-mentioned deep copy, sound segmentation and splicing are all prior art, and the specific steps thereof will not be described in detail herein.
  • each APP 15 segment includes an APP15 Marker field, which stores the hexadecimal number specified by the TIFF standard, as shown in FIG. 6;
  • APP15 Length field stores the APP 15 segment to store the recording The length of the data;
  • the Identifier Code field can be used to store the developer's identification information;
  • the TIFF Header stores the information specified by the TIFF standard, see Figure 7;
  • the Oth lFD field which stores the hexadecimal number specified by the TIFF standard; followed by the 0th IFD Value
  • the field can be used to store the format of the recorded data, such as the total number of PCM format or MP3 format, the number of fragments, and so on.
  • 1st IFD stores the TIFF standard. The specified hexadecimal number; followed by the 1th IFD Value.
  • the lth IFD Sound Data section is used to store the recorded data or the recorded data after the slice.
  • the program when the user uses, first enters the recording mode, the program initializes a circular queue that can store sound data of 10s length, and starts to continuously acquire and store the recorded data, and then the user enters the framing mode when the recording continues for 2s.
  • the shutter acquires the photo data, and acquires the recorded data after pressing the shutter for 3 seconds.
  • the program combines the stored 2s and the subsequent recorded data and the photo data stored in the loop queue to obtain the retained sound photo.
  • the method for combining the foregoing recording data and the photo data may be used independently, and specifically includes:
  • Step 1 Store the image data in a JPEG file
  • Step 2 determining whether the size of the sound data exceeds a threshold: if the value is not exceeded, storing the sound data in an APP15 segment in the JPEG file; ⁇ exceeding the threshold, then segmenting the sound data, And storing each fragment separately into a plurality of APP15 segments in the JPEG file;
  • Each of the APP15 segments further includes a slice number S of sound data, and a corpse "ordinal number" corresponding to the stored sound data.
  • the present invention is not limited to the specific embodiment described above.
  • the present invention extends to any new feature or any new combination disclosed in this specification, as well as any steps or any new method or process disclosed. New combination.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Television Signal Processing For Recording (AREA)

Abstract

本发明公开了留声照片生成方法及图片数据与声音数据合并存储方法,涉及图片处理技术。本发明的留声照片的生成方法,包括:持续获取录音数据;在获取录音数据期间的任意时刻获取照片数据;根据用户指令选择一段录音数据,将所选的录音数据及照片数据合并存储。本发明的声音数据与图片数据合并存储的方法包括:将图片数据存储到 JPEG文件中;判断声音数据大小是否超过阈值:若不超过阈值,则将所述声音数据存储到所述JPEG文件中的一个APP15段中;若超过阈值,则将所述声音数据进行分片,再将各个分片分别存储到所述JPEG文件中的多个APP15段中。

Description

说 明 书
留声照片生成方法及图片数据与声音数据合并存储方法 技术领域
[0001] 本发明涉及图片处理技术, 尤其是应用于手机、 平板 脑等移动设备的留声照片的
*成方法及图片数据集声音数据合并存储的方法。
背景技术
[0002] 目前, 用照片或者视频的方式记录牛.活片段是人们使用的比: $:较高的一种方式。 手 机照 ffl是手机的一个附加功能, 且由于手机具有体积小, 厚度薄, 携带和操作方便的特点, 使用手机进行 ίίι照和摄影更受到人们的青睡。
[0003] 照 ^产生的主要目的就是为了记忆存储, ί口.是随着时间的久远, 这种照片的记忆会
Η为没有环境记忆而淡去。 而视频的录制、 存储、 浏览、 分享并不能达到人们 要的简单方 便的要求。
[0004] 人们一方 |ήί对于手机摄影功能和照片多样性艺术表现的要求不断提高, 一反 Ifii又 要去录制、 存储、 ί刘览、 分享等操作筒单方便。
发明内容
[00051 在上述 大露求的背景下, 本发明提出了一种留声照片的生成方法, 让照片带上声 音。
[0006]本发明中的留声照片的生成方法, 包括:
步骤 1: 持续获取录音数据;
步骤 2: 在获取录音数据期间的任意时刻获取照片数据;
步骤 3: 根据用户指令选择一段录音数据, 将所选的录音数据及照片数据合并存储。
[0007]优选地, 所述步骤 1包括:
步骤 101 : 生成一循环队列;
步骤 102: 持续获取录音数据并依次存储到所述循环 β人列中; 当循环队列存储满时, 新的录 音数据依次覆盖循环队列中已有的数据。
[0008]优选地, 所述步骤 3包括将录音数据及照片数据都存储到 JPEG文件中。
[0009]优选地, 所述步骤 3中将录音数据存储到 JPEG文件中的方法包括:
步骤 301: 选取所述队列中的一段录音数据;
步骤 302: 判断录音数据大小是否超过 W值: 若不超过阈值, 则将所述录音数据存储到所述 JPEG文件中的一个 APP15段中; 若超过阈值, 则将所述录音数 ft进行分片, 再将各个分片 说 明 书
后的录音数据分別存储到所述 JPEG文件中的多个 APP15段中;
所述每个 APP15 段中还包括录音数据的分片数 S, 及其所存储的录音数据对应的分尸「序 数。
[0010]优选地, 所述步骤 102进一步包括:
先将获取的录音数据进行编码压缩, 然后将编码压缩后的数据依次存储到所述循环 P人列中。 【0011〗优选地, 在所述步骤 3中, 将录音数据存储到 JPEG文件前, 先对录音数据进行編码 压缩。
[00121优选地, 所述阈值为 64K字节; 且分片后的每个声音数 *大小不超过 64K字节。
[00131 本发明的 —个目的在于提出一种声音数据与 ffl片数据合并存储的方法, 其包括: 歩骤 i: 将 W J 'f数据存储到 JPEG文件中;
歩骤 2: 判断声音数据大小是否超过阈值: 若不超过阈值, 则将所述声音数据存储到所述 JPEG文件中的一个 APP15段中; ^超过阈值, 则将所述声音数据进行分片, 再将各个分片 分别存储到所述 JPEG文件中的多个 APP15段中;
所述每个 APP15段中还包括声音数据的分片数 fl, 及其所存储的声音数据对应的分片序 数。
[0014] 由于采用了 上技术方案, 本发明具有以下有益效果:
1.本发明提供的留声照片生成方法釆用独有 ίίι照模式, 进入取景界 ιήί前就 Α动开始录音, 保 存方式采用快捷 A动保存。 生成的照片可 A动记录快门前后 10s左右的环境声音。 无 用户 进行任何复杂操作, 使用 *常方便。
[0015] 2.考虑到手机容 S不是很大, 任何一种细小的文件都会占用手机的内存空间。 本发明 将录制的声音数据和 W片数据合并存储, 即将记录的声音数据存入 W片文件的某一段中, 有 效减少使用手机本身内存, W时保证了声音数据与图片数据的一致性。
[0016] 3.照片本身的价值之一就是存储记忆, 然而随着时间的推移, 照片会 fel为没有环境记 忆而淡去。 而本发明可以提供一种留住 音的照片, 真实的记录扪照前后的环境声音, 例如 扪照前后 10s左右, 使照片本身的信息含 fi更大, 保存得更久远。
附图说明
[0017]本发明将通过例子并参照 WW的方式说明, 其中- W 1为本发明中声音录取时间及照片获取时间示意图。
[0018] 图 2为本发明获取录音方法流程图。
[0019] m 3为本发明获取录音方法另一个实施例的流程图。 说 明 书
[0020] W\ 4为将声音存储到循环队列的示意图。
[0021 ] W 5为 JPEG文件格式示意图。
[0022] 图 6为 APP15头部信息示意罔。
[0023] 7为 APP15 TIFF头部信息示意图。
具体实施方式
[0024] 本说明书中公开的所有特征, 或公开的所有方法或过程中的步骤, 除了互相排斥的 特征和 /或步骤以外, 均可以以任何方式组合。
[00251 本说明书中公幵的任一特征, 除非特別叙述, 均可被其他等效或具有类似目的的替 代特征加以替换。 即, 除 -特別叙述, «个特征只是一系列等效或类似特征中的一个例子而 已。
100261本发明中的留声照片的生成方法, 包括:
步骤 1 : 持续获取录音数据;
步骤 2: 在获取录音数据期间的任意时刻获取照片数据;
步骤 3: 根据用户指令选择一段录音数据, 将录音数据及照片数据合并存储。
[0027] 罔 1 示出了本发明中获取声音数据时间及扪照时间的先后关系》 录音开始于 ίίΐ照之 前, 扪照这一事件可以根据用户喜好, 发生在录音阶段的任意时刻。 为了持续获取录音数 据, 要在程序初始化时开辟一段存储空间作为循环队列使用。
[0028] 如 S , 手机等移动设备持续录音, 并将获得的录音数据依次存储到所述循环队列 中。 当循环队列存储满时, 新的录音数据依先后次序覆盖循环队列中已有的数据。 本领域技 术人—员应当知晓, 循环队列包括头措针及尾指针, 头指针指向录音数据存储的起始地址, 尾 指针措向录音数据存储的最后地址。 通过记录这两个指针便能读取录音数据的全部或部分。
[0029] 为了 省存俯空间, 可以将录音数据进行压缩。 根据不同移动设备性能差异以及不 问的需求, 选取不问的策略进行录音数据操作。
[0030] 在本发明留声照片生成方法的一个实施例中, 对于性能好的移动设备, 可进行实时 的声音数据编码 ffi缩操作。 如罔 2所示, 先将获取的录音数据进行编码压缩, 然后将编码压 缩后的数据依次存储到所述循环队列中。
[0031] 在 5]—个实施例中, 对于性能较差的移动设备, 则将录音数据存储到循环队列时不 进行压缩编码, 直接将原始的 PCM格式的录音数据存储到循环队列中, 在将录音数据与照 片数据合并存储前从循环队列取出时进行编码压缩, 如罔 3。
[0032]上述各实施例中提到的编码压缩格式采用较为流行的 MP3格式, 采用该格式, 可以 说 明 书
方便的将获取到声音信息进行传输。
[0033] 为了节省存储空间, 保证录音数据与照片数据的一致性。 本发明将录音数据及照片 数据合并存储。
[0034]上述合并存储的一个具体实:膽方式是这样的: 将录音数据及照片数据都存储到 JPEG 文件中。
[0035] JPEG格式为大多数 通压缩图片所用, 这种文件符合 TIFF标准, 如图 5, 在 TIFF 标准中, 规定了 JPEG格式文件包含 SOL APP0-APP15, DQT、 …、 EOI等字段用于记录 WJi'信息。 似是在 ¾P应用中 APP15段一般不会被用到。
[0036] 本发明利用 APP15段来存储录音数据, 以避让信息的冲突, 提高图片的兼容性。 由 于每个 APP段存在 64k字节大小限制, 所以在存入录音数据前, 应先检测录音数据的大小 是否超出设定的 «值, 该阈值不大于 64k字节。 根据需要可以设置多个 APP15 段, 例如 APP15-K APP15-2, …、 ΑΡΡ15-η„
[0037] 根据用户指令选择一段录音数据, 并将该录音数据从循环队列中拷贝出来, 若拷贝 出来的录音数据为原始 PCM格式, 可根据需要对录音数据进行编码压缩, 如图 3; 对于具 有较大内存的移动设备, 也可以不对录音数据进行编码压缩; 判断将要合并存储的录音数据 大小是否超出阈值, 若未超出 «值, 则可直接将录音数 «存入 ΑΡΡ 15; 如采超出了阈值, 则 要将声音数据进行分片, 使得毎片录音数据的大小不超过 64k乎节, 然后将各个分片对应存 入 APP15-1、 APP15-2、 …、 ΑΡΡ15-Π 中。 如果对录音数据进行了分割, 还 要在毎个 APP15段中至少存储分片的总数及该 APP15段存储的分) '「对应的序数, 即第几分片, 这样 才能在浏览 W ) Βΐ, 将录音数据进行拼接。
[0038] 为了保证数据的准确性, 将录音数据从循环队列中提取出来时, 可采用数据深拷贝 技术, 深拷贝可 保证在对数据的处理, 不影响获取线程对数据的操作。 上述提及的深拷 贝、 声音分片及拼接均为现有技术, 在此不再详述其具体歩骤。
[0039]见 Η 5右边部分, 更具体的一个实施例为, 每个 APP15段包括 APP15 Marker字段, 存放 TIFF标准规定的 16进制数, 见图 6; APP15 Length字段, 存放本 APP15段存放录音 数据的长度; Identifier Code字段可以用以存放开发商的标识信息; TIFF Header存放 TIFF 标准规定的信息, 见图 7; Oth lFD字段, 存放 TIFF标准规定的 16进制数; 其后是 0th IFD Value字段, 可以用来存储录音数据的格式, 如 PCM格式或 MP3格式 分片总数、 分片序 数等信息, 当然对于更高质 S的录音数据, 还可以存放降噪参数等; 1st IFD存放 TIFF标准 规定的 16进制数; 其后是 1th IFD Value, 当录音数据为原始 PCM格式时, 此字段用以存放 说 明 书
编码率等 PCM格式的录音数据的播放参数等信息; 最后是 lth IFD Sound Data段, 用亍存 放录音数据或者说分片后的录音数据。
[00401存储声音所使用的规范和格式, 是建立在现有的 ΤΠΨ标准和 Exif规范之上, 有利亍 现有 TIFF和 Exif读写库快速的移植用于图片的声音写入和读取。
(00411例如, 用户使用时, 首先进入录音模式, 程序初始化开辟一段可存储 10s长度的声音 数据的循环队列, 并开始持续获取、 存储录音数据, 随后用户在录音持续 2s时,进入取景模 式按下快门获取照片数据, 并在按下快门 3s后获取录音数据。 此时, 程序将循环队列中存 储的扪照前 2s及后 录音数据及照片数据合并存储, 得到留声相片。
[00421 播放留声相片时, 先将整个 ffl片文件加载读取, 提取出所有罔片里的声音片段, 根据毎片声音中的属性进行拼接动作, 以合并成完整的声音信息; 同时 ϋ示阁片及播放声 音。
[0043]上述录音数据与照片数据合并存储的方法可以独立使用, 具体包括:
步骤 1: 将罔片数据存储到 JPEG文件中;
步骤 2: 判断声音数据大小是否超过阈值: 若不超过 «值, 则将所述声音数据存储到所述 JPEG文件中的一个 APP15段中; ^超过阈值, 则将所述声音数据进行分片, 再将各个分片 分别存储到所述 JPEG文件中的多个 APP15段中;
所述每个 APP15 段中还包括声音数据的分片数 S, 及其所存储的声音数据对应的分尸「序 数。
[0044]其原理与上述的录音数据与照 ^数据合并存储的方法完全 ffl | j, 在此不再赘述。
(00451 本发明并不局限于前述的具体实維方式。 本发 «扩展到任何在本说明书中披露的新 特征或任何新的组合, 以及披露的任一新的方法或过程的歩骤或任何新的组合。

Claims

权 利 要 求 书
1. 一种留声照片的生成方法, 其特征在于, 包括- 步骤 1 : 持续获取录音数据;
步骤 2: 在获取录音数据期间的任意时刻获取照片数据;
歩骤 3: 根据用户指令选择一段录音数据, 将选取的录音数据及照片数据合并存 储。
2. 根撫权利要求 1所述的方法, 其特征在亍, 所述步骤 1包括- 步骤 101 : 生成一循环队列;
步骤 102: 持续获取录音数据并依次存储到所述循环队列中; 当循环人列存储满 时, 新的录音数据依次覆盖循环队列中已有的数据。
3. 根据权利要求 1或 2所述的方法, 其特征在于; 所述步骤 3包括将录音数据 及照片数据都存储到 JPEG文件中。
4. 根据权利要求 3所述的方法, 其特征在亍, 所述步骤 3中将录音数 *存储到 JPEG文件中的方法包括:
歩骤 301 : 选取所述循环队列中的一段录音数据;
步骤 302: 判断录音数据大小是否超过 W值: 若不超过阈值, 则将所述录音数据 存储到所述 JPEG文件中的一个 APP15段中; 若超过阔值, 则将所述录音数据 进行分片, 再将各个分片分别存储到所述 JPEG文件中的多个 APP 15段中; 所述毎个 APP15段中还包括录音数据的分片数 S, 及其所存储的录音数据对应 的分片序数。
5. 根据权利要求 4所述的方法, 其特征在于, 所述步骤 102进一步包括: 先将获取的录音数据进行编码压缩,然后将编码压缩后的数据侥次存储到所述循 环队列中。
6. 根据权利要求 4所述的方法, 其特征在于, 在所述歩骤 301包括, 选取所述 循环队列中的一段录音数据, 并对录音数据进行编码压缩。
7. 根据权利要求 4或 5或 6所述的方法, 其特征在于, 所述阈值为 64K字节; 且分 j 'f后的每个声音数据大小不超过 64K字」 。
8. 一种图片数据及声音数据合并存储的方法, 其特征在于, 包括: 步骤 1: 将 i '「数据存储到 JPEG文件中;
步骤 2: 判断声音数据大小是否超过 M值: 若不超过阈值, 则将所述声音数据存 权 禾〖J 要 求 书 储到所述 JPEG文件中的一个 APP15段中; 若超过阈值, 则将所述声音数据进 行分片, 再将各个分片分别存储到所述 JPEG文件中的多个 APP15段中; 所述 个 A P15段中还包括声音数据的分) u, 及其所存储的声音数据对应 的分 '「序数。
9. 根据权利要求 8所述的一种罔片数据及声音数据合并存储的方法, 其特征在 于, 所述阈值为 64K字 1Ϊ; 且分片后的 个声音数«大小不超过 64K字节。
PCT/CN2014/073532 2013-07-05 2014-03-17 留声照片生成方法及图片数据与声音数据合并存储方法 WO2015000308A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310281270.X 2013-07-05
CN201310281270XA CN103327277A (zh) 2013-07-05 2013-07-05 留声照片生成方法及图片数据与声音数据合并存储方法

Publications (1)

Publication Number Publication Date
WO2015000308A1 true WO2015000308A1 (zh) 2015-01-08

Family

ID=49195780

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/073532 WO2015000308A1 (zh) 2013-07-05 2014-03-17 留声照片生成方法及图片数据与声音数据合并存储方法

Country Status (2)

Country Link
CN (1) CN103327277A (zh)
WO (1) WO2015000308A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111767501A (zh) * 2020-06-29 2020-10-13 百度在线网络技术(北京)有限公司 信息处理及输出方法、装置、电子设备及存储介质

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103327277A (zh) * 2013-07-05 2013-09-25 成都品果科技有限公司 留声照片生成方法及图片数据与声音数据合并存储方法
BR112016006091B1 (pt) 2013-11-21 2022-09-06 Huawei Device (Shenzhen) Co., Ltd Método de exibição de imagem, meio de armazenamento de computador, aparelho de exibição de imagem e dispositivo de terminal
CN106572229A (zh) * 2015-10-09 2017-04-19 中兴通讯股份有限公司 一种保存录音、显示和播放图片形式录音的方法、终端
CN105407282A (zh) * 2015-11-16 2016-03-16 中科创达软件股份有限公司 一种照相和回放的实现方法
CN107124505B (zh) * 2017-04-12 2020-02-07 北京小米移动软件有限公司 录制方法及装置

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1708981A (zh) * 2002-10-02 2005-12-14 C3发展公司 用于传送含文本资料的数字图片的方法和装置
US20060159445A1 (en) * 2004-12-20 2006-07-20 Fuji Photo Film Co., Ltd. Image capturing apparatus, image capturing method, reproducing apparatus, reproducing method and program
CN101174448A (zh) * 2007-12-10 2008-05-07 北京炬力北方微电子有限公司 有声图片播放方法、装置和有声图片索引文件生成方法
CN103095961A (zh) * 2009-03-18 2013-05-08 卡西欧计算机株式会社 记录带声音的静止图像的数字照相机
CN103327277A (zh) * 2013-07-05 2013-09-25 成都品果科技有限公司 留声照片生成方法及图片数据与声音数据合并存储方法

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8306368B2 (en) * 2007-08-16 2012-11-06 Eastman Kodak Company Storing and presenting ancillary information obtained from scanned prints
CN101656814A (zh) * 2008-08-18 2010-02-24 爱思开电讯投资(中国)有限公司 用于将声音文件添加到jpeg文件中的方法及装置

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1708981A (zh) * 2002-10-02 2005-12-14 C3发展公司 用于传送含文本资料的数字图片的方法和装置
US20060159445A1 (en) * 2004-12-20 2006-07-20 Fuji Photo Film Co., Ltd. Image capturing apparatus, image capturing method, reproducing apparatus, reproducing method and program
CN101174448A (zh) * 2007-12-10 2008-05-07 北京炬力北方微电子有限公司 有声图片播放方法、装置和有声图片索引文件生成方法
CN103095961A (zh) * 2009-03-18 2013-05-08 卡西欧计算机株式会社 记录带声音的静止图像的数字照相机
CN103327277A (zh) * 2013-07-05 2013-09-25 成都品果科技有限公司 留声照片生成方法及图片数据与声音数据合并存储方法

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111767501A (zh) * 2020-06-29 2020-10-13 百度在线网络技术(北京)有限公司 信息处理及输出方法、装置、电子设备及存储介质
CN111767501B (zh) * 2020-06-29 2024-08-09 百度在线网络技术(北京)有限公司 信息处理及输出方法、装置、电子设备及存储介质

Also Published As

Publication number Publication date
CN103327277A (zh) 2013-09-25

Similar Documents

Publication Publication Date Title
WO2015000308A1 (zh) 留声照片生成方法及图片数据与声音数据合并存储方法
US8116537B2 (en) Image recording device, player device, imaging device, player system, method of recording image, and computer program
TWI374668B (zh)
JP4379491B2 (ja) 顔データ記録装置、再生装置、撮像装置、画像再生システム、顔データ記録方法およびプログラム
JP4246515B2 (ja) 画像の変換
US8269857B2 (en) Image processing device, imaging apparatus, image-processing method, and program for face detection, discrimination and file entry correlation
JP6367334B2 (ja) ビデオ処理方法、装置及び再生装置
JP5024351B2 (ja) 画像ファイル生成装置、カメラ、および画像ファイル生成プログラム
US7890556B2 (en) Content recording apparatus, content playback apparatus, content playback system, image capturing apparatus, processing method for the content recording apparatus, the content playback apparatus, the content playback system, and the image capturing apparatus, and program
CN104580888B (zh) 一种图像处理方法及终端
CN104916298B (zh) 编解码方法、编解码装置、电子设备及有声图片生成方法
US20050168453A1 (en) Information recording medium and manufacturing method thereof
JP2006186411A (ja) マルチメディアデータ処理装置及びその方法
TWI332197B (en) Recording device, reproducing device, image file generating method, and display controlling method
WO2006049413A1 (en) Mobile terminal and operating method thereof
BR102012002364B1 (pt) aparelho de gravação de dados de imagem, e, métodos de controle
JP4492535B2 (ja) 記録装置、記録制御方法
JP4724551B2 (ja) 動画像処理装置及び動画像処理方法
JP6278353B2 (ja) 記録装置、記録方法、プログラム、ならびに撮像装置
JP4462290B2 (ja) コンテンツ管理情報記録装置、コンテンツ再生装置、コンテンツ再生システム、撮像装置、コンテンツ管理情報記録方法およびプログラム
JP2004363825A (ja) 記録再生装置、記録再生方法、その記録媒体およびプログラム
JP6524865B2 (ja) コンテンツ管理装置、コンテンツ管理方法、及びコンテンツ管理プログラム
US8934738B2 (en) Image processing apparatus and method for controlling the same
JP2010093452A (ja) ビデオサーバ、信号変換回路および信号変換方法
JP2011234068A (ja) 映像記録装置および映像復旧装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14819488

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14819488

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 01.07.2016)