Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/balbekov/PyH264
/ functions
Functions
195 in github.com/balbekov/PyH264
⨍
Functions
195
◇
Types & classes
26
↳
Endpoints
4
↓ 12 callers
Method
dct
(self)
h264/TransformBlock.py:67
↓ 12 callers
Method
intra_predict
(self, neighbors)
h264/MacroBlock.py:70
↓ 9 callers
Method
load_pattern
(self, pattern=lambda p: min(p, 255))
h264/H264.py:41
↓ 8 callers
Function
image_to_base64
Convert numpy array to base64 encoded PNG.
app.py:28
↓ 7 callers
Method
compress_frame
(self, frame_id)
h264/H264.py:35
↓ 7 callers
Method
idct
(self)
h264/TransformBlock.py:78
↓ 6 callers
Function
block_to_zigzag
(input_array)
h264/CAVLC.py:114
↓ 6 callers
Method
compress_inplace
(self)
h264/H264.py:165
↓ 6 callers
Method
get_image
(self)
h264/Frame.py:33
↓ 5 callers
Method
decompress_inplace
(self)
h264/H264.py:175
↓ 5 callers
Function
lamb
(u, N)
h264/DCT.py:6
↓ 5 callers
Method
quantize
(self)
h264/TransformBlock.py:86
↓ 4 callers
Function
CAVLC_enc
(input_array)
h264/CAVLC.py:131
↓ 4 callers
Method
dequantize
(self)
h264/TransformBlock.py:92
↓ 4 callers
Method
get_bits
(self)
h264/Frame.py:44
↓ 4 callers
Method
get_vlc
(self)
h264/MacroBlock.py:137
↓ 4 callers
Method
show_frame
(self, frame_id)
h264/H264.py:141
↓ 3 callers
Method
bottom_row
(self)
h264/MacroBlock.py:62
↓ 3 callers
Method
dct
(self)
h264/MacroBlock.py:45
↓ 3 callers
Method
get_image
(self)
h264/MacroBlock.py:157
↓ 3 callers
Method
grab_plane
(self, yuv_file, width, height)
h264/H264.py:148
↓ 3 callers
Method
right_column
(self)
h264/MacroBlock.py:57
↓ 3 callers
Method
set_bits
(self, vlc)
h264/Frame.py:59
↓ 3 callers
Method
set_vlc
(self, vlc)
h264/MacroBlock.py:146
↓ 3 callers
Method
vlc_enc
(self)
h264/TransformBlock.py:98
↓ 2 callers
Function
benchmark_frame
Benchmark Frame compression.
tests/testPerf.py:71
↓ 2 callers
Function
count_bits
(value)
h264/VLC.py:22
↓ 2 callers
Function
generate_ctu_visualization
Generate a visualization of the Coding Tree Unit structure. Creates an RGBA image showing the original frame with: - Macroblock boundarie
app.py:50
↓ 2 callers
Method
get_bits
(self)
h264/Slice.py:39
↓ 2 callers
Method
idct
(self)
h264/MacroBlock.py:49
↓ 2 callers
Function
init_LUT
()
h264/VLC.py:7
↓ 2 callers
Method
load_bitstream
(self, vlc)
h264/H264.py:49
↓ 2 callers
Method
load_video
(self, yuv_file)
h264/H264.py:56
↓ 1 callers
Function
benchmark_bitstream
Benchmark bitstream generation.
tests/testPerf.py:94
↓ 1 callers
Function
benchmark_macroblock
Benchmark MacroBlock VLC operations.
tests/testPerf.py:46
↓ 1 callers
Function
benchmark_transform_block
Benchmark TransformBlock DCT/IDCT operations.
tests/testPerf.py:20
↓ 1 callers
Function
cmd_decode
Decode H264 bitstream to image.
h264/__main__.py:83
↓ 1 callers
Function
cmd_encode
Encode an image/video to H264 bitstream.
h264/__main__.py:29
↓ 1 callers
Function
cmd_info
Show information about input file.
h264/__main__.py:153
↓ 1 callers
Function
cmd_test
Run test pattern encode/decode.
h264/__main__.py:112
↓ 1 callers
Function
dct1
(A, i, j)
h264/DCT.py:12
↓ 1 callers
Function
dct2
(A)
h264/DCT.py:29
↓ 1 callers
Function
generate_cavlc_bits
(coeff_token, level_codes, trailing_ones, total_zeros, run)
h264/CAVLC.py:273
↓ 1 callers
Function
get_dct_visualization
Generate a visualization of DCT coefficients.
app.py:36
↓ 1 callers
Method
get_vlc
(self)
h264/TransformBlock.py:106
↓ 1 callers
Function
idct1
(A, i, j)
h264/DCT.py:51
↓ 1 callers
Method
load_blocks
(self, new_slice)
h264/Slice.py:26
↓ 1 callers
Method
load_image
(self, new_frame)
h264/Frame.py:28
↓ 1 callers
Method
load_image
Load an image file (jpg, png, bmp, gif, tiff) as a single frame. The image is converted to grayscale (Y channel only) and padded
h264/H264.py:100
↓ 1 callers
Function
main
Run all benchmarks.
tests/testPerf.py:115
↓ 1 callers
Function
main
()
h264/__main__.py:183
↓ 1 callers
Method
set_bits
(self, vlc)
h264/Slice.py:55
↓ 1 callers
Method
set_vlc
(self, vlc)
h264/TransformBlock.py:114
↓ 1 callers
Function
setup_logging
Configure logging based on verbosity.
h264/__main__.py:20
↓ 1 callers
Method
vlc_dec
(self, vlc)
h264/TransformBlock.py:102
Function
CAVLC_dev
(sequence)
h264/CAVLC.py:340
Function
CAVLC_enc_deprecated
(input_array)
h264/CAVLC.py:296
Method
__getitem__
(self, index)
h264/MacroBlock.py:153
Method
__getitem__
(self, index)
h264/Slice.py:70
Method
__init__
(self, parent, new_block, kernel_size=4, qp=26)
h264/TransformBlock.py:30
Method
__init__
(self, parent, new_block, mb_size=16, tb_size=4, qp=26)
h264/MacroBlock.py:12
Method
__init__
(self, parent, new_frame, WIDTH=1280, HEIGHT=720, qp=26, mb_size=16, tb_size=4)
h264/Frame.py:10
Method
__init__
(self, width=1280, height=720, qp=26, mb_size=16, tb_size=4)
h264/H264.py:15
Method
__init__
(self, parent, new_slice, WIDTH=1280, HEIGHT=720, qp=26, mb_size=16, tb_size=4)
h264/Slice.py:10
Method
__str__
(self)
h264/TransformBlock.py:64
Method
__str__
(self)
h264/MacroBlock.py:42
Method
__str__
(self)
h264/Frame.py:71
Method
__str__
(self)
h264/Slice.py:32
Method
best_blocks
(x)
h264/MacroBlock.py:120
Function
cavlc_dec
(block)
h264/VLC.py:90
Function
cavlc_enc
()
h264/VLC.py:40
Function
codec_info
Return information about the codec architecture.
app.py:365
Function
cosines
(N)
h264/DCT.py:69
Function
encode_image
Encode an uploaded image and return statistics.
app.py:106
Function
expgolomb_dec
(kernel_size, vlc, qp=26)
h264/VLC.py:51
Function
expgolomb_enc
(kernel_size, block)
h264/VLC.py:25
Method
get_residuals
(self, pred_frame)
h264/Frame.py:68
Function
idct2
(A)
h264/DCT.py:39
Function
index
Render the main dashboard.
app.py:100
Method
setUp
Set up test fixtures.
tests/testIntra.py:17
Method
setUp
Set up test fixtures.
tests/testDCT.py:17
Method
setUp
Set up test fixtures.
tests/testH264.py:23
Method
setUp
Set up test fixtures.
tests/testH264.py:138
Method
setUp
Set up test fixtures for intra prediction.
tests/testH264.py:233
Method
setUp
Initialize LUT before tests.
tests/testVLC.py:16
Method
setUp
Initialize LUT before tests.
tests/testVLC.py:142
Method
setUp
Initialize LUT before tests.
tests/testVLC.py:187
Method
setUp
Set up logging for CAVLC debugging.
tests/testCAVLC.py:88
Method
setUp
Set up test fixtures.
tests/testFrameSlice.py:18
Method
setUp
Set up test fixtures.
tests/testFrameSlice.py:98
Method
setUpClass
Set up class-level resources.
tests/testH264.py:278
Method
test_all_max_block
Test prediction with all-255 block.
tests/testIntra.py:144
Method
test_all_zeros_block
Test prediction with all-zero block.
tests/testIntra.py:134
Method
test_bitstream_roundtrip
Test encoding to bitstream and decoding back.
tests/testH264.py:356
Method
test_bottom_row
Test bottom_row accessor returns correct pixels.
tests/testH264.py:192
Method
test_bottom_row_values
Test bottom_row returns correct values.
tests/testIntra.py:171
Method
test_cavlc_dc_only
Test CAVLC with DC-only block.
tests/testCAVLC.py:123
Method
test_cavlc_known_vector
Test CAVLC encoding with known test vector from H.264 spec.
tests/testCAVLC.py:93
Method
test_cavlc_returns_string
Test that CAVLC returns a binary string.
tests/testCAVLC.py:109
Method
test_cavlc_trailing_ones
Test CAVLC correctly handles trailing ones.
tests/testCAVLC.py:136
next →
1–100 of 195, ranked by callers