CN111986282B - Plug-in for opening HEIC format pictures, freeIMage and computer program thereof - Google Patents

Plug-in for opening HEIC format pictures, freeIMage and computer program thereof Download PDF

Info

Publication number
CN111986282B
CN111986282B CN202010851741.6A CN202010851741A CN111986282B CN 111986282 B CN111986282 B CN 111986282B CN 202010851741 A CN202010851741 A CN 202010851741A CN 111986282 B CN111986282 B CN 111986282B
Authority
CN
China
Prior art keywords
format
heic
plug
freeimage
pictures
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN202010851741.6A
Other languages
Chinese (zh)
Other versions
CN111986282A (en
Inventor
蔡美忠
汪辉
李卿
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai 2345 Network Technology Co ltd
Original Assignee
Shanghai 2345 Network Technology Co ltd
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 Shanghai 2345 Network Technology Co ltd filed Critical Shanghai 2345 Network Technology Co ltd
Priority to CN202010851741.6A priority Critical patent/CN111986282B/en
Publication of CN111986282A publication Critical patent/CN111986282A/en
Application granted granted Critical
Publication of CN111986282B publication Critical patent/CN111986282B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T9/00Image coding
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • G06F9/44526Plug-ins; Add-ons

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • General Engineering & Computer Science (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a method for opening HEIC format pictures, which is integrated in a unified interface provided by FreeIMage outwards in a plug-in mode and comprises the following steps: libde265 decoder for implementing decoding of x265 file codes; libheif for implementing graphics decoding and stitching in a HEIF format, wherein the HEIC format is one of the encoding formats of the HEIF; wherein, in the working state, the HEIC format file is decoded into a conventional bitmap format based on the libde265,265 decoder and the libheif and is interfaced with the unified interface of the FreeImage. A computer readable storage medium is also provided. The invention separately realizes a plug-in-based method by FreeIMage to support HEIC format. The invention has the advantages of convenient use, powerful function, novel structure, innovation and uniqueness, mass production and extremely high commercial value.

Description

Plug-in for opening HEIC format pictures, freeIMage and computer program thereof
Technical Field
The invention belongs to the field of computer technology application, and particularly relates to a method for opening HEIC-format pictures and a corresponding computer storage medium.
Background
HEIC is the default image storage format of iOS11 after updating, iPhone 7 and its subsequent hardware at the time of taking the photograph. HEIC is an image format, the on-line time is relatively short, only about 4 years, and compared with JPG, the video format occupies smaller space and has more lossless image quality. However, this format cannot be opened by directly using the view software in most Windows, and at present, PC-side software supporting direct opening and display of HEIC format is rarely supported in the market, and most view software including Windows picture manager is not supported, but only very individual software can be supported. Some of the remaining software can only support converting HEIC format pictures into JPG format and then displaying them in JPG format.
Most PC software cannot support opening and displaying HEIC formats, including apple's own iTunes software; few pieces of software support converting HEIC the format to JPG format and then displaying it in JPG format, even requiring the user to use another piece of software to display JPG format or share photos taken by himself on-line or by others, such as apple imazing. The user is complicated to use, troublesome and even needs to use a plurality of software to finish.
At present, there is no technical solution capable of solving the above technical problems, and in particular, there is no method for opening HEIC format pictures.
Disclosure of Invention
In view of the technical drawbacks of the prior art, an object of the present invention is to provide a method for opening HEIC format pictures and a corresponding computer-readable storage medium, according to one aspect of the present invention, there is provided a method for opening HEIC format pictures, which is integrated in a unified interface provided by FreeImage through a plug-in, and includes:
libde265 decoder for implementing decoding of x265 file codes;
libheif for implementing graphics decoding and stitching in a HEIF format, wherein the HEIC format is one of the encoding formats of the HEIF; wherein,
In an operating state, the HEIC format file is decoded into a conventional bitmap format based on the libde265,265 decoder and the libheif and is interfaced with the unified interface of the FreeImage.
Preferably, the libheif and libde265 decoders are integrated in the FreeImage in the form of a static library Lib.
Preferably, the FreeIMage is used by a computer program in the form of a dynamic library Dll.
Preferably, the support for one or more picture formats is implemented by one or more plug-ins integrated into the FreeImage, which includes at least JPG plug-ins, PNG plug-ins, BMP plug-ins, TIF plug-ins, GIF plug-ins.
Preferably, the JPG plug-in, the PNG plug-in, the BMP plug-in, the TIF plug-in, the GIF plug-in, and the plug-in for opening HEIC format pictures are integrated in a unified interface of a FreeImage interface layer.
According to another aspect of the present invention, there is provided a computer readable storage medium, wherein a computer program is stored on the computer readable storage medium, and the computer program is used for opening HEIC format pictures, which enables support for browsing pictures through a picture parsing engine FreeImage, and the computer program at least includes the FreeImage opening HEIC format pictures and/or the plug-in opening HEIC format pictures.
Preferably, the computer program is arranged to perform at least the following functions:
-browsing pictures in single HEIC format;
-continuous browsing of a plurality HEIC format pictures;
-editing a single HEIC-format picture;
-zooming out and zooming in of pictures in single HEIC format;
-rotation of a single HEIC-format picture; and
-Format conversion of one or more HEIC format pictures.
According to another aspect of the present invention, there is provided a computer program for opening HEIC a picture in format, which enables support for a picture in HEIC format through the plug-in for opening HEIC a picture in format, the plug-in for opening HEIC a picture in format being loaded by the computer program as a picture parsing engine in peer with FreeImage.
Preferably, the picture parsing engine includes the following:
opening a picture parsing engine of a plug-in of HEIC format pictures;
A FreeIMage picture parsing engine;
CxImage a picture parsing engine; and
GDI+ picture parsing engine.
The invention has the core points that a piece of software is designed on a PC (Windows) to directly open and display HEIC format pictures, and the attached software can also be used for viewing the EXIF information of HEIC pictures, some simple viewing operations of the pictures, such as rotation, scaling and the like, picture format conversion, such as HEIC conversion into JPG, BMP and the like, one of core engines for picture format analysis and display used by the computer program disclosed by the invention is FREEIMAGE, FREEIMAGE an open source picture library, which supports multiple picture format analysis but does not support HEIC format; freeimage support extends in the form of a plug-in, i.e. the Freeimage bottom layer is integrated in such a way that a plug-in supports a picture (or several) of a specific format, freeimage does not support a plug-in of HEIC format.
The implementation mode of HEIC format support is that a plug-in is independently developed for Freeimage, the plug-in supports HEIC format, and then the plug-in is integrated into Freeimage, so that the support of HEIC format by the upper layer of the see-through drawing is realized; this plug-in is implemented based on open source libraries libheif and libde 265. libde265 is to realize the decoding of the x265 file code, libheif is to realize the graphic decoding and splicing of HEIF format, HEIC format is one of HEIF coding formats, HEIC format files can be decoded into conventional bitmap format through the two open source libraries, and the decoded bitmap can be directly connected with the FreeIMage interface, so as to realize the support of FreeIMage to HEIC format; the computer program can directly support to open and display HEIC format pictures, namely the core point of the invention is to independently realize a plug-in for FreeIMage to support HEIC format.
The technical scheme of the invention fuses HEIC decoding support into Freeimage, and inserts into the Freeimage interface layer, while the general prior art directly inserts the inserts into the application layer, and the technical scheme of the invention has the advantages that: the HEIC plug-in is integrated into the ecological system of Freeimage, so that the compatibility and the expansibility are good, the peripheral use is simple, additional configuration and other databases are not needed, and the computer program processing is more flexible and simple. The invention has the advantages of convenient use, powerful function, novel structure, innovation and uniqueness, mass production and extremely high commercial value.
Drawings
Other features, objects and advantages of the present invention will become more apparent upon reading of the detailed description of non-limiting embodiments, given with reference to the accompanying drawings in which:
FIG. 1 is a schematic diagram showing a module connection of a plug-in for opening HEIC format pictures according to an embodiment of the present invention;
FIG. 2 is a schematic diagram showing a module connection of FreeImage for opening HEIC format pictures according to another embodiment of the present invention; and
Fig. 3 shows a schematic block diagram of a computer program for opening HEIC format pictures according to another embodiment of the present invention.
Detailed Description
In order to better and clearly show the technical scheme of the invention, the invention is further described below with reference to the accompanying drawings.
Fig. 1 shows a schematic module connection diagram of a plug-in for opening HEIC format pictures according to an embodiment of the present invention, and it is understood by those skilled in the art that fig. 1 mainly discloses a plug-in for opening HEIC format pictures, where the plug-in is matched with a picture parsing engine, and the picture parsing engine is matched with a computer program to further realize opening HEIC format pictures, because of the specificity of HEIC format pictures, there is no computer program capable of directly opening the pictures in the prior art, and the present invention designs a technical scheme capable of quickly opening HEIC format pictures and realizing simple operation of the pictures based on such technical problems, specifically:
fig. 1 provides a plug-in for opening HEIC format pictures, which is integrated in a unified interface provided by FreeImage outwards in the form of a plug-in, and includes:
libde 265-265 decoder for decoding x265 file code, wherein libde-265 is an open source implementation of h.265 video codec format, libde-265 is written in C language, and API is easily integrated into other software.
The plug-in for opening HEIC Format pictures further comprises libheif for implementing graphic decoding and splicing of the HEIF Format, wherein the HEIC Format is one of the HEIF formats, HEIF, high Efficiency Image File Format, i.e. high-efficiency picture Format, is a new Format for storing pictures and picture sequences, which is proposed by the moving picture expert group (MPEG-Moving Picture Experts Group) in 2013, and is used for processing HEVC key frames, so that it can also store pictures with better quality with less capacity, and the effect is particularly obvious on pictures with continuous shooting, moving pictures and little color change, while libheif can implement this function, libheif is an ISO/IEC 23008-12:2017HEIF file format decoder and encoder.
In an operating state, the libde265,265 decoder decodes a HEIC format file into a conventional bitmap format and interfaces with the unified interface of the FreeImage based on the 3835,265 decoder and the libheif, i.e., in a preferred embodiment, the libde265,265 decoder is responsible for decoding HEIC format files, and the libheif is used for assembling and post-processing decoding the decoding result, and further decoding the decoded result into a conventional bitmap format and interfacing with the unified interface of the FreeImage.
Further, the libheif and libde265 decoders are integrated in the freeIMage in the manner of a static library Lib, the object files are often organized in a specific format, under linux, in a linkable format, and under windows, in a portable format, further, the relocatable object files are packaged in a specific manner into a single file, and when the executable file is generated by linking, the content required by itself is "copied" from the single file into the final executable file, which is called a static library.
Preferably, the FreeIMage is used by a computer program in the manner of a dynamic library Dll, which is similar to a static library, but which does not "copy" all the binary code needed at the time of linking into an executable file, but only "copies" some relocation and symbol table information that can complete the actual linking process at program runtime. I.e. static libraries are used to end up with executable files, while the dynamic libraries' target code is linked at run-time or load-time.
The libheif and libde265 decoders are integrated in the FreeImage in the form of a static library Lib, which is used by a computer program in the form of a dynamic library Dll, also because of the different executable file sizes, different disk occupation sizes, different scalability and compatibility, different dependencies, different complexity, different loading speeds, etc.
Fig. 2 shows a schematic module connection diagram of a FreeImage for opening a picture in HEIC format, as shown in fig. 2, fig. 2 discloses a FreeImage for opening a picture in HEIC format, which supports one or more picture formats through one or more plug-ins integrated in the FreeImage, where the FreeImage at least includes a JPG plug-in, a PNG plug-in, a BMP plug-in, a TIF plug-in, a GIF plug-in, and a plug-in for opening a picture in HEIC format, and the JPG plug-in, the PNG plug-in, the BMP plug-in, the TIF plug-in, the GIF plug-in, and the plug-in for opening a picture in HEIC format are all in a peer relationship, and more specifically, the plug-in under the FreeImage picture parsing engine includes but is not limited to the plug-in described above, which is not described herein.
Further, the JPG plug-in, the PNG plug-in, the BMP plug-in, the TIF plug-in, the GIF plug-in, and the plug-in for opening HEIC format pictures are integrated in a unified interface of a FreeImage interface layer.
Fig. 3 shows a schematic block diagram of a computer program for opening HEIC format pictures according to another embodiment of the present invention.
According to another aspect of the present invention, there is provided a computer program for opening HEIC format pictures, which implements support for browsing pictures through a picture parsing engine FreeImage, the computer program at least including the FreeImage opening HEIC format pictures and/or the plug-in opening HEIC format pictures.
In a preferred embodiment, the computer program comprises a Freeimage that opens HEIC-format pictures as shown in FIG. 2, while in another embodiment, the computer program comprises a plug-in that opens HEIC-format pictures as shown in FIG. 1, in such an embodiment, the plug-in that opens HEIC-format pictures is a peer picture parsing engine with the Freeimage, as will be further described in the embodiments described below.
Further, in combination with the above embodiment, the computer program is at least configured to implement browsing of a single picture HEIC in format, i.e. browsing of a single or double click picture; the continuous browsing of a plurality of HEIC pictures in the format can be realized, namely, the browsing of the pictures is finished in the forms of page turning upwards or downwards and the like; editing of a single HEIC-format picture can be realized, namely, the size, the color and the like of the picture are adjusted in an editing mode; the method can also realize the reduction and the enlargement of the single HEIC-format picture, namely, the browsing of the single picture is completed in the forms of reduction, enlargement and the like; the rotation of the single HEIC-format picture can be realized, namely, the adjustment of the single picture can be completed in the forms of left rotation, right rotation, mirror rotation, 180-degree rotation and the like; format conversion of one or more HEIC format pictures may also be implemented, including but not limited to JPG, TIF, PDF, GIF, PNG, etc.
In another embodiment, the invention provides a computer program for opening HEIC format pictures, which realizes the support of HEIC format pictures through the plug-in for opening HEIC format pictures, and the plug-in for opening HEIC format pictures is loaded by the computer program as a picture parsing engine in the same level as Freeimage.
In such an embodiment, the present invention is not drawn as a diagram, and in order to better explain the level of the plug-in for opening HEIC format pictures, the present invention preferably discloses a picture parsing engine, which is a plug-in for HEIC format pictures, and is in the same level as the FreeImage picture parsing engine, cxImage picture parsing engine, or gdi+ picture parsing engine. Libheif and libde265 are used directly as a photo engine in the see king, and Freeimage peer. The development of the technical scheme is based on a development mode of a computer program, the existing FREEIMAGE, CXIMAGE, GDI + and other various picture engine libraries of the computer program are all level, and the upper layer service of the computer program selects a proper engine library according to a picture format to analyze and render a display picture, so that the scheme supporting the use of software which directly opens and displays HEIC format is rarely available on the market at present, and the scheme has the defect that the software is required to realize other functions such as zooming, rotating, editing and the like on the upper layer service, so that the realization cost is high.
It will be appreciated by those skilled in the art that the computer program shown in the present invention is preferably a view software that supports HEIC formats, the view software supports HEIC technical points, the main picture parsing engine of the view software is FreeImage, the FreeImage itself depends on many third party format parsing libraries, the FreeImage combines these third party libraries to provide a unified interface outwards, the main stream library of the format of the current parsing HEIC is libheif combined with libde265 decoders, libde265 is used as a decoder, libheif is assembled and spliced at an upper layer based on the decoding result of the decoder, libheif and libde265 decoders are added into the third party libraries of the FreeImage, a plug-in supporting HEIC is implemented in the FreeImage, the plug-in mainly implements the unified interface provided outwards by the FreeImage, the FreeImage uses the FreeImage to load and display HEIC, no additional modification is needed when the view software loads and displays common pictures, for example j34pg, and the present invention will support 76 is used without the need to sense that the FreeImage is used in an ecological format.
The foregoing describes specific embodiments of the present invention. It is to be understood that the invention is not limited to the particular embodiments described above, and that various changes and modifications may be made by one skilled in the art within the scope of the claims without affecting the spirit of the invention.

Claims (9)

1. A method for opening HEIC format pictures, which is integrated in the form of a plug-in unit into a unified interface provided by FreeImage, comprising:
libde265 decoder for implementing decoding of x265 file codes;
libheif for implementing graphics decoding and stitching in a HEIF format, wherein the HEIC format is one of the encoding formats of the HEIF; wherein,
In an operating state, the HEIC format file is decoded into a conventional bitmap format based on the libde265,265 decoder and the libheif and is interfaced with the unified interface of the FreeImage.
2. The method of claim 1, wherein the libheif and libde265 decoders are integrated in the FreeImage in the form of a static library Lib.
3. The method of claim 1, wherein the FreeImage is used by a computer program in the form of a dynamic library Dll.
4. A method according to any one of claims 1 to 3, wherein the support of one or more picture formats is achieved by one or more plug-ins integrated in FreeImage, said FreeImage comprising at least JPG plug-ins, PNG plug-ins, BMP plug-ins, TIF plug-ins, GIF plug-ins.
5. The method of claim 4, wherein the JPG plug-in, PNG plug-in, BMP plug-in, TIF plug-in, GIF plug-in, and plug-in that opens HEIC format pictures are integrated into a unified interface of a freemage interface layer.
6. A computer readable storage medium, characterized in that it has stored thereon a computer program for opening HEIC format pictures, which enables support for browsing pictures by means of a picture parsing engine FreeImage, characterized in that the computer program opens HEIC format pictures at least by means of a method according to any one of claims 1 to 5.
7. The computer readable storage medium according to claim 6, wherein the computer program is configured to perform at least the following functions:
-browsing pictures in single HEIC format;
-continuous browsing of a plurality HEIC format pictures;
-editing a single HEIC-format picture;
-zooming out and zooming in of pictures in single HEIC format;
-rotation of a single HEIC-format picture; and
-Format conversion of one or more HEIC format pictures.
8. A computer readable storage medium according to claim 6, wherein the plug-in opening HEIC format pictures is loaded by the computer program as a picture parsing engine that is peer to FreeImage.
9. The computer-readable storage medium of claim 8, wherein the picture parsing engine comprises:
opening a picture parsing engine of a plug-in of HEIC format pictures;
A FreeIMage picture parsing engine;
CxImage a picture parsing engine; and
GDI+ picture parsing engine.
CN202010851741.6A 2020-08-21 2020-08-21 Plug-in for opening HEIC format pictures, freeIMage and computer program thereof Active CN111986282B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010851741.6A CN111986282B (en) 2020-08-21 2020-08-21 Plug-in for opening HEIC format pictures, freeIMage and computer program thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010851741.6A CN111986282B (en) 2020-08-21 2020-08-21 Plug-in for opening HEIC format pictures, freeIMage and computer program thereof

Publications (2)

Publication Number Publication Date
CN111986282A CN111986282A (en) 2020-11-24
CN111986282B true CN111986282B (en) 2024-06-07

Family

ID=73442854

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010851741.6A Active CN111986282B (en) 2020-08-21 2020-08-21 Plug-in for opening HEIC format pictures, freeIMage and computer program thereof

Country Status (1)

Country Link
CN (1) CN111986282B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114727001B (en) * 2021-01-05 2024-01-19 北京小米移动软件有限公司 Method, device and medium for processing image data

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101778270A (en) * 2009-01-13 2010-07-14 深圳市同洲电子股份有限公司 Method for accelerating the image displaying speed, system and digital television receiving terminal
CN102768755A (en) * 2011-05-06 2012-11-07 腾讯科技(深圳)有限公司 Method and device for obtaining thumbnails of images
CN104243886A (en) * 2014-09-28 2014-12-24 中国电子科技集团公司第二十七研究所 High-speed image analyzing and video generating technology based on plug-in technology
WO2017006223A1 (en) * 2015-07-08 2017-01-12 Nivi Group S.P.A. Graphic engine for creating and executing applications with multisensory interfaces
CN109379591A (en) * 2018-10-23 2019-02-22 深圳市网心科技有限公司 Picture code-transferring method, electronic device and computer readable storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101778270A (en) * 2009-01-13 2010-07-14 深圳市同洲电子股份有限公司 Method for accelerating the image displaying speed, system and digital television receiving terminal
CN102768755A (en) * 2011-05-06 2012-11-07 腾讯科技(深圳)有限公司 Method and device for obtaining thumbnails of images
CN104243886A (en) * 2014-09-28 2014-12-24 中国电子科技集团公司第二十七研究所 High-speed image analyzing and video generating technology based on plug-in technology
WO2017006223A1 (en) * 2015-07-08 2017-01-12 Nivi Group S.P.A. Graphic engine for creating and executing applications with multisensory interfaces
CN109379591A (en) * 2018-10-23 2019-02-22 深圳市网心科技有限公司 Picture code-transferring method, electronic device and computer readable storage medium

Also Published As

Publication number Publication date
CN111986282A (en) 2020-11-24

Similar Documents

Publication Publication Date Title
Still The definitive guide to ImageMagick
AU2010247785B2 (en) Displaying transition images during a slide transition
JP2007082217A (en) Method and device for creating thumbnail of digital image
JP7165272B2 (en) Video data encoding/decoding method, device, program and computer device
US7710434B2 (en) Rotation and scaling optimization for mobile devices
TWI569208B (en) Efficiently providing multiple metadata representations of the same type
US9286228B2 (en) Facilitating caching in an image-processing system
US9020299B2 (en) Hybrid image format
CN111986282B (en) Plug-in for opening HEIC format pictures, freeIMage and computer program thereof
CN109634705A (en) A kind of embedded device booting Logo updates, display methods and its system
JP2003256827A (en) Image reproducing method, image reproducing device and recording medium with image reproduction processing program recorded
US7920747B2 (en) Pre-distribution image scaling for screen size
CN113822011A (en) Font switching method and electronic equipment
US8165424B1 (en) Method and device for video transformations
KR20040054115A (en) Thumbnail image generation and browsing method for mobile communication device
US8538950B2 (en) Method and apparatus for editing graphic user interface
US20040183819A1 (en) Navigation control in an image having zoomable areas
Modrzyk Java Image Processing Recipes
Theytaz et al. Towards an animated JPEG
JP2006215639A (en) Data control method and information processor
Nekrasov Image Processing
Hauf et al. The FlashPix™ Image File Format
JP2005223576A (en) Personal digital assistant and image management method
Schmitz MBS TAPI Plugin Documentation
US20110286663A1 (en) Method And Apparatus Of Color Image Rotation For Display And Recording Using JPEG

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant