Method for superposing watermark on yuv frame, and watermark superposing device
A technology of watermarking and frame data, applied in image communication, selective content distribution, electrical components, etc., can solve the problems of high cost of multiple conversion operations, affecting performance, and low efficiency of glReadPixels function, so as to reduce the amount of calculation and improve data The effect of conversion efficiency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 2
[0071] Embodiment 2, in such as figure 2 Among them, a video image transparent watermark overlay method includes original image data and image data to be overlaid, including the following steps:
[0072] Step 1. Start;
[0073] Step 2. Input the argb image data to be superimposed;
[0074] Step 3, converting the Argb image data to be superimposed into yuv data;
[0075] Step 4, adding index bytes to each line of the yuv frame data that needs to be superimposed, and adding index bytes to save as a separate file;
[0076] Step 5, input original image data;
[0077] Step 6, the original image data is converted into yuv frame data;
[0078] Step 7. Determine the designated position of the original data where the data to be superimposed is located;
[0079] Step 8, read the index byte file of the yuv frame data that needs to be superimposed;
[0080] Step 9, determine the transparent area and the opaque area of each line of the yuv frame data that needs to be superimposed,...
Embodiment 3
[0117] Logo size: (width 256 pixels, height 256 pixels);
[0118] Each frame of video stream: 1024*720 (720p format, width 1024 pixels, height 720 pixels);
[0119] Overlay position: second row, second column;
[0120] Y component: 1024*line number + current superimposed line offset, 1024*1+1 is 1025;
[0121] U component: 1024*720+1;
[0122] V component: 1024*720+(1024 / 2)*(720 / 2)+1.
[0123] When generating YUV frame data, the transparent block and opaque block information of each row of pixels are synchronously generated (the information refers to the width of each block). The transparent block width and opaque width appear in pairs, and the transparent block width can indicate the jump distance of the YUV component pointer. , the opaque block can indicate the number of bytes of the YUV component that needs to be copied, achieving fast pointer advancement and copying by block.
Embodiment 4
[0124] Embodiment 4 is a further improvement on the basis of Embodiment 1.
[0125] Logo size: (width 256 pixels, height 256 pixels);
[0126] Each frame of video stream: xxxx*yyyy (video can be in any format, width: xxxx is any pixel, yyyy is any pixel)
[0127] Superposition position: any row v, any column u;
[0128] Y component: xxxx*line number + current superimposed line offset bit v;
[0129] U component: xxxx*yyyy+u;
[0130] V component: xxxx*yyyy+(xxxx / 2)*(yyyy / 2)+v.
[0131] After the station logo Argb image data is converted to YUV frame data, when adding index bytes to each line of the yuv frame data that needs to be superimposed, the added index bytes can be saved at the front end of each line of the yuv frame data, namely: the added The index byte is embedded in the yuv frame data that needs to be superimposed, and forms an inseparable complete data with the yuv frame data that needs to be superimposed; at the same time, the added index byte can be saved separ...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com