Coder Social home page Coder Social logo

yuvwater's Introduction

YuvWater

android camera 视频水印 详情见博客:https://blog.csdn.net/u010521645/article/details/85166237 视频录制目录: /sdcard/yuvVideo ,请手动在设置加相机和存储权限。

如果添加其它的文字水印?如yyyy年mm月dd日

0、右上角进生成yuv页,然后画你想添加的文字,得到文字年月日的yuv数组

1、在YuvOsdUtils.c 的initOsd 方法中,把生成的年月日数组添加到mNumArrays中,参考数字的添加方式

2、在getIndex中,根据jchar c 返回index。这里的index就是添加的index,中文无法用c='年'方式,你需要debug 获取到中文对应的数字

4、在CreateNumberAct 中是通过画bitmap是得到文字的,不同文字宽高会不一样,不好统一计算,所以文字会有切边现象,实际上图片的来源可以是任何地方,如ps的一张文字图片,只要调用bitmapToGrayNV 生成nv12数组就行,这里只是参考.

yuvwater's People

Contributors

zihao-wu avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.