When recording a video, add a time watermark in the lower right corner of the video to achieve the effect of surveillance video, such as:
The implementation steps are as follows:
1. Make 12 pictures, the numbers 0-9, the colon and the cross fold respectively. First use PS to make png24 format, preferably black white (in the code will be ignored).
2. Convert the 12 PNG images made above into a 256-color BMP bitmap, which can be opened using the paint program that comes with Windows, then save As.
3. Use BMP2C to turn the 256-color BMP image from the 2nd step into the C array.
4. Place the C array obtained in the 3rd step into the head file TCHIP_DIGITAL_DATA.H.
5. Modify the Frameworks/av/media/libstagefright/camerasource.cpp file to add a time watermark to each video frame when recording.
When you record video on Android, add a time watermark to the bottom right corner of the video to achieve the effect of surveillance video