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
Method
test_code_length_growth
Test that code length grows appropriately with value magnitude.
tests/testVLC.py:201
Method
test_coeff_token0_structure
Test coeff_token0 table has correct structure.
tests/testCAVLC.py:153
Method
test_compress_frame_to_bitstream
Test generating bitstream from frame.
tests/testH264.py:343
Method
test_compress_inplace
Test in-place compression.
tests/testH264.py:313
Method
test_cosines_orthogonality
Test that cosine matrix is approximately orthogonal.
tests/testDCT.py:42
Method
test_cosines_shape
Test that cosines matrix has correct shape.
tests/testDCT.py:34
Method
test_count_bits
Test count_bits helper function.
tests/testVLC.py:130
Method
test_dc_prediction_constant_block
Test that constant block with matching DC neighbor uses DC mode.
tests/testIntra.py:70
Method
test_dct1_single_coefficient
Test dct1 computes single coefficient correctly.
tests/testDCT.py:95
Method
test_dct2_constant_block
Test DCT of constant block concentrates energy in DC.
tests/testDCT.py:65
Method
test_dct2_idct2_roundtrip
Test DCT followed by IDCT returns original. Note: The dct2/idct2 functions are buggy reference implementations. The productio
tests/testDCT.py:80
Method
test_dct_all_blocks
Test DCT operation on all blocks in macroblock.
tests/testH264.py:212
Method
test_dct_energy_conservation
Test that DCT preserves energy (Parseval's theorem).
tests/testDCT.py:124
Method
test_dct_idct_constant
Test DCT/IDCT with constant block (DC only).
tests/testH264.py:70
Method
test_dct_idct_gradient
Test DCT/IDCT with gradient pattern.
tests/testH264.py:59
Method
test_dct_idct_roundtrip
Test that DCT followed by IDCT returns original data.
tests/testH264.py:44
Method
test_dct_linearity
Test that DCT is linear: DCT(a*x + b*y) = a*DCT(x) + b*DCT(y).
tests/testDCT.py:136
Method
test_decode_error_handling
Test decoder handles invalid VLC gracefully.
tests/testVLC.py:164
Method
test_decode_inverse_of_encode
Test that decode is inverse of encode.
tests/testVLC.py:58
Method
test_decompress_inplace
Test in-place decompression.
tests/testH264.py:328
Method
test_different_sizes
Test cosines generation for different block sizes.
tests/testDCT.py:176
Method
test_empty_macroblock
Test creating macroblock with None data.
tests/testH264.py:406
Method
test_empty_vlc_handling
Test decoder handles empty/short VLC.
tests/testVLC.py:174
Method
test_encode_negative_integers
Test encoding of negative integers.
tests/testVLC.py:48
Method
test_encode_positive_integers
Test encoding of positive integers.
tests/testVLC.py:32
Method
test_encode_zero
Test encoding of zero.
tests/testVLC.py:27
Method
test_expgolomb_dec_block
Test decoding a VLC back to block.
tests/testVLC.py:89
Method
test_expgolomb_enc_block
Test encoding a 4x4 block.
tests/testVLC.py:76
Method
test_expgolomb_returns_remaining
Test that decoder returns remaining bits correctly.
tests/testVLC.py:113
Method
test_expgolomb_roundtrip_zero_block
Test roundtrip with all-zero block.
tests/testVLC.py:103
Method
test_frame_construction_empty
Test Frame construction without data.
tests/testFrameSlice.py:116
Method
test_frame_construction_with_data
Test Frame construction with image data.
tests/testFrameSlice.py:106
Method
test_frame_custom_dimensions
Test Frame with custom dimensions.
tests/testFrameSlice.py:130
Method
test_frame_default_dimensions
Test Frame with default dimensions.
tests/testFrameSlice.py:123
Method
test_frame_get_bits
Test frame bitstream generation.
tests/testFrameSlice.py:152
Method
test_frame_get_image
Test frame image reconstruction.
tests/testFrameSlice.py:139
Method
test_frame_set_bits
Test frame bitstream decoding.
tests/testFrameSlice.py:162
Method
test_frame_slice_iterator
Test iterating over frame slices.
tests/testFrameSlice.py:175
Method
test_frame_slice_macroblock_hierarchy
Test correct hierarchy: Frame -> Slice -> MacroBlock.
tests/testFrameSlice.py:190
Method
test_h264_custom_dimensions
Test H264 with custom dimensions.
tests/testH264.py:292
Method
test_h264_initialization
Test H264 object initialization.
tests/testH264.py:283
Method
test_horizontal_prediction_mode
Test that horizontal gradient selects H prediction when left column matches.
tests/testIntra.py:61
Method
test_idct1_single_coefficient
Test idct1 computes single spatial value correctly.
tests/testDCT.py:107
Method
test_idct_all_blocks
Test IDCT operation on all blocks in macroblock.
tests/testH264.py:220
Method
test_intra_predict_returns_mode
Test intra_predict returns a valid prediction mode.
tests/testH264.py:250
Method
test_intra_predict_returns_valid_mode
Test that intra_predict returns a valid mode string.
tests/testIntra.py:41
Method
test_intra_predict_sets_prediction_mode
Test that prediction mode is set on all transform blocks.
tests/testIntra.py:98
Method
test_intra_predict_sets_residual
Test that intra_predict modifies blocks to contain residuals.
tests/testIntra.py:83
Method
test_intra_predict_vertical_gradient
Test that vertical gradient data chooses V prediction.
tests/testH264.py:261
Method
test_lamb_function
Test lambda scaling function.
tests/testDCT.py:53
Method
test_large_negative_value
Test encoding large negative values.
tests/testVLC.py:155
Method
test_large_positive_value
Test encoding large positive values.
tests/testVLC.py:146
Method
test_load_pattern
Test loading a test pattern.
tests/testH264.py:299
Method
test_load_pattern_custom
Test loading pattern with custom generator.
tests/testH264.py:306
Method
test_load_y4m_video
Test loading Y4M video file.
tests/testH264.py:370
Method
test_lut_initialization
Test that LUTs are properly initialized.
tests/testVLC.py:20
Method
test_macroblock_construction
Test MacroBlock correctly partitions into 16 TransformBlocks.
tests/testH264.py:155
Method
test_macroblock_image_roundtrip
Test get_image returns original data.
tests/testH264.py:166
Method
test_macroblock_vlc_roundtrip
Test VLC encoding/decoding of entire macroblock.
tests/testH264.py:174
Method
test_max_value_block
Test handling of all-255 block.
tests/testH264.py:395
Method
test_neighbor_shapes
Test that neighbor access returns correct shapes.
tests/testIntra.py:193
Function
test_pattern
Generate and encode a test pattern.
app.py:248
Method
test_prefix_free_codes
Test that codes are prefix-free (no code is prefix of another).
tests/testVLC.py:66
Method
test_quantize_dequantize_roundtrip
Test quantization/dequantization introduces acceptable loss.
tests/testH264.py:81
Method
test_random_data
Test prediction with random data.
tests/testIntra.py:154
Method
test_right_column
Test right_column accessor returns correct pixels.
tests/testH264.py:202
Method
test_right_column_values
Test right_column returns correct values.
tests/testIntra.py:182
Method
test_roundtrip_preservation
Test that encode/decode roundtrip preserves data approximately.
tests/testFrameSlice.py:206
Method
test_single_macroblock_slice
Test slice with single macroblock.
tests/testFrameSlice.py:231
Method
test_single_pixel
Test DCT of block with single non-zero pixel.
tests/testDCT.py:166
Method
test_single_slice_frame
Test frame with single slice.
tests/testFrameSlice.py:249
Method
test_slice_construction_empty
Test Slice construction without data.
tests/testFrameSlice.py:36
Method
test_slice_construction_with_data
Test Slice construction with image data.
tests/testFrameSlice.py:26
Method
test_slice_get_bits
Test slice bitstream generation.
tests/testFrameSlice.py:60
Method
test_slice_iterator
Test that slice supports indexing.
tests/testFrameSlice.py:49
Method
test_slice_set_bits
Test slice bitstream decoding.
tests/testFrameSlice.py:73
Method
test_slice_str
Test slice string representation.
tests/testFrameSlice.py:86
Method
test_slice_width_stored
Test that slice stores width correctly.
tests/testFrameSlice.py:43
Method
test_small_values_short_codes
Test that smaller values have shorter codes.
tests/testVLC.py:191
Method
test_state_machine_enforcement
Test that operations enforce correct state transitions.
tests/testH264.py:116
Method
test_table_run_structure
Test Table_run has correct structure.
tests/testCAVLC.py:175
Method
test_table_zeros_structure
Test Table_zeros has correct structure.
tests/testCAVLC.py:164
Method
test_tall_frame
Test frame with many slices.
tests/testFrameSlice.py:256
Method
test_vertical_prediction_mode
Test that vertical gradient selects V prediction when top row matches.
tests/testIntra.py:52
Method
test_vlc_roundtrip
Test VLC encoding and decoding roundtrip.
tests/testH264.py:99
Method
test_wide_slice
Test slice with many macroblocks.
tests/testFrameSlice.py:238
Method
test_zero_block
Test DCT of zero block.
tests/testDCT.py:158
Method
test_zero_block
Test handling of all-zero block.
tests/testH264.py:384
Method
test_zero_residual_perfect_prediction
Test that perfect prediction produces zero residual.
tests/testIntra.py:110
Method
test_zigzag_dc_first
Test that DC coefficient (0,0) is first in zigzag order.
tests/testCAVLC.py:44
Method
test_zigzag_hf_last
Test that highest frequency coefficient (3,3) is last.
tests/testCAVLC.py:56
Method
test_zigzag_length
Test that zigzag produces 16 elements from 4x4 block.
tests/testCAVLC.py:33
Method
test_zigzag_order
Test that zigzag produces correct coefficient ordering.
tests/testCAVLC.py:18
Method
test_zigzag_with_numpy_array
Test zigzag works with numpy arrays.
tests/testCAVLC.py:68
Method
vlc_dec
(self, VLC)
h264/MacroBlock.py:53
← previous
101–195 of 195, ranked by callers