-
Notifications
You must be signed in to change notification settings - Fork 209
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #95 from ksvc/v4.0.4
update to v4.0.4
- Loading branch information
Showing
35 changed files
with
3,501 additions
and
129 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
demo/src/com/ksyun/media/streamer/demo/RGBABufDemoFilter.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
package com.ksyun.media.streamer.demo; | ||
|
||
import android.util.Log; | ||
|
||
import com.ksyun.media.streamer.filter.imgtex.RGBABufFilter; | ||
import com.ksyun.media.streamer.util.gles.GLRender; | ||
|
||
import java.nio.ByteBuffer; | ||
|
||
/** | ||
* Demo filter to handle RBGA buffer in gpu pipe. | ||
*/ | ||
|
||
public class RGBABufDemoFilter extends RGBABufFilter { | ||
private static final String TAG = "RGBABufDemoFilter"; | ||
|
||
public RGBABufDemoFilter(GLRender glRender) { | ||
super(glRender); | ||
} | ||
|
||
@Override | ||
protected void onSizeChanged(int stride, int width, int height) { | ||
Log.d(TAG, "onSizeChanged " + stride + " " + width + "x" + height); | ||
// do nothing. | ||
} | ||
|
||
@Override | ||
protected ByteBuffer doFilter(ByteBuffer buffer, int stride, int width, int height) { | ||
Log.d(TAG, "doFilter " + buffer + " " + stride + " " + width + "x" + height); | ||
// handle buffer here | ||
return buffer; | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.