MCPcopy Create free account

hub / github.com/balbekov/PyH264 / functions

Functions195 in github.com/balbekov/PyH264

Methodtest_code_length_growth
Test that code length grows appropriately with value magnitude.
tests/testVLC.py:201
Methodtest_coeff_token0_structure
Test coeff_token0 table has correct structure.
tests/testCAVLC.py:153
Methodtest_compress_frame_to_bitstream
Test generating bitstream from frame.
tests/testH264.py:343
Methodtest_compress_inplace
Test in-place compression.
tests/testH264.py:313
Methodtest_cosines_orthogonality
Test that cosine matrix is approximately orthogonal.
tests/testDCT.py:42
Methodtest_cosines_shape
Test that cosines matrix has correct shape.
tests/testDCT.py:34
Methodtest_count_bits
Test count_bits helper function.
tests/testVLC.py:130
Methodtest_dc_prediction_constant_block
Test that constant block with matching DC neighbor uses DC mode.
tests/testIntra.py:70
Methodtest_dct1_single_coefficient
Test dct1 computes single coefficient correctly.
tests/testDCT.py:95
Methodtest_dct2_constant_block
Test DCT of constant block concentrates energy in DC.
tests/testDCT.py:65
Methodtest_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
Methodtest_dct_all_blocks
Test DCT operation on all blocks in macroblock.
tests/testH264.py:212
Methodtest_dct_energy_conservation
Test that DCT preserves energy (Parseval's theorem).
tests/testDCT.py:124
Methodtest_dct_idct_constant
Test DCT/IDCT with constant block (DC only).
tests/testH264.py:70
Methodtest_dct_idct_gradient
Test DCT/IDCT with gradient pattern.
tests/testH264.py:59
Methodtest_dct_idct_roundtrip
Test that DCT followed by IDCT returns original data.
tests/testH264.py:44
Methodtest_dct_linearity
Test that DCT is linear: DCT(a*x + b*y) = a*DCT(x) + b*DCT(y).
tests/testDCT.py:136
Methodtest_decode_error_handling
Test decoder handles invalid VLC gracefully.
tests/testVLC.py:164
Methodtest_decode_inverse_of_encode
Test that decode is inverse of encode.
tests/testVLC.py:58
Methodtest_decompress_inplace
Test in-place decompression.
tests/testH264.py:328
Methodtest_different_sizes
Test cosines generation for different block sizes.
tests/testDCT.py:176
Methodtest_empty_macroblock
Test creating macroblock with None data.
tests/testH264.py:406
Methodtest_empty_vlc_handling
Test decoder handles empty/short VLC.
tests/testVLC.py:174
Methodtest_encode_negative_integers
Test encoding of negative integers.
tests/testVLC.py:48
Methodtest_encode_positive_integers
Test encoding of positive integers.
tests/testVLC.py:32
Methodtest_encode_zero
Test encoding of zero.
tests/testVLC.py:27
Methodtest_expgolomb_dec_block
Test decoding a VLC back to block.
tests/testVLC.py:89
Methodtest_expgolomb_enc_block
Test encoding a 4x4 block.
tests/testVLC.py:76
Methodtest_expgolomb_returns_remaining
Test that decoder returns remaining bits correctly.
tests/testVLC.py:113
Methodtest_expgolomb_roundtrip_zero_block
Test roundtrip with all-zero block.
tests/testVLC.py:103
Methodtest_frame_construction_empty
Test Frame construction without data.
tests/testFrameSlice.py:116
Methodtest_frame_construction_with_data
Test Frame construction with image data.
tests/testFrameSlice.py:106
Methodtest_frame_custom_dimensions
Test Frame with custom dimensions.
tests/testFrameSlice.py:130
Methodtest_frame_default_dimensions
Test Frame with default dimensions.
tests/testFrameSlice.py:123
Methodtest_frame_get_bits
Test frame bitstream generation.
tests/testFrameSlice.py:152
Methodtest_frame_get_image
Test frame image reconstruction.
tests/testFrameSlice.py:139
Methodtest_frame_set_bits
Test frame bitstream decoding.
tests/testFrameSlice.py:162
Methodtest_frame_slice_iterator
Test iterating over frame slices.
tests/testFrameSlice.py:175
Methodtest_frame_slice_macroblock_hierarchy
Test correct hierarchy: Frame -> Slice -> MacroBlock.
tests/testFrameSlice.py:190
Methodtest_h264_custom_dimensions
Test H264 with custom dimensions.
tests/testH264.py:292
Methodtest_h264_initialization
Test H264 object initialization.
tests/testH264.py:283
Methodtest_horizontal_prediction_mode
Test that horizontal gradient selects H prediction when left column matches.
tests/testIntra.py:61
Methodtest_idct1_single_coefficient
Test idct1 computes single spatial value correctly.
tests/testDCT.py:107
Methodtest_idct_all_blocks
Test IDCT operation on all blocks in macroblock.
tests/testH264.py:220
Methodtest_intra_predict_returns_mode
Test intra_predict returns a valid prediction mode.
tests/testH264.py:250
Methodtest_intra_predict_returns_valid_mode
Test that intra_predict returns a valid mode string.
tests/testIntra.py:41
Methodtest_intra_predict_sets_prediction_mode
Test that prediction mode is set on all transform blocks.
tests/testIntra.py:98
Methodtest_intra_predict_sets_residual
Test that intra_predict modifies blocks to contain residuals.
tests/testIntra.py:83
Methodtest_intra_predict_vertical_gradient
Test that vertical gradient data chooses V prediction.
tests/testH264.py:261
Methodtest_lamb_function
Test lambda scaling function.
tests/testDCT.py:53
Methodtest_large_negative_value
Test encoding large negative values.
tests/testVLC.py:155
Methodtest_large_positive_value
Test encoding large positive values.
tests/testVLC.py:146
Methodtest_load_pattern
Test loading a test pattern.
tests/testH264.py:299
Methodtest_load_pattern_custom
Test loading pattern with custom generator.
tests/testH264.py:306
Methodtest_load_y4m_video
Test loading Y4M video file.
tests/testH264.py:370
Methodtest_lut_initialization
Test that LUTs are properly initialized.
tests/testVLC.py:20
Methodtest_macroblock_construction
Test MacroBlock correctly partitions into 16 TransformBlocks.
tests/testH264.py:155
Methodtest_macroblock_image_roundtrip
Test get_image returns original data.
tests/testH264.py:166
Methodtest_macroblock_vlc_roundtrip
Test VLC encoding/decoding of entire macroblock.
tests/testH264.py:174
Methodtest_max_value_block
Test handling of all-255 block.
tests/testH264.py:395
Methodtest_neighbor_shapes
Test that neighbor access returns correct shapes.
tests/testIntra.py:193
Functiontest_pattern
Generate and encode a test pattern.
app.py:248
Methodtest_prefix_free_codes
Test that codes are prefix-free (no code is prefix of another).
tests/testVLC.py:66
Methodtest_quantize_dequantize_roundtrip
Test quantization/dequantization introduces acceptable loss.
tests/testH264.py:81
Methodtest_random_data
Test prediction with random data.
tests/testIntra.py:154
Methodtest_right_column
Test right_column accessor returns correct pixels.
tests/testH264.py:202
Methodtest_right_column_values
Test right_column returns correct values.
tests/testIntra.py:182
Methodtest_roundtrip_preservation
Test that encode/decode roundtrip preserves data approximately.
tests/testFrameSlice.py:206
Methodtest_single_macroblock_slice
Test slice with single macroblock.
tests/testFrameSlice.py:231
Methodtest_single_pixel
Test DCT of block with single non-zero pixel.
tests/testDCT.py:166
Methodtest_single_slice_frame
Test frame with single slice.
tests/testFrameSlice.py:249
Methodtest_slice_construction_empty
Test Slice construction without data.
tests/testFrameSlice.py:36
Methodtest_slice_construction_with_data
Test Slice construction with image data.
tests/testFrameSlice.py:26
Methodtest_slice_get_bits
Test slice bitstream generation.
tests/testFrameSlice.py:60
Methodtest_slice_iterator
Test that slice supports indexing.
tests/testFrameSlice.py:49
Methodtest_slice_set_bits
Test slice bitstream decoding.
tests/testFrameSlice.py:73
Methodtest_slice_str
Test slice string representation.
tests/testFrameSlice.py:86
Methodtest_slice_width_stored
Test that slice stores width correctly.
tests/testFrameSlice.py:43
Methodtest_small_values_short_codes
Test that smaller values have shorter codes.
tests/testVLC.py:191
Methodtest_state_machine_enforcement
Test that operations enforce correct state transitions.
tests/testH264.py:116
Methodtest_table_run_structure
Test Table_run has correct structure.
tests/testCAVLC.py:175
Methodtest_table_zeros_structure
Test Table_zeros has correct structure.
tests/testCAVLC.py:164
Methodtest_tall_frame
Test frame with many slices.
tests/testFrameSlice.py:256
Methodtest_vertical_prediction_mode
Test that vertical gradient selects V prediction when top row matches.
tests/testIntra.py:52
Methodtest_vlc_roundtrip
Test VLC encoding and decoding roundtrip.
tests/testH264.py:99
Methodtest_wide_slice
Test slice with many macroblocks.
tests/testFrameSlice.py:238
Methodtest_zero_block
Test DCT of zero block.
tests/testDCT.py:158
Methodtest_zero_block
Test handling of all-zero block.
tests/testH264.py:384
Methodtest_zero_residual_perfect_prediction
Test that perfect prediction produces zero residual.
tests/testIntra.py:110
Methodtest_zigzag_dc_first
Test that DC coefficient (0,0) is first in zigzag order.
tests/testCAVLC.py:44
Methodtest_zigzag_hf_last
Test that highest frequency coefficient (3,3) is last.
tests/testCAVLC.py:56
Methodtest_zigzag_length
Test that zigzag produces 16 elements from 4x4 block.
tests/testCAVLC.py:33
Methodtest_zigzag_order
Test that zigzag produces correct coefficient ordering.
tests/testCAVLC.py:18
Methodtest_zigzag_with_numpy_array
Test zigzag works with numpy arrays.
tests/testCAVLC.py:68
Methodvlc_dec
(self, VLC)
h264/MacroBlock.py:53
← previous101–195 of 195, ranked by callers