Skip to content

Commit

Permalink
show incoming H265 codec video in top status
Browse files Browse the repository at this point in the history
  • Loading branch information
zoff99 committed Dec 8, 2024
1 parent 40869dc commit 829f1d8
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
import static com.zoffcc.applications.trifa.CallingActivity.set_debug_text;
import static com.zoffcc.applications.trifa.TRIFAGlobals.GLOBAL_AUDIO_BITRATE;
import static com.zoffcc.applications.trifa.TRIFAGlobals.GLOBAL_VIDEO_BITRATE;
import static com.zoffcc.applications.trifa.TRIFAGlobals.VIDEO_CODEC_H265;
import static com.zoffcc.applications.trifa.TRIFAGlobals.VIDEO_CODEC_VP8;

public class Callstate
Expand Down Expand Up @@ -112,6 +113,10 @@ public static String codec_to_str(long v)
{
return "VP8";
}
else if (v == VIDEO_CODEC_H265)
{
return "HEVC";
}
else
{
return "H264";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,7 @@
import static com.zoffcc.applications.trifa.TRIFAGlobals.VFS_PREFIX;
import static com.zoffcc.applications.trifa.TRIFAGlobals.VFS_TMP_FILE_DIR;
import static com.zoffcc.applications.trifa.TRIFAGlobals.VIDEO_CODEC_H264;
import static com.zoffcc.applications.trifa.TRIFAGlobals.VIDEO_CODEC_H265;
import static com.zoffcc.applications.trifa.TRIFAGlobals.VIDEO_CODEC_VP8;
import static com.zoffcc.applications.trifa.TRIFAGlobals.VIDEO_FRAME_RATE_INCOMING;
import static com.zoffcc.applications.trifa.TRIFAGlobals.VIDEO_FRAME_RATE_OUTGOING;
Expand All @@ -272,6 +273,7 @@
import static com.zoffcc.applications.trifa.TRIFAGlobals.orbot_is_really_running;
import static com.zoffcc.applications.trifa.ToxVars.TOXAV_CALL_COMM_INFO.TOXAV_CALL_COMM_DECODER_CURRENT_BITRATE;
import static com.zoffcc.applications.trifa.ToxVars.TOXAV_CALL_COMM_INFO.TOXAV_CALL_COMM_DECODER_IN_USE_H264;
import static com.zoffcc.applications.trifa.ToxVars.TOXAV_CALL_COMM_INFO.TOXAV_CALL_COMM_DECODER_IN_USE_H265;
import static com.zoffcc.applications.trifa.ToxVars.TOXAV_CALL_COMM_INFO.TOXAV_CALL_COMM_DECODER_IN_USE_VP8;
import static com.zoffcc.applications.trifa.ToxVars.TOXAV_CALL_COMM_INFO.TOXAV_CALL_COMM_ENCODER_CURRENT_BITRATE;
import static com.zoffcc.applications.trifa.ToxVars.TOXAV_CALL_COMM_INFO.TOXAV_CALL_COMM_ENCODER_IN_USE_H264;
Expand Down Expand Up @@ -4082,6 +4084,11 @@ else if (a_TOXAV_CALL_COMM_INFO == TOXAV_CALL_COMM_DECODER_IN_USE_H264.value)
// Log.i(TAG, "android_toxav_callback_call_comm_cb_method:4:" + a_TOXAV_CALL_COMM_INFO + ":" + comm_number);
Callstate.video_in_codec = VIDEO_CODEC_H264;
}
else if (a_TOXAV_CALL_COMM_INFO == TOXAV_CALL_COMM_DECODER_IN_USE_H265.value)
{
// Log.i(TAG, "android_toxav_callback_call_comm_cb_method:4:" + a_TOXAV_CALL_COMM_INFO + ":" + comm_number);
Callstate.video_in_codec = VIDEO_CODEC_H265;
}
else if (a_TOXAV_CALL_COMM_INFO == TOXAV_CALL_COMM_ENCODER_IN_USE_VP8.value)
{
Callstate.video_out_codec = VIDEO_CODEC_VP8;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@ public class TRIFAGlobals

static final int VIDEO_CODEC_VP8 = 0;
static final int VIDEO_CODEC_H264 = 1;
static final int VIDEO_CODEC_H265 = 2;

static final int MAX_LEN_TOXENCRYPTSAVE_PASSPHRASE = 256;
static final int LEN_TRIFA_AUTOGEN_PASSWORD = 32;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1589,7 +1589,8 @@ public static enum TOXAV_CALL_COMM_INFO
3), TOXAV_CALL_COMM_ENCODER_IN_USE_H264_OMX_PI(6), TOXAV_CALL_COMM_DECODER_CURRENT_BITRATE(
4), TOXAV_CALL_COMM_ENCODER_CURRENT_BITRATE(5), TOXAV_CALL_COMM_NETWORK_ROUND_TRIP_MS(
7), TOXAV_CALL_COMM_PLAY_DELAY(8), TOXAV_CALL_COMM_PLAY_BUFFER_ENTRIES(9), TOXAV_CALL_COMM_INCOMING_FPS(
10), TOXAV_CALL_COMM_REMOTE_RECORD_DELAY(11);
10), TOXAV_CALL_COMM_REMOTE_RECORD_DELAY(11), TOXAV_CALL_COMM_ENCODER_IN_USE_H265(15),
TOXAV_CALL_COMM_DECODER_IN_USE_H265(16);

public int value;

Expand Down

0 comments on commit 829f1d8

Please sign in to comment.