CN108259690A - Image transfer method and device - Google Patents

Image transfer method and device Download PDF

Info

Publication number
CN108259690A
CN108259690A CN201611238507.6A CN201611238507A CN108259690A CN 108259690 A CN108259690 A CN 108259690A CN 201611238507 A CN201611238507 A CN 201611238507A CN 108259690 A CN108259690 A CN 108259690A
Authority
CN
China
Prior art keywords
data
encoder
image
converted
transmission
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.)
Withdrawn
Application number
CN201611238507.6A
Other languages
Chinese (zh)
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.)
FAFA Automobile (China) Co., Ltd.
Original Assignee
LeTV Automobile Beijing 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 LeTV Automobile Beijing Co Ltd filed Critical LeTV Automobile Beijing Co Ltd
Priority to CN201611238507.6A priority Critical patent/CN108259690A/en
Publication of CN108259690A publication Critical patent/CN108259690A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/00127Connection or combination of a still picture apparatus with another apparatus, e.g. for storage, processing or transmission of still picture signals or of information associated with a still picture
    • H04N1/00129Connection or combination of a still picture apparatus with another apparatus, e.g. for storage, processing or transmission of still picture signals or of information associated with a still picture with a display device, e.g. CRT or LCD monitor

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Color Television Systems (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

The embodiment of the present invention provides image transfer method and device, belongs to field of communication technology.The method includes:Image to be transmitted is sampled, obtains sampled data;Sampled data is converted into yuv data;Yuv data is converted into the data that encoder corresponds to form;Use the transformed data of the encoder transmission.Image data in intelligent terminal can be sent in another equipment and show by the present invention so that image shows the limitation for having broken intelligent terminal the small screen, and due to the use of encoder efficiency of transmission is improved.

Description

Image transfer method and device
Technical field
The present invention relates to fields of communication technology, and in particular, to a kind of image transfer method and device.
Background technology
With the development of intelligent terminal, user operates more and more in intelligent terminal, is loaded in intelligent terminal Image data is also more and more.But intelligent terminal needs to meet requirement easy to carry, display screen used due to its own Usually smaller, this causes the size of the image shown in intelligent terminal to be restricted.Therefore it needs to pass equipment in intelligent terminal It is defeated in other equipment, image in intelligent terminal is shown in larger screen.Present inventor is in the mistake for realizing the present invention It is found in journey, the said program of the prior art has the defects of can not transmitting Efficient image in intelligent terminal.
Invention content
The purpose of the embodiment of the present invention is to provide a kind of image transfer method and device, to solve above-mentioned technical problem, Above-mentioned technical problem is solved at least partly.
To achieve these goals, the embodiment of the present invention provides a kind of image transfer method, and this method includes:To be transmitted Image is sampled, and obtains sampled data;Sampled data is converted into yuv data;Yuv data is converted into encoder and corresponds to lattice The data of formula;Use the transformed data of the encoder transmission.
Optionally, the method further includes:The image shown in capture screen is as image to be transmitted.
Optionally, it is described sampled data is converted into yuv data to include:Using with corresponding turn of the form of sampled data It changes mode and sampled data is converted into yuv data.
Optionally, the encoder includes H.264 encoder;It is described yuv data is converted into encoder to correspond to form Data include:Yuv data is converted into the data of H.264 form;It is described to use the transformed data packet of the encoder transmission It includes:Use the transformed data of H.264 encoder transmission.
Optionally, it is described to be included using the transformed data of the encoder transmission:Using the encoder come use with The corresponding frame per second of current transmission bandwidth transmits the transformed data.
According to another aspect of the present invention, a kind of image transmission is provided, which includes:Sampling module is used for Image to be transmitted is sampled, obtains sampled data;First modular converter, for sampled data to be converted to yuv data;The Two modular converters, for yuv data to be converted into the data that encoder corresponds to form;Transmission module, for using the coding Device transmits transformed data.
Optionally, described device further includes:Handling module, for the image that is shown in capture screen as figure to be transmitted Picture.
Optionally, second modular converter is used to adopt using the corresponding conversion regime of form with sampled data Sample data are converted to yuv data.
Optionally, the encoder includes H.264 encoder;Second modular converter is used to yuv data being converted into H.264 the data of form;The transmission module is used for using the H.264 transformed data of encoder transmission.
Optionally, the transmission module is used to use and the corresponding frame per second of current transmission bandwidth using the encoder Transmit the transformed data.
Through the above technical solutions, being sampled to image to be transmitted, sampled data is converted into yuv data, by YUV numbers According to the data for being converted into encoder and corresponding to form, the transformed data of the encoder transmission are used;It so can be by intelligent end Image data is sent in another equipment and is shown in end so that image shows the limit for having broken intelligent terminal the small screen System, and due to the use of encoder efficiency of transmission is improved.
The other feature and advantage of the embodiment of the present invention will be described in detail in subsequent specific embodiment part.
Description of the drawings
Attached drawing is that the embodiment of the present invention is further understood for providing, and a part for constitution instruction, under The specific embodiment in face is used to explain the embodiment of the present invention, but do not form the limitation to the embodiment of the present invention together.Attached In figure:
Fig. 1 is the flow chart of image transfer method according to embodiments of the present invention;
Fig. 2 is the flow chart of image transfer method in application scenarios according to embodiments of the present invention;
Fig. 3 is the structure chart of image transmission according to embodiments of the present invention;And
Fig. 4 is the structure chart of image transmission according to embodiments of the present invention.
Specific embodiment
The specific embodiment of the embodiment of the present invention is described in detail below in conjunction with attached drawing.It should be understood that this Locate described specific embodiment and be merely to illustrate and explain the present invention embodiment, be not intended to restrict the invention embodiment.
Fig. 1 is the flow chart of image transfer method according to embodiments of the present invention, and this method can be used for various intelligent terminals, Such as smart mobile phone, tablet computer etc..As shown in Figure 1, this method may include following steps.
In step s 110, image to be transmitted is sampled, obtains sampled data.
For example, it in exemplary application scene, needs in image transmitting to vehicle control system in intelligent terminal, Image in intelligent terminal is so shown in the screen of vehicle control system.Sample image to be transmitted in intelligent terminal, example Each frame image of picture or video in picture, instant messaging tools in such as screen median surface, photograph album.Intelligence can be called The sampling tool carried in terminal samples image to be transmitted.
In the step s 120, sampled data is converted into yuv data.
For example, the form of sampled data may be rgb format, RGBA forms or GID (grid) form etc..In intelligence To sampled data be converted to by yuv data by format conversion in terminal.Wherein, the principle of YUV be brightness and chrominance separation, Y represents brightness, that is, grayscale value;And U and V represents coloration, for describing colors of image and saturation degree, for specified pixel Color.
In step s 130, yuv data is converted into the data that encoder corresponds to form.
For example, transmission process can be controlled using encoder when transmitting image.To use encoder, Current yuv data is first converted by the data that encoder corresponds to form according to the form of code used device.
In step S140, the transformed data of encoder transmission are used.
For example, image data has been converted to the data that encoder corresponds to form, therefore, encoder can be used to pass Defeated image data.For example, image data is transferred in vehicle control system to show.Wherein, encoder can be each Kind is adapted for the encoder of image transmitting, such as MPEG-4 encoders
Image data in intelligent terminal can be sent in another equipment and show by middle technical solution through this embodiment Show so that image shows the limitation for having broken intelligent terminal the small screen, and due to the use of encoder transmission is imitated Rate is improved.
In alternate embodiments, the method may also include:The image shown in capture screen is as image to be transmitted.
For example, can capture various images in intelligent terminal, for example, in video it is shown in each frame image or screen Operation interface etc..The image of any required transmission can be captured automatically by technical solution in the embodiment, increase display Image type flexibility.
In alternate embodiments, it is described sampled data is converted into yuv data to may include:Using the lattice with sampled data Sampled data is converted to yuv data by the corresponding conversion regime of formula.
For example, the form of sampled data can be rgb format, RGBA forms or GID forms.It can be pre-configured with various Conversion regime, such as rgb format are converted to the mode of YUV, the mode that RGBA format conversions are YUV and GID format conversions and are The mode of YUV.When being converted, the form of sampled data is determined, corresponding conversion mode is called to be converted to sampled data Yuv data.For example, if the form of sampled data is RGBA forms, call RGBA format conversions that will be adopted for the mode of YUV Sample data are converted to yuv data.
Middle technical solution through this embodiment can be compatible with various sample modes so that various sample mode institutes It obtains sampled data and all can be exchanged into yuv data, and be transmitted eventually by encoder.
In alternate embodiments, encoder may include H.264 encoder.It is described that yuv data is converted into encoder pair Answering the data of form may include:Yuv data is converted into the data of H.264 form.It is described transformed using encoder transmission Data may include:Use the transformed data of H.264 encoder transmission.
In the present embodiment image is transmitted using H.264 encoder.Yuv data is converted into H.264 form, is made later Data are transmitted with H.264 encoder.In this way, realizing image transmitting by transmitting key frame and PS frames, transmission data are reduced Amount, improves efficiency of transmission.
In alternate embodiments, it is described to may include using the transformed data of encoder transmission:It is adopted using encoder Transformed data are transmitted with frame per second corresponding with current transmission bandwidth.
For example, parameter in encoder can be configured, such as to encoder according to the bandwidth of transmission channel Frame per second be configured.After the completion of configuration, encoder is just using the frame per second of configuration come controlling transmission, so that band used in transmitting Width meets the requirement of current transmission channel.
Below to the embodiment of the present invention for it will be shown in image transmitting to vehicle control system in smart mobile phone Middle technical solution illustrates, and has transmission channel between smart mobile phone and vehicle control system, as shown in Fig. 2, in smart mobile phone Middle execution following steps.
In step S202, the image shown in capture screen is as image to be transmitted.In step S204, to be transmitted Image is sampled, and obtains sampled data.In step S206, using with the corresponding conversion regime of the form of sampled data come Sampled data is converted into yuv data.In step S208, yuv data is converted into the data of H.264 form.In step In S210, transformed data are transmitted by the transmission frame per second to match with transmission channel bandwidth using H.264 encoder.
In this way, vehicle control system receives the image data in smart mobile phone, such as Streaming Media, start the figure to reception As data are shown.
Technical solution in above-described embodiment is only used for illustrating technical solution in the present invention, is not used in and limits this hair Bright protection domain.
Fig. 3 is the structure chart of image transmission according to embodiments of the present invention, which can be used for various intelligent terminals, Such as smart mobile phone, tablet computer etc..As shown in figure 3, the device may include following module.
Sampling module 310 for being sampled to image to be transmitted, obtains sampled data;
First modular converter 320, for sampled data to be converted to yuv data;
Second modular converter 330, for yuv data to be converted into the data that encoder corresponds to form;
Transmission module 340, for using the transformed data of the encoder transmission.
Image data in intelligent terminal can be sent in another equipment and show by middle technical solution through this embodiment Show so that image shows the limitation for having broken intelligent terminal the small screen, and due to the use of encoder transmission is imitated Rate is improved.
In alternate embodiments, as shown in figure 4, device may also include:Handling module 410, for being shown in capture screen The image shown is as image to be transmitted.
The image of any required transmission can be captured automatically by technical solution in the embodiment, increase the image of display Type flexibility.
In alternate embodiments, the second modular converter 330 is used for using the corresponding conversion of form with sampled data Sampled data is converted to yuv data by mode.
Middle technical solution through this embodiment can be compatible with various sample modes so that various sample mode institutes It obtains sampled data and all can be exchanged into yuv data, and be transmitted eventually by encoder.
In alternate embodiments, the encoder includes H.264 encoder;Second modular converter 330 can be used for YUV Data conversion is into the data of H.264 form;Transmission module 340 may be used in the transformed data of H.264 encoder transmission.
In the present embodiment image is transmitted using H.264 encoder.Yuv data is converted into H.264 form, is made later Data are transmitted with H.264 encoder.In this way, realizing image transmitting by transmitting key frame and PS frames, transmission data are reduced Amount, improves efficiency of transmission.
In alternate embodiments, transmission module 340 is used to use and current transmission bandwidth phase using the encoder Corresponding frame per second transmits the transformed data.
For example, parameter in encoder can be configured, such as to encoder according to the bandwidth of transmission channel Frame per second be configured.After the completion of configuration, encoder that transmission module 340 uses just using the frame per second of configuration come controlling transmission, So that bandwidth used in transmission meets the requirement of current transmission channel.
Above device is corresponding with preceding method, and specific embodiment can be found in preceding method and be described in detail, herein not It repeats again.
The optional embodiment of example of the present invention, still, the embodiment of the present invention and unlimited are described in detail above in association with attached drawing Detail in the above embodiment, can be to the embodiment of the present invention in the range of the technology design of the embodiment of the present invention Technical solution carry out a variety of simple variants, these simple variants belong to the protection domain of the embodiment of the present invention.
It is further to note that specific technical features described in the above specific embodiments, in not lance In the case of shield, it can be combined by any suitable means.In order to avoid unnecessary repetition, the embodiment of the present invention pair Various combinations of possible ways no longer separately illustrate.
It will be appreciated by those skilled in the art that all or part of the steps of the method in the foregoing embodiments are can to pass through Program is completed to instruct relevant hardware, which is stored in a storage medium, is used including some instructions so that one A (can be microcontroller, chip etc.) or processor (processor) perform the whole of each embodiment the method for the application Or part steps.And aforementioned storage medium includes:USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can store journey The medium of sequence code.
In addition, arbitrary combination can also be carried out between a variety of different embodiments of the embodiment of the present invention, as long as it is not The thought of the embodiment of the present invention is violated, should equally be considered as disclosure of that of the embodiment of the present invention.

Claims (10)

1. a kind of image transfer method, which is characterized in that this method includes:
Image to be transmitted is sampled, obtains sampled data;
Sampled data is converted into yuv data;
Yuv data is converted into the data that encoder corresponds to form;
Use the transformed data of the encoder transmission.
2. according to the method described in claim 1, it is characterized in that, the method further includes:
The image shown in capture screen is as image to be transmitted.
3. according to the method described in claim 1, it is characterized in that, described be converted to yuv data by sampled data and include:
Sampled data is converted into yuv data using with the form of sampled data corresponding conversion regime.
4. according to the method described in claim 1, it is characterized in that, the encoder includes H.264 encoder;
It is described yuv data is converted into encoder to correspond to the data of form including:
Yuv data is converted into the data of H.264 form;
It is described to be included using the transformed data of the encoder transmission:
Use the transformed data of H.264 encoder transmission.
5. according to the method described in claim 1, it is characterized in that, described use the transformed data packet of the encoder transmission It includes:
Frame per second corresponding with current transmission bandwidth is used to transmit the transformed data using the encoder.
6. a kind of image transmission, which is characterized in that the device includes:
Sampling module for being sampled to image to be transmitted, obtains sampled data;
First modular converter, for sampled data to be converted to yuv data;
Second modular converter, for yuv data to be converted into the data that encoder corresponds to form;
Transmission module, for using the transformed data of the encoder transmission.
7. device according to claim 6, which is characterized in that described device further includes:
Handling module, for the image that is shown in capture screen as image to be transmitted.
8. device according to claim 6, which is characterized in that second modular converter is used to use and sampled data Sampled data is converted to yuv data by the corresponding conversion regime of form.
9. device according to claim 6, which is characterized in that the encoder includes H.264 encoder;
Second modular converter is used to yuv data being converted into the data of H.264 form;
The transmission module is used for using the H.264 transformed data of encoder transmission.
10. device according to claim 9, which is characterized in that the transmission module is used to adopt using the encoder The transformed data are transmitted with frame per second corresponding with current transmission bandwidth.
CN201611238507.6A 2016-12-28 2016-12-28 Image transfer method and device Withdrawn CN108259690A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611238507.6A CN108259690A (en) 2016-12-28 2016-12-28 Image transfer method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611238507.6A CN108259690A (en) 2016-12-28 2016-12-28 Image transfer method and device

Publications (1)

Publication Number Publication Date
CN108259690A true CN108259690A (en) 2018-07-06

Family

ID=62720565

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611238507.6A Withdrawn CN108259690A (en) 2016-12-28 2016-12-28 Image transfer method and device

Country Status (1)

Country Link
CN (1) CN108259690A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101945096A (en) * 2010-07-13 2011-01-12 上海未来宽带技术及应用工程研究中心有限公司 Video live broadcast system facing to set-top box and PC of mobile phone and working method thereof
CN102984512A (en) * 2011-09-20 2013-03-20 微软公司 Low-complexity remote presentation session encoder
CN103024393A (en) * 2012-12-28 2013-04-03 北京京北方信息技术有限公司 Method for compressing and decompressing single picture
WO2014132096A1 (en) * 2013-02-26 2014-09-04 Nintendo European Research And Development Block color conversion

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101945096A (en) * 2010-07-13 2011-01-12 上海未来宽带技术及应用工程研究中心有限公司 Video live broadcast system facing to set-top box and PC of mobile phone and working method thereof
CN102984512A (en) * 2011-09-20 2013-03-20 微软公司 Low-complexity remote presentation session encoder
CN103024393A (en) * 2012-12-28 2013-04-03 北京京北方信息技术有限公司 Method for compressing and decompressing single picture
WO2014132096A1 (en) * 2013-02-26 2014-09-04 Nintendo European Research And Development Block color conversion

Similar Documents

Publication Publication Date Title
US20210385466A1 (en) Method and device for encoding/decoding an image unit comprising image data represented by a luminance channel and at least one chrominance channel
US11445201B2 (en) Video encoding and decoding method, device, and system, and storage medium
CN103260037B (en) For sending the equipment of two field picture and the method for camera
EP3235245B1 (en) Method and device of converting a high-dynamic-range version of a picture to a standard-dynamic-range version of said picture
US11741585B2 (en) Method and device for obtaining a second image from a first image when the dynamic range of the luminance of the first image is greater than the dynamic range of the luminance of the second image
CN109155850A (en) parallel video coding
US8611653B2 (en) Color conversion based on an HVS model
KR20180044291A (en) Coding and decoding methods and corresponding devices
CN111901630A (en) Data transmission method, device, terminal equipment and storage medium
JP6980054B2 (en) Methods and equipment for processing image data
CN114786040A (en) Data communication method, system, electronic device and storage medium
EP3820129A1 (en) Method and apparatus for video recording and processing, and video recording and processing system
CN108259690A (en) Image transfer method and device
CN104104897A (en) Mobile terminal video editing method and device
CN104780390A (en) Video processing method and device
CN115460333B (en) Image signal processing module, chip, electronic device and method
WO2023202177A1 (en) Image encoding method and apparatus
CN107197287A (en) A kind of video recorded broadcast method and apparatus based on arm processors
US10721484B2 (en) Determination of a co-located luminance sample of a color component sample, for HDR coding/decoding
CN103546731B (en) A kind of method Bitmap being changed into the file of yuv format
WO2023041317A1 (en) Method and apparatus for video encoding and decoding with chroma residuals sampling
CN115280769A (en) Method and apparatus for video encoding and decoding
CN117956172A (en) Video transmission display method and system
CN115460333A (en) Image signal processing module, chip, electronic device and method

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20180801

Address after: 511458 9, Nansha District Beach Road, Guangzhou, Guangdong, 9

Applicant after: Rui Chi intelligent automobile (Guangzhou) Co., Ltd.

Address before: 100026 8 floor 909, 105 building 3, Yao Yuan Road, Chaoyang District, Beijing.

Applicant before: Music Automotive (Beijing) Co., Ltd.

CB02 Change of applicant information
CB02 Change of applicant information

Address after: 511458 9, Nansha District Beach Road, Guangzhou, Guangdong, 9

Applicant after: Hengda Faraday future intelligent vehicle (Guangdong) Co., Ltd.

Address before: 511458 9, Nansha District Beach Road, Guangzhou, Guangdong, 9

Applicant before: Rui Chi intelligent automobile (Guangzhou) Co., Ltd.

TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20190319

Address after: 100015 Building No. 7, 74, Jiuxianqiao North Road, Chaoyang District, Beijing, 001

Applicant after: FAFA Automobile (China) Co., Ltd.

Address before: 511458 9, Nansha District Beach Road, Guangzhou, Guangdong, 9

Applicant before: Hengda Faraday future intelligent vehicle (Guangdong) Co., Ltd.

WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20180706